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 breakpoints/11408] New: gdb-7.1 spins and hangs in my normal work. (git bisection supplied)


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.


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