Subj : Re: atexit handler: pthread_cancel, pthread_testcancel, pthread_join problem To : comp.programming.threads From : loic-dev Date : Thu Aug 18 2005 04:21 am Hello, > The thread A, calls pthread_cancel(B) in its atexit handler. This is > followed by a call to pthread_join(B, 0) (in atexit handler). > This seems to create problems. Any thoughts on this much appreciated. I could reproduce your problem on my FC3 / NPTL. Looks like a bug somewhere in the stack unwinding mechanism... > #include > #include > #include > > pthread_t th; > > void* start_thread(void *) > { > for(;;) > { > std::cout << "testcancel()" << std::endl; replace this by a printf(). Does your problem persist? With regards, Loic. .