public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
@ 2010-03-20 19:00 gdb-bugs0000 at cneufeld dot ca
  2010-03-22 15:41 ` [Bug breakpoints/11408] " swagiaal at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: gdb-bugs0000 at cneufeld dot ca @ 2010-03-20 19:00 UTC (permalink / raw)
  To: gdb-prs

I downloaded and compiled gdb-7.1, and found it to be unusable for me.  Whereas
gdb-7.0.1 worked well, 7.1 will often freeze when doing simple things like
setting a new breakpoint at a specified line number.  An strace of the gdb
process shows it to be spinning hard, calling the lseek() syscall over and over
(several thousand times is typical), before completing.  Setting a breakpoint
can take anywhere from 5 seconds to several minutes, with the CPU hard-spinning
the whole time.  This is entirely reproducible for me, I have just to set a
breakpoint at main(), run my debugging binary, then type "b 200" to add another
breakpoint at line 200 in the source module holding main.  This takes several
seconds in 7.1, and is effectively instantaneous in 7.0.1.  I have also seen it
hang when asked to print the value of a local variable.

I compiled gdb from sources, using gcc-4.2.4.

I realize that the git tree isn't fine-grained to individual commits, but having
the bisection ought still to help.  The bad behaviour first appears at revision
f03d5cd98559bdc7ee93b72383d9e50999310a97.  It was fixed at revision
f89f0ae081112db5dfad6264f481e6ca88b4d252, but unfortunately that revision is not
in the 7.1 release.

I've had to revert to 7.0.1 because of this bug.

-- 
           Summary: gdb-7.1 spins and hangs in my normal work.  (git
                    bisection supplied)
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: gdb-bugs0000 at cneufeld dot ca
                CC: gdb-prs at sourceware dot org


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
@ 2010-03-22 15:41 ` swagiaal at redhat dot com
  2010-03-23 14:05 ` glibcbugs0000 at cneufeld dot ca
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: swagiaal at redhat dot com @ 2010-03-22 15:41 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From swagiaal at redhat dot com  2010-03-22 15:41 -------
Hi Christopher,

Thanks for the git bisect. I can back-port
f89f0ae081112db5dfad6264f481e6ca88b4d252 and related fixes to be put into 7.1.1

Can you give me a small reproducer so I can find out what the problem was
exactly and verify the fix ?

Sami

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|swagiaal at redhat dot com
                   |org                         |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
  2010-03-22 15:41 ` [Bug breakpoints/11408] " swagiaal at redhat dot com
@ 2010-03-23 14:05 ` glibcbugs0000 at cneufeld dot ca
  2010-03-23 15:38 ` swagiaal at redhat dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: glibcbugs0000 at cneufeld dot ca @ 2010-03-23 14:05 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From glibcbugs0000 at cneufeld dot ca  2010-03-23 14:05 -------
I've been trying to find a non-proprietary binary that exhibits the behaviour. 
So far, it is quite reproducible on every binary I build for work, but that code
is not publicly available.

My KDE builds generate similar-sized binaries (50+ MB debugging binaries on
x86_64), and are built on the same compiler, but don't exhibit this behaviour. 
It's seems to be something subtle, I'm still trying to find some way for others
to reproduce the problem.

-- 


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
  2010-03-22 15:41 ` [Bug breakpoints/11408] " swagiaal at redhat dot com
  2010-03-23 14:05 ` glibcbugs0000 at cneufeld dot ca
@ 2010-03-23 15:38 ` swagiaal at redhat dot com
  2010-03-23 15:40 ` swagiaal at redhat dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: swagiaal at redhat dot com @ 2010-03-23 15:38 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From swagiaal at redhat dot com  2010-03-23 15:38 -------
Created an attachment (id=4674)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4674&action=view)
Potential patch


-- 


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
                   ` (2 preceding siblings ...)
  2010-03-23 15:38 ` swagiaal at redhat dot com
@ 2010-03-23 15:40 ` swagiaal at redhat dot com
  2010-03-23 15:44 ` glibcbugs0000 at cneufeld dot ca
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: swagiaal at redhat dot com @ 2010-03-23 15:40 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From swagiaal at redhat dot com  2010-03-23 15:40 -------
could you try this branch:
$ git clone git://sourceware.org/git/archer.git
$ cd archer
$ git checkout archer-swagiaal-temp-71patch

this is 7.1 with the patch. I have also attached the patch if that is preferable.

-- 


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
                   ` (3 preceding siblings ...)
  2010-03-23 15:40 ` swagiaal at redhat dot com
@ 2010-03-23 15:44 ` glibcbugs0000 at cneufeld dot ca
  2010-03-23 15:48 ` swagiaal at redhat dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: glibcbugs0000 at cneufeld dot ca @ 2010-03-23 15:44 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From glibcbugs0000 at cneufeld dot ca  2010-03-23 15:44 -------
