This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/11692] GDB internal error when using pthread_attr_setaffinity_np
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 11 Jun 2010 11:20:09 -0000
- Subject: [Bug threads/11692] GDB internal error when using pthread_attr_setaffinity_np
- References: <20100611085114.11692.frederic.riss@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2010-06-11 11:20 -------
Hmmm, problem is linux-thread-db.c is returning a minus_one_ptid to infrun when
this happens. See:
WL: waitpid Thread 0xb7fe16c0 (LWP 22258) received Stopped (signal) (stopped)
LLW: trap ptid is LWP 22262.
infrun: target_wait (-1, status) =
infrun: -1 [process -1],
infrun: status->kind = spurious
if (have_threads (ptid))
{
/* 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;
}
inferior -1 will obviously not be in the inferior table.
I'm not 100% certain what's best. I've wanted to get rid of
TARGET_WAITKIND_SPURIOUS before, this may be the last drop. :-)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11692
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.