This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11648] gdb crashes with segmentation fault when printing larger objects


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]