This is the mail archive of the libc-alpha@sources.redhat.com 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: Bug with popen/pthread_create


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

Attachment: msg00055/pgp00000.pgp
Description: PGP signature


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