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, Kaz Kylheku wrote:

> On Thu, 6 Feb 2003, Thorsten Kukuk wrote:
> 
> > Hi,
> > 
> > the appendend testprogram works fine with glibc 2.2.x, but it does
> > not work with current glibc from CVS. The "printf("in main\n");
> > is never reached. If I don't call popen(), it works fine. Any ideas,
> > what could go wrong? This happens on all architectures.
> 
> Note that you don't call popen() this program does *not* work fine,
> depending on what you mean by fine.  When the main thread terminates by
> retruning from main(), the process exits; all other threads are killed
> in their tracks. So you are leaving entirely to chance how much of the
> foo() thread work actually completes.

This does not matter. This is no real world program, this is a short
example which triggers the bug. That's everything.

  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: msg00044/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]