You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Originally reported by: Anselm Kruis (Bitbucket: akruis, GitHub: akruis)
Compile a version from branch 3.4-slp on amd64 Linux (Debian 7.8):
$ ./configure --prefix=/tmp/slp342 --with-pydebug
$ make
Then run the test suite
$ make test
Several test cases that pass with C-Python fail:
[140/389/2] test_threading
test test_threading failed -- Traceback (most recent call last):
File "/home/anselm/src/stackless2/Lib/test/test_threading.py", line 538, in test_main_thread_after_fork_from_nonmain_thread
self.assertEqual(err, b"")
AssertionError: b"python: Stackless/module/taskletobject.c[163 chars]st):" != b''
[166/389/3] test_tracemalloc
test test_tracemalloc failed -- Traceback (most recent call last):
File "/home/anselm/src/stackless2/Lib/test/test_tracemalloc.py", line 188, in test_get_traced_memory
self.assertLessEqual(peak_size - size, max_error)
AssertionError: 137788 not less than or equal to 2048
About the segfault. If you disable the new faulthandler and undef PY_LOCAL_AGGRESSIVE in ceval.c you can get a useful core dump.
The crash is caused by a cframe that is used as argument for PyEval_EvalFrame_value.
That is a serious bug.
PyEval_Call* APIs are not documented and they doesn't respect PY_SSIZE_T_CLEAN.
So add comment block which recommends PyObject_Call* APIs to ceval.h.
This commit also changes PyEval_CallMethod and PyEval_CallFunction
implementation same to PyObject_CallMethod and PyObject_CallFunction
to reduce future maintenance cost. Optimization to avoid temporary
tuple are copied too.
PyEval_CallFunction(callable, "i", (int)i) now calls callable(i) instead of
raising TypeError. But accepting this edge case is backward compatible.
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Originally reported by: Anselm Kruis (Bitbucket: akruis, GitHub: akruis)
Compile a version from branch 3.4-slp on amd64 Linux (Debian 7.8):
Then run the test suite
$ make test
Several test cases that pass with C-Python fail:
Here test.regrtest hangs.
About the segfault. If you disable the new faulthandler and undef PY_LOCAL_AGGRESSIVE in ceval.c you can get a useful core dump.
The crash is caused by a cframe that is used as argument for PyEval_EvalFrame_value.
That is a serious bug.
disable_faulthandler.patch.zip
The text was updated successfully, but these errors were encountered: