Subj : Re: Difference between libpthread.so.0 and tls/libpthread.so.0 on SuSE-9.1 ? To : comp.programming.threads From : David Schwartz Date : Sat Jan 15 2005 06:38 pm "Izo" wrote in message news:HpPFc.6165$37.822976@news.siol.net... > Thanks. That is evident but what bothers me is that my program works with > the first but not the other one. Using tls one I can follow it with > debugger (gdb-6.1) to the point where pthread_create is called and after > that it just, I do not know, maybe stops or what. Running without debugger > shows that some threads do start but crash afterwards. How are you choosing which one to use? Are you setting LD_ASSUME_KERNEL or are you using some other mechanism? Are you sure your kernel supports NPTL? Do NPTL programs other than yours work? > I can't even determine where and how to start to crack this problem - > compiler did the job so the function calls used are OK. Should the thread > working resources be set in any way different to the LinuxThreads ? The first think you need to do is figure out whether it's your program or your system. Compile other multi-threaded programs and test them with NPTL. > I am using following functions: > > pthread_(create,join,kill) > pthread_sigmask > pthread_mutex(attr)_(destroy,init) > pthread_mutex_(try,un)lock > pthread_mutex_settype > > I have searched through the manpages and I can really not see any > difference in using these functions in LT or NPTL. The signals you are masking with pthread_sigmask, how are they sent? LinuxThreads had buggy signal handling and maybe your program relied on the bugs. When your program stops, why does it stop? SEGV? What happens when you analyze the core file? DS .