public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
       [not found] <bug-11648-4717@http.sourceware.org/bugzilla/>
@ 2012-02-23 19:45 ` tromey at redhat dot com
  0 siblings, 0 replies; 18+ messages in thread
From: tromey at redhat dot com @ 2012-02-23 19:45 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=11648

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|7.1                         |7.2

--- Comment #13 from Tom Tromey <tromey at redhat dot com> 2012-02-23 19:44:34 UTC ---
Thanks.
Definitely works now, so I'm closing this.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (15 preceding siblings ...)
  2010-09-28 12:29 ` sven dot anderson at snom dot com
@ 2010-09-28 12:35 ` sven dot anderson at snom dot com
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-28 12:35 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-09-28 12:35 -------
Forgot the compiler:
$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)


-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (14 preceding siblings ...)
  2010-09-28 12:13 ` sven dot anderson at snom dot com
@ 2010-09-28 12:29 ` sven dot anderson at snom dot com
  2010-09-28 12:35 ` sven dot anderson at snom dot com
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-28 12:29 UTC (permalink / raw)
  To: gdb-prs


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


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (13 preceding siblings ...)
  2010-09-28 12:03 ` sven dot anderson at snom dot com
@ 2010-09-28 12:13 ` sven dot anderson at snom dot com
  2010-09-28 12:29 ` sven dot anderson at snom dot com
  2010-09-28 12:35 ` sven dot anderson at snom dot com
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-28 12:13 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-09-28 12:13 -------
Created an attachment (id=5018)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=5018&action=view)
How to reproduce the crash with the test case


-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (12 preceding siblings ...)
  2010-09-28  9:09 ` sven dot anderson at snom dot com
@ 2010-09-28 12:03 ` sven dot anderson at snom dot com
  2010-09-28 12:13 ` sven dot anderson at snom dot com
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-28 12:03 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-09-28 12:03 -------
Created an attachment (id=5017)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=5017&action=view)
test case to crash gdb 7.1


-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (11 preceding siblings ...)
  2010-09-27 17:49 ` tromey at redhat dot com
@ 2010-09-28  9:09 ` sven dot anderson at snom dot com
  2010-09-28 12:03 ` sven dot anderson at snom dot com
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-28  9:09 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-09-28 09:09 -------
Indeed, with 7.2 I cannot reproduce the crash. This is good news. But still I
will try to extract a test-case from our code.

-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (10 preceding siblings ...)
  2010-09-21 14:04 ` sven dot anderson at snom dot com
@ 2010-09-27 17:49 ` tromey at redhat dot com
  2010-09-28  9:09 ` sven dot anderson at snom dot com
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at redhat dot com @ 2010-09-27 17:49 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-09-27 17:49 -------
Could you possibly try 7.2?
This area has been reworked a bit since 7.1.

Otherwise it is hard to see how to proceed without a test case.
Unfortunately the valgrind output didn't really help me diagnose the bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (9 preceding siblings ...)
  2010-09-21 14:02 ` sven dot anderson at snom dot com
@ 2010-09-21 14:04 ` sven dot anderson at snom dot com
  2010-09-27 17:49 ` tromey at redhat dot com
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-21 14:04 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (8 preceding siblings ...)
  2010-09-21 13:56 ` sven dot anderson at snom dot com
@ 2010-09-21 14:02 ` sven dot anderson at snom dot com
  2010-09-21 14:04 ` sven dot anderson at snom dot com
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-21 14:02 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-09-21 14:02 -------
Created an attachment (id=4995)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4995&action=view)
trace of gdb running in valgrind

This is a complete trace of a gdb session running in valgrind. Search for
"Invalid free()" at the end. Again you see it happens in obstack_free().

-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (7 preceding siblings ...)
  2010-09-03 10:37 ` steffen-schmidt at siemens dot com
@ 2010-09-21 13:56 ` sven dot anderson at snom dot com
  2010-09-21 14:02 ` sven dot anderson at snom dot com
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-09-21 13:56 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-09-21 13:56 -------
Created an attachment (id=4994)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4994&action=view)
Backtrace of the segmentation fault when gdb is run gdb

This is a backtrace of the segmentation fault when I run the gdb inside of
another gdb session. As you can see the violation happens in obstack_free().

-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (6 preceding siblings ...)
  2010-09-03 10:33 ` steffenschmidt dot ext at siemens dot com
@ 2010-09-03 10:37 ` steffen-schmidt at siemens dot com
  2010-09-21 13:56 ` sven dot anderson at snom dot com
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: steffen-schmidt at siemens dot com @ 2010-09-03 10:37 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steffen-schmidt at siemens
                   |                            |dot com


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (5 preceding siblings ...)
  2010-06-17 17:06 ` tromey at redhat dot com
