Bug with popen/pthread_create

Thorsten Kukuk kukuk@suse.de
Thu Feb 6 23:01:00 GMT 2003


On Thu, Feb 06, Neal H. Walfield wrote:

> > This does not matter. This is no real world program, this is a short
> > example which triggers the bug. That's everything.
> 
> No, fix your buggy program: pthread_wait for threads who have not
> finished before returning from main or calling exit.  That's
> everything.

I think you don't understand the problem: pthread_create() does
not return, the printf() in the main function is never called and
the program never exits. This is a critical bug in glibc. I don't
care if the thread itself prints it message or not. The program is
fine to trigger the bug.

But if you think the test program is buggy, you can send me the 
patch so that it works?

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030206/644a2a6d/attachment.sig>


More information about the Libc-alpha mailing list