From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18928 invoked by alias); 27 Jan 2014 12:14:56 -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 18902 invoked by uid 48); 27 Jan 2014 12:14:56 -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 12:14: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/msg00129.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16470 --- Comment #4 from Jan Pohanka --- I have compiled GDB 7.6.2 from source and still can reproduce the bug. I'm running Debian testing. Can sharing the GDB corefile help? =thread-group-added,id="i1" ~"GNU gdb (GDB) 7.6.2\n" ~"Copyright (C) 2013 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-unknown-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~".\n" (gdb) -enable-pretty-printing -gdb-set print object on source .gdbinit -file-exec-and-symbols --thread-group i1 /home/honza/dev/test/stl_test/stl_test -break-insert --thread-group i1 -f /home/honza/dev/test/stl_test/stl_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^done (gdb) ^done (gdb) &"\n" ^done (gdb) &"source .gdbinit\n" =cmd-param-changed,param="print pretty",value="on" =cmd-param-changed,param="print vtbl",value="on" =cmd-param-changed,param="demangle-style",value="gnu-v3" ^done (gdb) &"\n" ^done (gdb) ^done (gdb) ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000400952",func="main()",file="stl_test.cpp",fullname="/home/honza/dev/test/stl_test/stl_test.cpp",line="12",thread-groups=["i1"],times="0",original-location="/home/honza/dev/test/stl_test/stl_test.cpp:12"} (gdb) ^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x0000000000400906",func="main()",file="stl_test.cpp",fullname="/home/honza/dev/test/stl_test/stl_test.cpp",line="6",thread-groups=["i1"],times="0",original-location="main"} (gdb) =thread-group-started,id="i1",pid="13100" =thread-created,id="1",group-id="i1" ^running *running,thread-id="all" (gdb) =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1" =library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1" &"warning: Could not load shared library symbols for linux-vdso.so.1.\nDo you need \"set solib-search-path\" or \"set sysroot\"?" &"\n" =library-loaded,id="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",target-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",host-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/x86_64-linux-gnu/libgcc_s.so.1",target-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",host-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1" =breakpoint-modified,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x0000000000400906",func="main()",file="stl_test.cpp",fullname="/home/honza/dev/test/stl_test/stl_test.cpp",line="6",thread-groups=["i1"],times="1",original-location="main"} *stopped,reason="breakpoint-hit",disp="del",bkptno="2",frame={addr="0x0000000000400906",func="main",args=[],file="stl_test.cpp",fullname="/home/honza/dev/test/stl_test/stl_test.cpp",line="6"},thread-id="1",stopped-threads="all",core="0" =breakpoint-deleted,id="2" (gdb) &"\n" ^done (gdb) ^done,name="var1",numchild="0",value="{...}",type="std::list >",thread-id="1",dynamic="1",has_more="1" (gdb) ^done,name="var2",numchild="0",value="{...}",type="std::list >",thread-id="1",dynamic="1",has_more="1" (gdb) ^done,numchild="1",children=[child={name="var2.",exp="",numchild="35",type="char [35]",thread-id="1"}],has_more="0" (gdb) ^running *running,thread-id="all" (gdb) =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000400952",func="main()",file="stl_test.cpp",fullname="/home/honza/dev/test/stl_test/stl_test.cpp",line="12",thread-groups=["i1"],times="1",original-location="/home/honza/dev/test/stl_test/stl_test.cpp:12"} *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0000000000400952",func="main",args=[],file="stl_test.cpp",fullname="/home/honza/dev/test/stl_test/stl_test.cpp",line="12"},thread-id="1",stopped-threads="all",core="0" (gdb) &"\n" ^done (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 ~"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) " -- You are receiving this mail because: You are on the CC list for the bug.