[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

Marcel Plch report at bugs.python.org
Fri Jun 15 11:25:31 EDT 2018


Marcel Plch <gmarcel.plch at gmail.com> added the comment:

Those -g switches you see there are during compile-time.
For this to work, you need to enable it also during link/time:
./configure --enable-optimizations --with-lto LDFLAGS="-g"

Except for py-bt, you should also try bt. With this link flag enabled, I can observe significant slowdown on my machine during the backtrace when using bt command (At least when I let the PGO do all the profiling, when compiled with the sed edit you posted here, I observe none).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30345>
_______________________________________


More information about the Python-bugs-list mailing list