LoginSignup
1
0

More than 1 year has passed since last update.

Python2: py-bt frame information optimized out

Last updated at Posted at 2022-06-03

On system python2 on Debian 11 bullseye, when you try py-bt on gdb, session, frames are optimized out:

(gdb) py-bt
Traceback (most recent call first):
  (frame information optimized out)

According to https://www.podoliaka.org/2016/04/10/debugging-cpython-gdb/ , this is because gdb wasn't able to figure out the location of PyFrameObject data structure in a given stack frame.

So, to fix this, you can rebuild python2 without PGO.

Note that system Python 3.9 does not have issue.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0