public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print
@ 2014-01-20 12:51 aegges at web dot de
  2014-01-21  8:41 ` [Bug python/16470] " marc.khouzam at ericsson dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: aegges at web dot de @ 2014-01-20 12:51 UTC (permalink / raw)
  To: gdb-prs

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 <list>
using namespace std;

int main()
{
list<int> x;
list<int> 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.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
@ 2014-01-21  8:41 ` marc.khouzam at ericsson dot com
  2014-01-26  8:12 ` xhpohanka at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marc.khouzam at ericsson dot com @ 2014-01-21  8:41 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

Marc Khouzam <marc.khouzam at ericsson dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marc.khouzam at ericsson dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
  2014-01-21  8:41 ` [Bug python/16470] " marc.khouzam at ericsson dot com
@ 2014-01-26  8:12 ` xhpohanka at gmail dot com
  2014-01-26  9:28 ` qiyao at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: xhpohanka at gmail dot com @ 2014-01-26  8:12 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

Jan Pohanka <xhpohanka at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xhpohanka at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
  2014-01-21  8:41 ` [Bug python/16470] " marc.khouzam at ericsson dot com
  2014-01-26  8:12 ` xhpohanka at gmail dot com
@ 2014-01-26  9:28 ` qiyao at gcc dot gnu.org
  2014-01-27  7:21 ` xhpohanka at gmail dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: qiyao at gcc dot gnu.org @ 2014-01-26  9:28 UTC (permalink / raw)
  To: gdb-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4192 bytes --]

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to Axel Müller from comment #0)

> 
> I installed the python pretty printers for STL from the GNU website and load
> them in my .gdbinit.

Where can we get the python pretty printer? and how do you load them into GDB?

> 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

We don't know what your ~/.gdbinit is, so could you please give us the steps in
your ~/.gdbinit?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-15118-listarch-gdb-prs=sources.redhat.com@sourceware.org Sun Jan 26 18:24:34 2014
Return-Path: <gdb-prs-return-15118-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 16410 invoked by alias); 26 Jan 2014 18:24:34 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 16374 invoked by uid 48); 26 Jan 2014 18:24:33 -0000
From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/16505] New: internal SIGFPE busy-CPU locks up GDB
Date: Sun, 26 Jan 2014 18:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: gdb
X-Bugzilla-Version: HEAD
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil at redhat 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: bug_id short_desc product version bug_status
 bug_severity priority component assigned_to reporter cf_gcchost
 attachments.created
Message-ID: <bug-16505-4717@http.sourceware.org/bugzilla/>
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/msg00126.txt.bz2
Content-length: 1239

https://sourceware.org/bugzilla/show_bug.cgi?id\x16505

            Bug ID: 16505
           Summary: internal SIGFPE busy-CPU locks up GDB
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
              Host: x86_64-unknown-linux-gnu

Created attachment 7372
  --> https://sourceware.org/bugzilla/attachment.cgi?ids72&actioníit
trivial 1/0 reproducer

When SIGFPE happens in GDB (for example due to corrupted DWARF file):

Actual:
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
22602 jkratoch  20   0  243188  90680  39960 R  97.3  1.5   0:12.50 gdb
+
GDB under GDB:
Program received signal SIGFPE, Arithmetic exception.
0x00000000007d076e in process_die (die=0x2531c40, cu=0x23d1b80) at
dwarf2read.c:8031
8031    volatile int i=a/b;
(gdb) _

Expected:
../../gdb/dwarf2read.c:8031: internal-error:
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) _

--
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
                   ` (2 preceding siblings ...)
  2014-01-26  9:28 ` qiyao at gcc dot gnu.org
@ 2014-01-27  7:21 ` xhpohanka at gmail dot com
  2014-01-27  8:31 ` qiyao at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: xhpohanka at gmail dot com @ 2014-01-27  7:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

--- Comment #2 from Jan Pohanka <xhpohanka at gmail dot com> ---
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.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
                   ` (3 preceding siblings ...)
  2014-01-27  7:21 ` xhpohanka at gmail dot com
@ 2014-01-27  8:31 ` qiyao at gcc dot gnu.org
  2014-01-27 12:14 ` xhpohanka at gmail dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: qiyao at gcc dot gnu.org @ 2014-01-27  8:31 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> ---
