[uClibc] Problems with pthreads / MIPS

Betker Thomas ICM CP RD SD 1 thomas.betker at siemens.com
Wed Jul 9 13:41:10 UTC 2003


Hi all:

We are experiencing a lot of problems with pthreads on a MIPS/MMU platform. Most tests were originally done with uclibc-0.9.12 (as provided by a third party), but were rechecked with a current CVS snapshot. We are using a 2.4.17 Linux kernel here.

A. pthread_create() hangs (sometimes, not always - say 50%), i.e., the call won't return. [This one was not rechecked with uclibc-0.9.20 yet.]

B. exit() hangs (always), if you have created any threads. The process doesn't terminate, not even the thread that called exit().

C. sigwait() doesn't work at all. If there is no signal, the call returns anyway, indicating a signal 0 (which doesn't exist). If there is a signal, it may be lost (not seen by any thread, which happens most of the time), or it may be received by a thread not waiting for it.

D. The 'kill <pid>' command usually kills the thread with the given <pid>, but not the whole process; i.e., the other threads may live on.

Does anybody else have the same problems, or is it just me? And more important, is there anything I could do about it? Any ideas?

I tried to run my test programs on a i386 platform (kernel 2.4.19), and everything worked as it should. The only exception was D., which occurs on i386 as well, but it's rather A. to C. I am concerned about.

Best regards,
Thomas Betker



More information about the uClibc mailing list