Subj : Problem with pthread_cancel under NPTL To : comp.programming.threads From : Jerome Date : Wed Jun 08 2005 03:45 pm Hello, I have a big problem using NPTL under my Linux Mandrake 10.1 distribution (libpthread 0.10, TLS, standard 2.4.27 kernel from Mandrake, glibc 2.3.3-23, GCC 3.4.1). My C code create about 20 threads (calling pthread_create) from another threaded function. There is no thread in a detached state, but when i call pthread_cancel i get a segmentation fault (code compiled with -03 flag). -When i try the same code under LinuxThread (using LD_ASSUME_KERNEL=2.4.1), everything goes OK !!! -When i try the same code with -g or -O2, there is no problem, everything goes OK !!! Any Idea ??? thanks for help jtollet@magic.fr .