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]

gdb/2455: Cannot reattach to multithreaded process


>Number:         2455
>Category:       gdb
>Synopsis:       Cannot reattach to multithreaded process
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 06 11:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     mikbini@gmail.com
>Release:        6.5-25.el5_1.1rh
>Organization:
>Environment:
Linux nestor.focuseek.com 2.6.18-53.1.14.el5.centos.plus #1 SMP Fri Mar 7 08:37:13 EST 2008 i686 i686 i386 GNU/Linux
>Description:
If I re-attach to a multithreaded program after re-running the  executable (even if the executable binary didn't change) I get the following error message:

Cannot find new threads: generic error
>How-To-Repeat:
You need a multithreaded a.out

$ ./a.out
# Let's say a.out has pid 12345

# On another tty
$ gdb a.out 12345
# You can now debug, but if you detach...
(gdb) detach

# On the first tty
$ ./a.out
# Let's say the new run of a.out has pid 12355

# Back to gdb tty
(gdb) attach 12355

gdb says:

Attaching to program: a.out, process 12355
Cannot find new threads: generic error
>Fix:

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


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