From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12189 invoked by alias); 20 Jan 2014 12:51:00 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 12163 invoked by uid 48); 20 Jan 2014 12:51:00 -0000 From: "aegges at web dot de" To: gdb-prs@sourceware.org Subject: [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print Date: Mon, 20 Jan 2014 12:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: aegges at web dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00077.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16470 Bug ID: 16470 Summary: Crash when inspecting STL containers with GDB pretty print Product: gdb Version: 7.6 Status: NEW Severity: critical Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: aegges at web dot de I have the following source code: #include using namespace std; int main() { list x; list y; x.push_back(1); y.push_back(2); return 0; } I installed the python pretty printers for STL from the GNU website and load them in my .gdbinit. GDB crashes when I inspect the STL list. To reproduce from the command line: gdb -i mi -nx -enable-pretty-printing -gdb-set print object on source /home/amueller/.gdbinit -file-exec-and-symbols --thread-group i1 /home/amueller/testing/test -break-insert --thread-group i1 -f /home/amueller/testing/test.cpp:12 -break-insert --thread-group i1 -t -f main -exec-run --thread-group i1 -var-create --thread-group i1 - * x -var-create --thread 1 --frame 0 - * x -var-list-children var2 -exec-continue --thread 1 -var-update 1 var2 The bug was initially reported for Eclipse but also occurs using the command line gdb. See http://www.eclipse.org/forums/index.php/t/636361/ -- You are receiving this mail because: You are on the CC list for the bug.