From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21521 invoked by alias); 27 Jan 2014 07:21:36 -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 21387 invoked by uid 48); 27 Jan 2014 07:21:35 -0000 From: "xhpohanka at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug python/16470] Crash when inspecting STL containers with GDB pretty print Date: Mon, 27 Jan 2014 07:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: xhpohanka at gmail dot com 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: Message-ID: In-Reply-To: References: 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/msg00127.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16470 --- Comment #2 from Jan Pohanka --- I can also reproduce this bug using Axel's steps. This is the content of my ~/.gdbinit add-auto-load-safe-path /home/honza/dev python import sys sys.path.insert(0, '/home/honza/dev/gdb-pretty') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end set print pretty on set print object on set print static-members on set print vtbl on set print demangle on set demangle-style gnu-v3 On https://sourceware.org/gdb/wiki/STLSupport there is a description how to get the pretty printers. After passing the MI commands to GDB as Axel described, I'm getting following error ~"/home/zumbi/gdb-7.6.1/gdb/varobj.c:3532: internal-error: c_value_of_variable: Assertion `!value_lazy (var->value)' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? " ~"(y or n) " n ~"/home/zumbi/gdb-7.6.1/gdb/varobj.c:3532: internal-error: c_value_of_variable: Assertion `!value_lazy (var->value)' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nCreate a core file of GDB? " ~"(y or n) " n ^error,msg="unknown error" (gdb) -- You are receiving this mail because: You are on the CC list for the bug.