[issue38350] ./configure --with-pydebug should use -O0 rather than -Og

STINNER Victor report at bugs.python.org
Wed Oct 2 12:56:56 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

My use case is to debug a crash using a Python compiled in debug module, like python3-debug program in Fedora. Since the debug ABI is now compatible with the release build, the idea is to attempt to reproduce a crash in gdb using python3-debug instead of python3, and then use gdb to see what's going on.

With -Og, the call stack is wrong sometimes, and some function arguments and local variables cannot be read (displayed as <optimized out>).

On Travis CI, a few months ago, Python was built in debug mode using -O3. But it was a side effect of OpenSSL flags if I recall correctly.

With my PR 16544, Travis CI now uses -O0.

----------
nosy: +pablogsal, pitrou, serhiy.storchaka

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


More information about the Python-bugs-list mailing list