[Python-Dev] New crash in test_embed on macOS 10.12 (original) (raw)

Victor Stinner victor.stinner at gmail.com
Fri Dec 15 16:04:30 EST 2017


Hi,

2017-12-15 20:55 GMT+01:00 Barry Warsaw <barry at python.org>:

I haven’t bisected this yet, but with git head, built and tested on macOS 10.12.6 and Xcode 9.2, I’m seeing this crash in testembed:

====================================================================== FAIL: testbpo20891 (test.testembed.EmbeddingTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/barry/projects/python/cpython/Lib/test/testembed.py", line 207, in testbpo20891 out, err = self.runembeddedinterpreter("bpo20891") File "/Users/barry/projects/python/cpython/Lib/test/testembed.py", line 59, in runembeddedinterpreter (p.returncode, err)) AssertionError: -6 != 0 : bad returncode -6, stderr is 'Fatal Python error: PyEvalSaveThread: NULL tstate\n\nCurrent thread 0x00007fffcb58a3c0 (most recent call first):\n' Seems reproducible across different machines (all running 10.12.6 and Xcode 9.2), even after a make clean and configure. I don’t see the same failure on Debian, and I don’t see the crashes on the buildbots. Can anyone verify?

It's a known issue. The hint is in the method name: test_bpo20891 :-)

https://bugs.python.org/issue20891#msg307553

I fixed a bug and added a test for it, but the test showed an unknown race condition.

I wrote a fix for the race condition, but I was asked to run a benchmark and I didn't run it yet.

https://github.com/python/cpython/pull/4700

I hesitate to skip the test until I fix the second bug.

Victor



More information about the Python-Dev mailing list