[Bug libstdc++/53477] pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 13 18:38:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477

Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.1.x/3.2.x

--- Comment #1 from Tom Tromey <tromey at gcc dot gnu.org> 2012-07-13 18:38:18 UTC ---
(Fixed the component)

I can't reproduce this.
I can print wordMapBitset before it is initialized but
I get a different error:

(gdb) p wordBitsetMap
$4 = std::map with 140737488349518 elementsCannot access memory at address
0x68732f6c61636f7c

... which isn't pretty but is at least vaguely understandable
as "GIGO".

What version of gdb are you using?
Can you do it with stack-printing enabled?
("set python print-stack on" in recent versions, somewhere under
"maint" in older ones.)
This might help.



More information about the Gcc-bugs mailing list