I applied the patch from the attachment, and the problem no longer appears in my
(reproducible) test cases.  I'm closing the bug.  Thank you.

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


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
                   ` (4 preceding siblings ...)
  2010-03-23 15:44 ` glibcbugs0000 at cneufeld dot ca
@ 2010-03-23 15:48 ` swagiaal at redhat dot com
  2010-08-06 19:56 ` tromey at redhat dot com
  2010-08-09 16:45 ` tromey at redhat dot com
  7 siblings, 0 replies; 10+ messages in thread
From: swagiaal at redhat dot com @ 2010-03-23 15:48 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From swagiaal at redhat dot com  2010-03-23 15:48 -------
Awesome!.. I'll post the fix upstream

-- 


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
                   ` (5 preceding siblings ...)
  2010-03-23 15:48 ` swagiaal at redhat dot com
@ 2010-08-06 19:56 ` tromey at redhat dot com
  2010-08-09 16:45 ` tromey at redhat dot com
  7 siblings, 0 replies; 10+ messages in thread
From: tromey at redhat dot com @ 2010-08-06 19:56 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-04-08 17:15 -------
Subject: Bug 11408

CVSROOT:	/cvs/src
Module name:	src
Branch: 	gdb_7_1-branch
Changes by:	swagiaal@sourceware.org	2010-04-08 17:15:12

Modified files:
	gdb            : ChangeLog buildsym.c cp-namespace.c 
	                 cp-support.h dwarf2read.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.cp: gdb2384-base.cc gdb2384-base.h 

Log message:
	PR 11408: Backport using_directives memory leak fix.
	
	2010-04-08  Sami Wagiaalla  <swagiaal@redhat.com>
	
	PR Breakpoints/11408:
	* cp-namespace.c (cp_add_using): Deleted.
	(cp_add_using_directive): Use obstack allocations.
	Merged the function cp_add_using into this one.
	Added 'struct obstack *' argument.
	(cp_scan_for_anonymous_namespaces): Updated.
	* cp-support.h: Updated.
	* dwarf2read.c (read_import_statement): Updated.
	(read_namespace): Updated.
	* buildsym.c (finish_block): Reset using_directives pointer
	after block initialization.
	
	2010-03-22  Sami Wagiaalla  <swagiaal@redhat.com>
	
	* gdb.cp/gdb2384-base.h: Created 'namespace B'.
	* gdb.cp/gdb2384-base.cc: Use 'namespace B'.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.11378.2.35&r2=1.11378.2.36
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/buildsym.c.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.78&r2=1.78.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-namespace.c.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.34&r2=1.34.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-support.h.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.33&r2=1.33.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.356.2.2&r2=1.356.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.2147.2.4&r2=1.2147.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/gdb2384-base.cc.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.5&r2=1.5.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/gdb2384-base.h.diff?cvsroot=src&only_with_tag=gdb_7_1-branch&r1=1.5&r2=1.5.2.1


------- Additional Comments From tromey at redhat dot com  2010-08-06 19:56 -------
*** Bug 11890 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wkf at alum dot mit dot edu


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
  2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
                   ` (6 preceding siblings ...)
  2010-08-06 19:56 ` tromey at redhat dot com
@ 2010-08-09 16:45 ` tromey at redhat dot com
  7 siblings, 0 replies; 10+ messages in thread
From: tromey at redhat dot com @ 2010-08-09 16:45 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-08-09 16:45 -------
*** Bug 11316 has been marked as a duplicate of this bug. ***

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


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

------- 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] 10+ messages in thread

* [Bug breakpoints/11408] gdb-7.1 spins and hangs in my normal work.  (git bisection supplied)
       [not found] <bug-11408-4717@http.sourceware.org/bugzilla/>
@ 2011-06-01 20:32 ` greened at obbligato dot org
  0 siblings, 0 replies; 10+ messages in thread
From: greened at obbligato dot org @ 2011-06-01 20:32 UTC (permalink / raw)
  To: gdb-prs

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

David Greene <greened at obbligato dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greened at obbligato dot
                   |                            |org

--- Comment #10 from David Greene <greened at obbligato dot org> 2011-06-01 20:31:41 UTC ---
This still happens for me with gdb 7.2.

-- 
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] 10+ messages in thread

end of thread, other threads:[~2011-06-01 20:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-20 19:00 [Bug breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied) gdb-bugs0000 at cneufeld dot ca
2010-03-22 15:41 ` [Bug breakpoints/11408] " swagiaal at redhat dot com
2010-03-23 14:05 ` glibcbugs0000 at cneufeld dot ca
2010-03-23 15:38 ` swagiaal at redhat dot com
2010-03-23 15:40 ` swagiaal at redhat dot com
2010-03-23 15:44 ` glibcbugs0000 at cneufeld dot ca
2010-03-23 15:48 ` swagiaal at redhat dot com
2010-08-06 19:56 ` tromey at redhat dot com
2010-08-09 16:45 ` tromey at redhat dot com
     [not found] <bug-11408-4717@http.sourceware.org/bugzilla/>
2011-06-01 20:32 ` greened at obbligato 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).