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.

Title: TypeError during gdb backtracing
Type: behavior Stage: resolved
Components: Demos and Tools Versions: Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols
View: 34989
Assigned To: Nosy List: Catalin.Patulea, Julian.Gindi, dmalcolm, numerodix, r.david.murray, vstinner
Priority: normal Keywords: easy, patch

Created on 2013-05-10 23:23 by Catalin.Patulea, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
libpython-typeerror-str.patch Catalin.Patulea, 2013-05-10 23:23
Messages (4)
msg188888 - (view) Author: Catalin Patulea (Catalin.Patulea) Date: 2013-05-10 23:23
With loaded in gdb, when backtracing and trying to pretty-print frame objects along the way, this error is sometimes raised:

Python Exception <type 'exceptions.TypeError'> object of type 'FakeRepr' has no len()

See attached patch against tip.
msg189456 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-05-17 14:09
Thanks for the report and patch.  

The next step required for this issue is for someone to write a unit test.
msg200673 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-10-21 00:34
How do you reproduce the issue? I'm not sure that the patch is correct.
msg203552 - (view) Author: Julian Gindi (Julian.Gindi) * Date: 2013-11-21 00:53
Could you provide some more details on how to reproduce this issue? If I am able to reproduce the issue, I'll write a few unit tests and get this patch rolling again.
Date User Action Args
2022-04-11 14:57:45adminsetgithub: 62151
2022-01-04 19:15:34iritkatrielsetstatus: open -> closed
superseder: fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols
resolution: duplicate
stage: test needed -> resolved
2013-11-21 00:53:31Julian.Gindisetnosy: + Julian.Gindi
messages: + msg203552
2013-10-21 00:34:30vstinnersetmessages: + msg200673
2013-10-21 00:33:24vstinnersetnosy: + vstinner
2013-10-20 18:25:20numerodixsetnosy: + numerodix
2013-05-17 14:09:26r.david.murraysetversions: + Python 2.7, Python 3.3, Python 3.4
nosy: + r.david.murray

messages: + msg189456

keywords: + easy
stage: test needed
2013-05-10 23:23:24Catalin.Patuleacreate