On Sun, Oct 24, 2010 at 7:21 PM, Vladimir Kirillov <pro...@uaoug.org.ua> wrote: > I get this segfault almost always: > > #0 pthread_exit (retval=0x0) at /usr/src/lib/librthread/rthread.c:223 > 223 for (clfn = thread->cleanup_fns; clfn; ) {
That's weird. Can you print out thread at that point? I may be able to look into it in a few days too. > Looks like some stupid race with two threads exiting at almost same > time? Any ideas on tracking it down? I don't see how two threads could be doing that to the same thread though. This is pre-reaper. > By the way, is such gdb behaviour normal? Does it need any additional > patching before being useful to debug software using rthreads? gdb knows nothing about rthreads right now. You can attach to the main process, but that's it.