Open YannickJadoul opened 4 years ago
We also see a segfault here occasionally for Python 3.9:
-------------------------------------------------------------------------------
Restart the interpreter
-------------------------------------------------------------------------------
/Users/runner/work/pybind11/pybind11/tests/test_embed/test_interpreter.cpp:108
...............................................................................
/Users/runner/work/pybind11/pybind11/tests/test_embed/test_interpreter.cpp:108: FAILED:
{Unknown expression after the reported line}
due to a fatal error condition:
SIGSEGV - Segmentation violation signal
===============================================================================
test cases: 4 | 3 passed | 1 failed
assertions: 16 | 15 passed | 1 failed
make[3]: *** [tests/test_embed/CMakeFiles/cpptest] Error 139
make[2]: *** [tests/test_embed/CMakeFiles/cpptest.dir/all] Error 2
make[1]: *** [tests/test_embed/CMakeFiles/cpptest.dir/rule] Error 2
Also in test_python_to_cpp_to_python_from_thread_multiple_parallel
:
https://github.com/pybind/pybind11/pull/2396#issuecomment-674267074
Is this mostly macOS? I could add an xfail(env.MACOS and env.pyv >= 3.9, reason="Occasional failure, TBD", strict=False)
here, to help with unrelated PRs, but a little worried that might cause us to overlook it until Python 3.9 is released and it's too late to fix it if it's on Python's end.
test_python_to_cpp_to_python_from_thread_multiple_sequential
too. Seems to always be macOS.
Anything on this? Is this still happening? If so, we should probably report this to Python before the final release is out.
EDIT: This is not, though. This is related to #2564
Running 3.9 macOS locally, the tests pass, but I get a segfault popup once in a while:
0 org.python.python 0x000000010bf4f34a meth_dealloc + 120
1 org.python.python 0x000000010bf2145a instancemethod_dealloc + 65
2 org.python.python 0x000000010bf43feb PyDict_Clear + 409
3 org.python.python 0x000000010bf616ec type_clear + 59
4 org.python.python 0x000000010c00ef00 collect + 2558
5 org.python.python 0x000000010c00e4f1 _PyGC_CollectNoFail + 67
6 org.python.python 0x000000010bfe119c _PyImport_Cleanup + 1545
7 org.python.python 0x000000010bff1680 Py_FinalizeEx + 160
8 org.python.python 0x000000010bff2167 Py_Exit + 13
9 org.python.python 0x000000010bff8117 handle_system_exit + 35
10 org.python.python 0x000000010bff676f _PyErr_PrintEx + 40
11 org.python.python 0x000000010bff64e8 PyRun_SimpleStringFlags + 116
12 org.python.python 0x000000010c00d3c7 Py_RunMain + 425
13 org.python.python 0x000000010c00dc86 pymain_main + 306
14 org.python.python 0x000000010c00dcd4 Py_BytesMain + 42
15 libdyld.dylib 0x00007fff6910dcc9 start + 1
This happens when one of the XFails fails instead of XPasses.
Running 3.9 macOS locally, the tests pass, but I get a segfault popup once in a while:
This is another one, though, it seems. This is described in #2558 and debugged (and hopefully soon resolved) in #2576. Doesn't seem to be related to the issue described here, though.
More info in #2754
Not sure what's going on, but this test failed again on 3.9, completely unrelated to the actual changes. I don't know what that test is about, but I thought I'd log it.
Do we have a race condition? Does CPython 3.9 have a race condition?