I can't reproduce it on GDB 7.6, 7.6.1 and mainline on X86-Fedora16. :(

$ ./gdb -i mi --data-directory=./data-directory/                                
=thread-group-added,id="i1"                                                     
~"GNU gdb (GDB) 7.6\n"
~"Copyright (C) 2013 Free Software Foundation, Inc.\n"                          
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\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 \"i686-pc-linux-gnu\".\nFor bug reporting
instructions, please see:\n"                                                    
~"<http://www.gnu.org/software/gdb/bugs/>.\n"                                   
(gdb)                                                                           
set print pretty on                                                             
&"set print pretty on\n"                                                        
=cmd-param-changed,param="print pretty",value="on"                              
^done                                                                           
(gdb)                                                                           
set print object on                                                             
&"set print object on\n"                                                        
=cmd-param-changed,param="print object",value="on"                              
^done                                                                           
(gdb)                                                                           
set print static-members on                                                     
&"set print static-members on\n"                                                
^done                                                                           
(gdb)                                                                           
set print vtbl on                                                               
&"set print vtbl on\n"                                                          
=cmd-param-changed,param="print vtbl",value="on"                                
^done                                                                           
(gdb)                                                                           
set print demangle on                                                           
&"set print demangle on\n"                                                      
^done                                                                           
(gdb)                                                                           
set demangle-style gnu-v3                                                       
&"set demangle-style gnu-v3\n"                                                  
=cmd-param-changed,param="demangle-style",value="gnu-v3"                        
^done                                                                           
(gdb)                                                                           
-enable-pretty-printing                                                         
^done                                                                           
(gdb)                                                                           
-gdb-set print object on                                                        
^done                                                                           
(gdb)                                                                           
source /tmp/1.txt                                                               
&"source /tmp/1.txt\n"                                                          
^done                                                                           
(gdb)                                                                           
-file-exec-and-symbols --thread-group i1 /tmp/1.exe                             
^done                                                                           
(gdb)                                                                           
-break-insert --thread-group i1 -f /tmp/1.cc:12                                 
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804863e",func="main()",file="1.cc",fullname="/tmp/1.cc",line="12",thread-groups=["i1"],times="0",original-location="/tmp/1.cc:12"} 
(gdb)                                                                           
-break-insert --thread-group i1 -t -f main                                      
^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x080485ee",func="main()",file="1.cc",fullname="/tmp/1.cc",line="6",thread-groups=["i1"],times="0",original-location="main"} 
(gdb)                                                                           
-exec-run --thread-group i1                                                     
=thread-group-started,id="i1",pid="11180"                                       
=thread-created,id="1",group-id="i1"                                            
^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libstdc++.so.6",target-name="/usr/lib/libstdc++.so.6",host-name="/usr/lib/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libm.so.6",target-name="/lib/libm.so.6",host-name="/lib/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libgcc_s.so.1",target-name="/lib/libgcc_s.so.1",host-name="/lib/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-name="/lib/libc.so.6",symbols-loaded="0",thread-group="i1"
=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x080485ee",func="main()",file="1.cc",fullname="/tmp/1.cc",line="6",thread-groups=["i1"],times="1",original-location="main"}
*stopped,reason="breakpoint-hit",disp="del",bkptno="2",frame={addr="0x080485ee",func="main",args=[],file="1.cc",fullname="/tmp/1.cc",line="6"},thread-id="1",stopped-threads="all",core="2"
=breakpoint-deleted,id="2"
(gdb) 
-var-create --thread-group i1 - * x
^done,name="var1",numchild="0",value="{...}",type="std::list<int,
std::allocator<int> >",thread-id="1",dynamic="1",has_more="1"
(gdb) 
-var-create --thread 1 --frame 0 - * x
^done,name="var2",numchild="0",value="{...}",type="std::list<int,
std::allocator<int> >",thread-id="1",dynamic="1",has_more="1"
(gdb) 
-var-list-children var2
^done,numchild="3",children=[child={name="var2.[0]",exp="[0]",numchild="0",type="int",thread-id="1"},child={name="var2.[1]",exp="[1]",numchild="0",type="int",thread-id="1"},child={name="var2.[2]",exp="[2]",numchild="0",type="int",thread-id="1"}],has_more="0"
(gdb) 
-exec-continue --thread 1
^running
*running,thread-id="all"
(gdb) 
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804863e",func="main()",file="1.cc",fullname="/tmp/1.cc",line="12",thread-groups=["i1"],times="1",original-location="/tmp/1.cc:12"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0804863e",func="main",args=[],file="1.cc",fullname="/tmp/1.cc",line="12"},thread-id="1",stopped-threads="all",core="0"
(gdb) 
-var-update 1 var2
^done,changelist=[{name="var2",value="{...}",in_scope="true",type_changed="false",new_num_children="1",dynamic="1",has_more="0"},{name="var2.[0]",value="1",in_scope="true",type_changed="false",has_more="0"}]
(gdb) 
-gdb-exit
^exit
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"

