4cb Subj : Re: Help! pthread_cancel causes problem To : comp.programming.threads From : Jessie Date : Fri Sep 02 2005 07:28 pm Hi David, Thanks for your information. I am just wondering why this "application error" only happens on Redhat 3 but not on Redhat 9. The thread is in a while loop and do the select() action. If select() is interrupted by signal, the thread will do something. If select() detects the connection is closed by client, the thread will exit. I use try/catch outside the while loop. I have not set cancellation type. The cancellation mode is default. Thanks again for your quick response. Jessie David Schwartz wrote: > "Jessie" wrote in message > news:1125706600.223329.76210@g49g2000cwa.googlegroups.com... > > > I've searched on web and it seems to be the Bugzilla Bug 104689. > > However, the solution suggested (using LD_ASSUME_KERNEL solution) > > doesn't work for me. > > Did you actually read the bug report? The bug was caused by an > application error. The solution is to fix the application. > > Hint: That thread you cancelled -- what was it doing when you cancelled > it? What cancellation mode was it in? > > DS . 0