From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7566 invoked by alias); 13 Oct 2010 08:54:16 -0000 Received: (qmail 7556 invoked by uid 22791); 13 Oct 2010 08:54:15 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Oct 2010 08:54:09 +0000 From: "pluto at agmk dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/45999] New: runtime error in std::vector python pretty printer. X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pluto at agmk dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 13 Oct 2010 08:54:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg01056.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45999 Summary: runtime error in std::vector python pretty printer. Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: pluto@agmk.net Host: x86_64-gnu-linux Target: x86_64-gnu-linux Build: x86_64-gnu-linux Created attachment 22026 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22026 reduced testcase. Breakpoint 1, main () at t.cpp:156 156 bidir_graph_t g ( 5 ); (gdb) n 157 g.add_edge ( bdir_edge_t ( 3, 2 ) ); (gdb) p g $1 = { > = {}, members of au::graph::adjacency_matrix: static npos = , size_ = 5, verticles_ = std::vector of length 0, capacity 5, adjacency_matrix_ = std::vector of length 5, capacity 5 = { Traceback (most recent call last): File "/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py", line 186, in to_string % (self.typename, int (finish - start), int (end - start))) RuntimeError: Argument to arithmetic operation not a number or boolean. Traceback (most recent call last): File "/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py", line 169, in next elt = self.item.dereference() RuntimeError: Attempt to take contents of a non-pointer value. (...)