One additional note on this. Thanks to a colleague at USC who pointed out that this bug does not seem to get exercised if one does not include `--enable-shared` at configuration.
I confirmed this using the distributed Python-3.7.4.tgz file and `configure --prefix=/path/to/install`. The `make test` then runs to completion with no errors. Running `make distclean`, then rerunning with `configure --prefix=/path/to/install --enable-shared` will then exercise the bug, and the faulthandler test fails with a segfault.
Applying the patch file attached to this report and rebuilding leads to `make test` passing all tests, also.
If someone was trying to reproduce and did not configure shared libraries, then that would have failed to reproduce. |