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

end of thread, other threads:[~2010-08-09 16:45 UTC | newest]

Thread overview: 9+ 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

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