--- Graham J Lee <leeg@thaesofereode.info> wrote:
It looks like it might be racy, because if I step
past the section
(lines 551-555 here, I'm on base 1.13.0) in
NSThread.m:
if
(objc_thread_detach(@selector(__sendThreadMethod),thread,nil)
== NULL)
{
[NSException raise:
NSInternalConsistencyException
format: @"Unable to detach thread
(unknown error)"];
} // <--step to here
}
this little trouble maker looks awfully familiar
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18573
it could be that 0 is a valid thread id in whichever
threading model your libobjc is compiled with
this was the case on hurd/posix threads, but they
changed the first thread to 1 i believe