$ cat /tmp/1.txt
python
import sys
sys.path.insert(0, '/home/yao/Source/gnu/gdb_printers/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
                   ` (4 preceding siblings ...)
  2014-01-27  8:31 ` qiyao at gcc dot gnu.org
@ 2014-01-27 12:14 ` xhpohanka at gmail dot com
  2021-09-15  7:02 ` beaux_monde at tut dot by
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: xhpohanka at gmail dot com @ 2014-01-27 12:14 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

--- Comment #4 from Jan Pohanka <xhpohanka at gmail dot com> ---
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
<http://gnu.org/licenses/gpl.html>\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"
~"<http://www.gnu.org/software/gdb/bugs/>.\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<int,
std::allocator<int> >",thread-id="1",dynamic="1",has_more="1"
(gdb) 
^done,name="var2",numchild="0",value="{...}",type="std::list<int,
std::allocator<int> >",thread-id="1",dynamic="1",has_more="1"
(gdb) 
^done,numchild="1",children=[child={name="var2.<error at 0>",exp="<error at
0>",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.


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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
                   ` (5 preceding siblings ...)
  2014-01-27 12:14 ` xhpohanka at gmail dot com
@ 2021-09-15  7:02 ` beaux_monde at tut dot by
  2022-06-07 15:36 ` tromey at sourceware dot org
  2023-08-31 19:21 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: beaux_monde at tut dot by @ 2021-09-15  7:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

Serge Roussak <beaux_monde at tut dot by> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |beaux_monde at tut dot by

--- Comment #5 from Serge Roussak <beaux_monde at tut dot by> ---
This bug is reproduced on my machine too. I use the Eclipse CDT IDE and this
bug may break the debugging because the gdb is crashed sometimes with exactly
the same symptoms as described here and the same assertion is logged on the gdb
trace console. I tried the different Eclipse CDT, gcc and gdb versions -- the
bug is here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
                   ` (6 preceding siblings ...)
  2021-09-15  7:02 ` beaux_monde at tut dot by
@ 2022-06-07 15:36 ` tromey at sourceware dot org
  2023-08-31 19:21 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-06-07 15:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
I tried this recently and was also unable to reproduce.
At the same time I don't really see why that assertion
should even be there.  Either the value should automatically
un-lazy, or we could just explicitly un-lazy it at that point.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/16470] Crash when inspecting STL containers with GDB pretty print
  2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
                   ` (7 preceding siblings ...)
  2022-06-07 15:36 ` tromey at sourceware dot org
@ 2023-08-31 19:21 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 19:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16470

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Tom Tromey <tromey at sourceware dot org> ---
Tried again and I still can't reproduce.  Tried gdb git master.
I'm going to close this; but if someone has more
info and can still reproduce, please reopen.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2023-08-31 19:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20 12:51 [Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print aegges at web dot de
2014-01-21  8:41 ` [Bug python/16470] " marc.khouzam at ericsson dot com
2014-01-26  8:12 ` xhpohanka at gmail dot com
2014-01-26  9:28 ` qiyao at gcc dot gnu.org
2014-01-27  7:21 ` xhpohanka at gmail dot com
2014-01-27  8:31 ` qiyao at gcc dot gnu.org
2014-01-27 12:14 ` xhpohanka at gmail dot com
2021-09-15  7:02 ` beaux_monde at tut dot by
2022-06-07 15:36 ` tromey at sourceware dot org
2023-08-31 19:21 ` tromey at sourceware dot 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).