[218] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

BUG IN PTHREADS 1_60BETA4

daemon@ATHENA.MIT.EDU (SethMeister G.)
Tue Nov 28 18:14:55 1995

From: "SethMeister G." <consp05@bingsuns.cc.binghamton.edu>
To: pthreads@MIT.EDU
Date: Tue, 28 Nov 1995 17:48:43 -0500 (EST)

Hi there,

  I just wanted to report 2 bugs in the pthreads library:

   (1)  In the scanf stdio library function, the mutex held while input 
   was performed was locked TWICE once before the stream manip, and once 
   after (it should be unlocked after, but it is NOT ).

   (2) This one is NASTY - On Solaris 2.4, fork() does not work properly 
100% of the time.  eg: if one tries the following code:

  for ( int i = 0; i < 100; i++ )
    if ( fork() == 0 ) exit(0);

  Sometimes, the process LOCKS UP totally.


Please send me an acknowledgement once you receive this.  Thank you.

-S


home help back first fref pref prev next nref lref last post