Skip to content

strange crash when scan vector in golang/cgo #83

@flier

Description

@flier

Hi, I'm maintain a golang binding for hyperscan, there is a strange crash issue was reported, which can be reproduced after thousands of scan vector calls.

This stack trace comes from running this test program.

It seems some memory was corrupt, are there any pointer will be saved in the compile and scan phases? Because golang use a GC to manage all the memory, the GO pointer passed to hyperscan can't be saved after call.

Besides, I also tried to lock the scanning goroutine to its current thread with runtime. LockOSThread , but it seems no effects.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions