Subj : Re: Strange behaviour To : comp.programming.threads From : sunglo Date : Tue Apr 19 2005 03:03 pm >> I'm using linux 2.6 with NPTL. > On which distro? gentoo. This is what /lib/libc.so.6 shows: GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1). Compiled on a Linux 2.6.8 system on 2005-03-25. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others Native POSIX Threads Library by Ulrich Drepper et al The C stubs add-on version 2.1.2. GNU Libidn by Simon Josefsson BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: . > Did you got that behavior with LinuxThreads? (export the environment > variable LD_ASSUME_KERNEL to 2.4.19 before executing your > process). That machine is a NPTL-only, so I can't test the program there. But yes, on another (linuxthread) box the code works OK. > Seems to be an issue in the NPTL you are using. Searching for bugs on the glibc lists, I found bug 530 (http://sources.redhat.com/bugzilla/show_bug.cgi?id=530), which seems to describe my problem. But I'm not sure whether it applies to my version of glibc. Thanks for your answer. .