This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
- From: "sven dot anderson at snom dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 28 Sep 2010 12:29:40 -0000
- Subject: [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
- References: <20100531102611.11648.sven.anderson@snom.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From sven dot anderson at snom dot com 2010-09-28 12:29 -------
Ok, in the end the test case is very simple. You just need a class with a couple
of static objects of its own. See gdb-crash.cpp.
How to reproduce:
$ g++ -g gdb-crash.cpp -o gdb-crash
$ ~/src/gdb-7.1.50.20100527/gdb/gdb gdb-crash
(gdb) b main
(gdb) r
(gdb) print global
q<return>
(gdb) print global
q<return>
(gdb) print global
-> segmentation fault
(see gdb-crash.txt for details)
My system is an up-to-date Ubuntu 10.04, 32bit, that is:
$ uname -a
Linux anderssv-lx-01 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC
2010 i686 GNU/Linux
and libc: 2.11.1-0ubuntu7.2 (i686 optimized version)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11648
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.