Author vstinner
Recipients vstinner
Date 2018-10-15.11:11:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539601902.93.0.788709270274.issue34989@psf.upfronthosting.co.za>
In-reply-to
Content
On Fedora 28, gdb fails to read (some?) debug symbols:
"Dwarf Error: could not find partial DIE containing offset 0x316 [in module /usr/lib/debug/usr/bin/python3.6-3.6.6-1.fc28.x86_64.debug]"
https://bugzilla.redhat.com/show_bug.cgi?id=1613614

In this case, the "py-bt" command of python-gdb.py fails with a TypeError:

(gdb) py-bt
Traceback (most recent call first):
  <unknown at remote 0x7ffff7e5f7e0>
Python Exception <class 'TypeError'> 'FakeRepr' object is not subscriptable: 
Error occurred in Python command: 'FakeRepr' object is not subscriptable


python-gdb.py shouldn't fail on such case, but handle the error.

Attached PR fix this issue.
History
Date User Action Args
2018-10-15 11:11:42vstinnersetrecipients: + vstinner
2018-10-15 11:11:42vstinnersetmessageid: <1539601902.93.0.788709270274.issue34989@psf.upfronthosting.co.za>
2018-10-15 11:11:42vstinnerlinkissue34989 messages
2018-10-15 11:11:42vstinnercreate