This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: semaphore problem with linuxthreads 0.10, but not with NPTL


Just for the record, I've recompiled my glibc package using nptl and
nptlonly gentoo use flags and the program is now working correctly.
Anyway I still would like to provide support for users not using NPTL...

Nuno

On 3/28/06, Nuno Lopes <nunoplopes@gmail.com> wrote:
> Hi,
>
> I've lost one day trying to get a somewhat complex program to run
> correctly with semaphores. In my gentoo system (with linuxthreads
> 0.10) it simply doesn't run, but when I compiled and run the program
> on a friends' machine (ubuntu with NPTL 2.3.6) it worked. So it seems
> that there is some bug in the linuxthreads implementation.
> Probably you no longer want to support the linuxthreads
> implementation, but I don't want to upgrade to glibc 2.4 yet, because
> there are still some programs in gentoo that refuse to compile with
> it.
>
> So, can you please help me with the debugging the semaphores
> implementation problem?
>
> I know this mail doesn't provide any useful information for debugging,
> but I couldn't strip the program to a small test case. The program is
> rather complex (http://opensdk.sf.net) and basically what is happening
> is that the semaphore is initialized in the main thread, and then
> there is a thread that does a sem_wait(), but it never wakes up after
> a sem_post() (all calls return successfully and I've confirmed that
> all sem_t* addresses are correct).
>
>
> Thanks,
> Nuno


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]