[Bug gdb/12203] gdb internal error "infrun.c:2455" after trying to create realtime thread on Linux

pedro at codesourcery dot com sourceware-bugzilla@sourceware.org
Thu Nov 11 18:28:00 GMT 2010


Pedro Alves <pedro at codesourcery dot com> changed:

           What    |Removed                     |Added
             Status|WAITING                     |NEW

--- Comment #3 from Pedro Alves <pedro at codesourcery dot com> 2010-11-09 15:11:53 UTC ---
Thanks for the logs.  Yep, it's the same root problem as PR 11692:

LLW: PTRACE_CONT LWP 6742, Unknown signal 77 (preempt 'handle')
error creating thread: Operation not permitted
LLW: waitpid 6742 received Trace/breakpoint trap (stopped)
LLW: Candidate event Trace/breakpoint trap (stopped) in LWP 6742.
SC:  kill LWP 6741 **<SIGSTOP>**
SC:  lwp kill 0 ERRNO-OK
WL: waitpid LWP 6741 received Stopped (signal) (stopped)
LLW: trap ptid is LWP 6742.
infrun: target_wait (-1, status) =
infrun:   -1 [process -1],
infrun:   status->kind = spurious
infrun.c:2455: internal-error: handle_inferior_event: Assertion `inf' failed.
A problem internal to GDB has been detected,

That target_wait result of "-1, spurious" means that this code in
linux-thread-db.c ran:

     /* Change ptids back into the higher level PID + TID format.  If
     the thread is dead and no longer on the thread list, we will
     get back a dead ptid.  This can occur if the thread death
     event gets postponed by other simultaneous events.  In such a
     case, we want to just ignore the event and continue on.  */

      ptid = thread_from_lwp (ptid);
      if (GET_PID (ptid) == -1)
    ourstatus->kind = TARGET_WAITKIND_SPURIOUS;

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.

More information about the Gdb-prs mailing list