logo       

threads/2372: GDB doesnt step/next correctly if threads are created while p: msg#00036

Subject: threads/2372: GDB doesnt step/next correctly if threads are created while program is stopped
>Number:         2372
>Category:       threads
>Synopsis:       GDB doesnt step/next correctly if threads are created while 
>program is stopped
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 29 11:28:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     mihai.stanescu@xxxxxxxxx
>Release:        2.7.1
>Organization:
>Environment:
Gentoo with kernel 2.6.22, GNU gdb 6.7.1
>Description:

I attach to a multithreaded application and set a breakpoint in child thread. 
After gdb is stopped i wait a little and try to step to next instruction. GDB 
doesnt stop and actually executes a continue. 

This is the output of gdb
(gdb) next
[Thread 0xa96ffb90 (LWP 30225) exited]
[New Thread 0xa8efeb90 (LWP 30226)]
<<< after some time(while i wrote this message) >> 
[Thread 0xad066b90 (LWP 30059) exited]
Thread Event Breakpoint: gdb should not stop!
(gdb) bt
#0  0xb6377830 in __nptl_death_event () from /lib/libpthread.so.0
#1  0xb637832b in start_thread () from /lib/libpthread.so.0
#2  0xb61b603e in clone () from /lib/libc.so.6

This is an old problem and can be reproduced at least since 6.2 


Bug has 90% chances of happening and is very very anoying because my program is 
very big and some situations are very hard 

Bug doesnt happen if i use "advance" command instead of next. Problem is i need 
to step in functions and i have no alternative way. 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe