This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PR 4756: Already solved?
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 17 Apr 2003 15:30:54 +0200
- Subject: 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.