Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault #62

Open
heri16 opened this issue May 3, 2024 · 1 comment
Open

Segfault #62

heri16 opened this issue May 3, 2024 · 1 comment

Comments

@heri16
Copy link

heri16 commented May 3, 2024

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.

@DjDeveloperr
Copy link
Member

Can you provide a minimum reproduction for this crash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants