Bug with popen/pthread_create

Jakub Jelinek jakub@redhat.com
Thu Feb 6 19:09:00 GMT 2003


On Thu, Feb 06, 2003 at 01:58:22PM -0500, 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.

You're wrong. There is a bug in linuxthreads in the
vfork () before first pthread_create
  \- child doing exec
pthread_create in parent
sequence, I have a fix for IA-32 only ATM, will need to hack up the rest
of arches.

	Jakub



More information about the Libc-alpha mailing list