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

Some tests causing Python 3.12 to crash #283

Open
juliangilbey opened this issue Jun 30, 2024 · 0 comments
Open

Some tests causing Python 3.12 to crash #283

juliangilbey opened this issue Jun 30, 2024 · 0 comments

Comments

@juliangilbey
Copy link
Contributor

I have been trying to run the test suite for Debian, but 3.1.0 now causes Python 3.12 to crash with a segmentation fault. The tests which are causing the crash are (so far) in tests_python/test_evaluate_expression.py, so I ran test_evaluate_expression_basic manually, using a debug-enabled Python 3.12 (the regular Python 3.12 just crashes with an unspecified Segmentation fault):

$ python3.12-dbg
Python 3.12.4 (main, Jun 12 2024, 19:06:53) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> SOME_LST = ["foo", "bar"]
>>> BAR = "bar"
>>> FOO = "foo"
>>> global_frame = sys._getframe()
>>> 
>>> def obtain_frame():
...     A = 1
...     B = 2
...     yield sys._getframe()
... 
>>> from _pydevd_bundle.pydevd_vars import evaluate_expression
>>> def check(frame):
...     evaluate_expression(None, frame, "some_var = 1", is_exec=True)
... 
>>> check(next(iter(obtain_frame())))
23.64s - _evaluate_with_timeouts called without py_db!
python3.12-dbg: ../Objects/frameobject.c:1205: frame_get_var: Assertion `value == NULL' failed.
Aborted

I have no idea what is causing this bug, or how serious it is.

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

1 participant