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]

PR 4756: Already solved?


Problem report 4756 claims there is a bug with locale handling in
multithreaded programs, and that the following source should segfault:

  $ cat dphil.c 

  #include <pthread.h>
  #include <stdio.h>
 
  void* philosopher (void* p)
   {
     perror ("test");
     return p;
   }
 
  int main ()
   {
     pthread_t p;
     pthread_create (&p, 0, philosopher, 0);
     pthread_join (p, 0);
     return 0;
   }

The problem was reported against glibc 2.3.1, and that a patch to fix
it was submitted (and commited?) 2002-10-22 with an email to
libc-hacker,
<URL:http://sources.redhat.com/ml/libc-hacker/2002-10/msg00077.html>.

I tested the code in Debian Woody (glibc 2.2.5-11.2) and Debian Sid
(glibc 2.3.1-16), and it returned success on both of them.  I suspect
the bug is fixed, and that the problem report can be closed.  I was
unable to find the changelog entry in the changelog, so I am not quite
sure.


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