classification
Title: TypeError during gdb backtracing
Type: behavior Stage: test needed
Components: Demos and Tools Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
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 2013-11-21 00:53 by Julian.Gindi.

Files
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 libpython.py 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.
History
Date User Action Args
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