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 vstinner
Recipients Dormouse759, cstratak, jkloth, koobs, mcepl, mi, vstinner
Date 2018-06-15.14:52:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529074320.13.0.947875510639.issue30345@psf.upfronthosting.co.za>
In-reply-to
Content
I tested on the current master:

git clean -fdx
./configure --with-lto --enable-optimizations
sed -i -e 's/^PROFILE_TASK=.*/PROFILE_TASK=-c pass/' Makefile
make 2>&1|tee log

Python is compiled twice:

* (1) gcc -DNDEBUG -g -O3 -flto -fprofile-generate (...)
* (2) gcc -DNDEBUG -g -O3 -flto -fprofile-use (...)

I see -g in both compilation steps.

It seems like debug symbols are still here:

vstinner@apu$ file ./python
./python: ELF 64-bit LSB executable, x86-64, (...), with debug_info, not stripped

But I confirm that test_gdb fails when using LTO+PGO.

gdb seems to be to read any C function argument:

$ gdb -args  ./python Lib/test/gdb_sample.py
(gdb) b builtin_id
(gdb) run
Breakpoint 1, 0x0000000000518da0 in builtin_id ()
(gdb) py-bt
Traceback (most recent call first):
  (unable to read python frame information)
  (unable to read python frame information)
  (unable to read python frame information)
  (unable to read python frame information)
History
Date User Action Args
2018-06-15 14:52:00vstinnersetrecipients: + vstinner, jkloth, mcepl, koobs, cstratak, Dormouse759, mi
2018-06-15 14:52:00vstinnersetmessageid: <1529074320.13.0.947875510639.issue30345@psf.upfronthosting.co.za>
2018-06-15 14:52:00vstinnerlinkissue30345 messages
2018-06-15 14:52:00vstinnercreate