Skip to content

Segfault #62

@heri16

Description

@heri16

I seem to be getting a segfault when python code tries to callback into or return values to Javascript code.

Seems like it is related to deno_python missing these important calls:

c.PyEval_InitThreads()
or
c.PyGILState_Ensure()

Related discussion:
https://stackoverflow.com/questions/4866701/python-pygilstate-ensure-release-causes-segfault-while-returning-to-c-from-p

My environment is bunjs on Ubuntu Jammy WSL 2.
Also happens sporadically on another machine which is a MacBook Pro M1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds investigationNeeds to be investigated further

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions