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 gdb/15316] New: GNU/Linux x86_64, fails to switch inferior processes with error "Inferior has no threads" after child process exits


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

             Bug #: 15316
           Summary: GNU/Linux x86_64, fails to switch inferior processes
                    with error "Inferior has no threads" after child
                    process exits
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jjgionta@ncsu.edu
    Classification: Unclassified


Created attachment 6952
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6952
output of gdb with bug behavior. Cannot switch to inferior 1.

Debugging a process with detach-on-fork off and follow-fork-mode child. The
parent forks and waits on the child pid. After the child exits, gdb cannot
successfully switch to the parent that is waiting on the exited child. Inferior
1 returns "Inferior has no threads" however the process is still running
waiting on the child to exit.

This bug is essentially the same as a previously closed bug
http://sourceware.org/bugzilla/show_bug.cgi?id=9585 

attached is the gdb trace with:
handle SIGUSR2 noprint
set follow-fork-mode child
set detach-on-fork off
set schedule-multiple on
set debug infrun 1
set debug lin-lwp 1

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


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