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 in awaited Python call #66

Open
qwenger opened this issue Oct 26, 2021 · 1 comment · May be fixed by #79
Open

Segfault in awaited Python call #66

qwenger opened this issue Oct 26, 2021 · 1 comment · May be fixed by #79
Assignees

Comments

@qwenger
Copy link
Collaborator

qwenger commented Oct 26, 2021

>>> import quickjs
>>> ctx = quickjs.Context()
>>> def test():
...     raise Exception
... 
>>> ctx.add_callable("test", test)
>>> ctx.eval("async function a() {await test()}")
>>> ctx.eval("a()")

Segmentation fault (core dumped)
@qwenger
Copy link
Collaborator Author

qwenger commented Oct 26, 2021

This happens when attempting to create a return Object after a Python exception was set in JS_Eval.

qwenger added a commit to qwenger/quickjs that referenced this issue Apr 8, 2022
…ns into custom InternalPythonError object extending InternalError.
@qwenger qwenger self-assigned this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant