PR 4756: Already solved?
Petter Reinholdtsen
pere@hungry.com
Thu Apr 17 13:30:00 GMT 2003
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.
More information about the Libc-alpha
mailing list