This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kal.sze
Recipients kal.sze
Date 2018-10-15.02:43:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
OS: Ubuntu Desktop 18.04.1 x86-64
Python 3.7.0

When trying to build Python 3.7 from source, with the `--enable-shared --enable-optimizations --with-lto` configure options, python needs to run the test suite in order to generate PGO data. However, it turns out that it would find test modules from the wrong directory, if there is already another version of Python 3 installed system-wide (Ubuntu 18.04 comes with Python 3.6 pre-installed).

I found out because Ubuntu's automatic crash reporter caught a core dump during `python -m tests.regrtest` and I could see that python found the tests.regrtest module at `/usr/lib/python3.6/test/`.

In the end, the build is reported as "successful", I guess it's because the Makefile expects it the crash anyway. In any case, it still seems wrong because it means the wrong test suite is run.

I have uploaded Ubuntu's crash report in raw format here, for anybody who knows how to read it (it's in plain text anyway):
Date User Action Args
2018-10-15 02:43:49kal.szesetrecipients: + kal.sze
2018-10-15 02:43:34kal.szesetmessageid: <>
2018-10-15 02:43:33kal.szelinkissue34985 messages
2018-10-15 02:43:33kal.szecreate