public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pluto at agmk dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/53477] pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
Date: Mon, 16 Jul 2012 19:03:00 -0000	[thread overview]
Message-ID: <bug-53477-4-fbakuv84kI@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-53477-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2012-07-16 19:03:27 UTC ---
(In reply to comment #1)
> (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

in line 15 the wordBitsetMap reference is initialized.

(gdb) p wordBitsetMap
$3 = Python Exception <type 'exceptions.IndexError'> list index out of range:
std::map with 1 elements
         ^^^^^^^^^^^^^^^ this is true.

> What version of gdb are you using?

gdb from git 7.4/master branch.

> 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.

(gdb) set python print-stack full
(gdb) p wordBitsetMap
$6 = std::map with 1 elementsTraceback (most recent call last):
  File "/opt/gcc47/share/gcc-4.7.2/python/libstdcxx/v6/printers.py", line 427,
in children
    rep_type = find_type(self.val.type, '_Rep_type')
  File "/opt/gcc47/share/gcc-4.7.2/python/libstdcxx/v6/printers.py", line 43,
in find_type
    field = typ.fields()[0]
IndexError: list index out of range


  parent reply	other threads:[~2012-07-16 19:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 17:02 [Bug libstdc++/53477] New: " pluto at agmk dot net
2012-07-13 18:38 ` [Bug libstdc++/53477] " tromey at gcc dot gnu.org
2012-07-16 17:57 ` pinskia at gcc dot gnu.org
2012-07-16 19:03 ` pluto at agmk dot net [this message]
2013-06-03  3:41 ` asmwarrior at gmail dot com
2013-06-03  3:47 ` asmwarrior at gmail dot com
2013-06-03  4:05 ` asmwarrior at gmail dot com
2013-06-03  7:21 ` asmwarrior at gmail dot com
2013-06-03  7:34 ` asmwarrior at gmail dot com
2013-06-14 20:39 ` tomga at wp dot pl
2013-06-15 12:06 ` tomga at wp dot pl
2013-07-07 14:16 ` tomga at wp dot pl
2013-08-21  9:01 ` pmuldoon at redhat dot com
2013-08-21  9:42 ` redi at gcc dot gnu.org
2013-08-21 13:44 ` pmuldoon at redhat dot com
2013-08-21 13:46 ` mpolacek at gcc dot gnu.org
2013-08-22 19:14 ` pluto at agmk dot net
2014-01-06 11:36 ` pluto at agmk dot net
2014-05-06  8:36 ` jiyouguo at gmail dot com
2014-05-06  9:11 ` redi at gcc dot gnu.org
2014-05-07 12:55 ` jiyouguo at gmail dot com
2015-05-22 16:49 ` redi at gcc dot gnu.org
2015-05-22 20:12 ` tomga at wp dot pl
2015-05-23  9:57 ` redi at gcc dot gnu.org
2015-05-24  8:09 ` tomga at wp dot pl
2015-05-24 22:49 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-53477-4-fbakuv84kI@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).