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/12203] gdb internal error "infrun.c:2455" after trying tocreate realtime thread on Linux


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

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:

LLTA: KILL(SIG0) LWP 6742 (OK)
LLW: PTRACE_CONT LWP 6742, Unknown signal 77 (preempt 'handle')
error creating thread: Operation not permitted
LLW: waitpid 6742 received Trace/breakpoint trap (stopped)
LLTA: KILL(SIG0) LWP 6742 (OK)
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.


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