@ 2010-09-03 10:33 ` steffenschmidt dot ext at siemens dot com
  2010-09-03 10:37 ` steffen-schmidt at siemens dot com
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: steffenschmidt dot ext at siemens dot com @ 2010-09-03 10:33 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|steffenschmidt dot ext at   |
                   |siemens dot com             |


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (4 preceding siblings ...)
  2010-06-17  7:23 ` steffenschmidt dot ext at siemens dot com
@ 2010-06-17 17:06 ` tromey at redhat dot com
  2010-09-03 10:33 ` steffenschmidt dot ext at siemens dot com
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at redhat dot com @ 2010-06-17 17:06 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (3 preceding siblings ...)
  2010-06-03 15:52 ` tromey at redhat dot com
@ 2010-06-17  7:23 ` steffenschmidt dot ext at siemens dot com
  2010-06-17 17:06 ` tromey at redhat dot com
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: steffenschmidt dot ext at siemens dot com @ 2010-06-17  7:23 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steffenschmidt dot ext at
                   |                            |siemens dot com


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
                   ` (2 preceding siblings ...)
  2010-05-31 11:50 ` sven dot anderson at snom dot com
@ 2010-06-03 15:52 ` tromey at redhat dot com
  2010-06-17  7:23 ` steffenschmidt dot ext at siemens dot com
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at redhat dot com @ 2010-06-03 15:52 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-06-03 15:52 -------
One thing that might be helpful is if you ran your gdb session under valgrind,
then reproduced the bug.  Be sure to have the gdb debuginfo available when
you do this.

Otherwise I think we will need a test case so we can reproduce the problem.

-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
  2010-05-31 11:44 ` [Bug c++/11648] " sven dot anderson at snom dot com
  2010-05-31 11:45 ` sven dot anderson at snom dot com
@ 2010-05-31 11:50 ` sven dot anderson at snom dot com
  2010-06-03 15:52 ` tromey at redhat dot com
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-05-31 11:50 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-05-31 11:50 -------
I noticed that sometimes, if glibc debugging informations are installed, a
backtrace is shown (see second attachment), but this is not so easy to reproduce.

Also sometimes I manage get the following error message instead of a
segmentation fault:
value.c:627: internal-error: value_free: Assertion `val->reference_count > 0'
failed.
A problem internal to GDB has been detected, [...]


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
  2010-05-31 11:44 ` [Bug c++/11648] " sven dot anderson at snom dot com
@ 2010-05-31 11:45 ` sven dot anderson at snom dot com
  2010-05-31 11:50 ` sven dot anderson at snom dot com
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-05-31 11:45 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-05-31 11:45 -------
Created an attachment (id=4823)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4823&action=view)
Sometimes this backtrace is displayed


-- 


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.


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

* [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects
  2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
@ 2010-05-31 11:44 ` sven dot anderson at snom dot com
  2010-05-31 11:45 ` sven dot anderson at snom dot com
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sven dot anderson at snom dot com @ 2010-05-31 11:44 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From sven dot anderson at snom dot com  2010-05-31 11:44 -------
Created an attachment (id=4822)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4822&action=view)
Session log of how to produce segmantation fault


-- 


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.


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

end of thread, other threads:[~2012-02-23 19:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11648-4717@http.sourceware.org/bugzilla/>
2012-02-23 19:45 ` [Bug c++/11648] gdb crashes with segmentation fault when printing larger objects tromey at redhat dot com
2010-05-31 10:26 [Bug c++/11648] New: " sven dot anderson at snom dot com
2010-05-31 11:44 ` [Bug c++/11648] " sven dot anderson at snom dot com
2010-05-31 11:45 ` sven dot anderson at snom dot com
2010-05-31 11:50 ` sven dot anderson at snom dot com
2010-06-03 15:52 ` tromey at redhat dot com
2010-06-17  7:23 ` steffenschmidt dot ext at siemens dot com
2010-06-17 17:06 ` tromey at redhat dot com
2010-09-03 10:33 ` steffenschmidt dot ext at siemens dot com
2010-09-03 10:37 ` steffen-schmidt at siemens dot com
2010-09-21 13:56 ` sven dot anderson at snom dot com
2010-09-21 14:02 ` sven dot anderson at snom dot com
2010-09-21 14:04 ` sven dot anderson at snom dot com
2010-09-27 17:49 ` tromey at redhat dot com
2010-09-28  9:09 ` sven dot anderson at snom dot com
2010-09-28 12:03 ` sven dot anderson at snom dot com
2010-09-28 12:13 ` sven dot anderson at snom dot com
2010-09-28 12:29 ` sven dot anderson at snom dot com
2010-09-28 12:35 ` sven dot anderson at snom dot com

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