public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/53477] New: pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
@ 2012-05-24 17:02 pluto at agmk dot net
  2012-07-13 18:38 ` [Bug libstdc++/53477] " tromey at gcc dot gnu.org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: pluto at agmk dot net @ 2012-05-24 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53477
           Summary: pretty printer fails with: Python Exception <type
                    'exceptions.IndexError'> list index out of range
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net


Created attachment 27490
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27490
testcase

$ x86_64-gnu-linux-g++ t.cpp -Wall -o t -g2 -gdwarf-4
$ cgdb ./t

in line 15 pretty printer fails with error.

 7│ int main()
 8│ {
 9│         icapSelection_[ /* frame */ 7 ][ /* word */ 3 ].insert( 5 );
10│         icapSelection_[ /* frame */ 7 ][ /* word */ 3 ].insert( 1 );
11│         for ( IcapSelection::const_iterator i = icapSelection_.begin(); i
!= icapSelection_.end(); ++i )
12│         {
13│                 IcapSelection::key_type frame( i->first );
14│                 IcapSelection::mapped_type const& wordBitsetMap( i->second
);
15├───────────────> for ( IcapSelection::mapped_type::const_iterator j =
wordBitsetMap.begin(); j != wordBitsetMap.end(); ++j )
16│                 {
17│                         IcapSelection::mapped_type::key_type word( j->first
);
18│                         IcapSelection::mapped_type::mapped_type const&
bits( j->second );
19│                         for (
IcapSelection::mapped_type::mapped_type::const_iterator k = bits.begin(); k !=
bits.end(); ++k )
20│                         {
21│                                 unsigned bit( *k );
22│                         }
23│                 }
24│         }
25│ }
/home/users/pawels/dvm.git/t.cpp

Breakpoint 1, main () at t.cpp:9
(gdb) n
(gdb)
(gdb) p icapSelection_
$1 = std::map with 1 elements = {
  [7] = std::map with 1 elements = {
    [3] = std::set with 2 elements = {
      [0] = 1,
      [1] = 5
    }
  }
}
(gdb) n
(gdb)
(gdb)
(gdb) p wordBitsetMap
$2 = Python Exception <type 'exceptions.IndexError'> list index out of range:
std::map with 1 elements


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2015-05-24 22:49 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-24 17:02 [Bug libstdc++/53477] New: pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range 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
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

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