Bug#479952: libc6: Also in x86_64?
On Sat, Jul 25, 2009 at 12:46:40PM -0400, Will Murnane wrote:
> On Sat, Jul 25, 2009 at 03:32, Aurelien Jarno<aurelien@aurel32.net> wrote:
> > On Sat, Jul 25, 2009 at 02:11:51AM -0400, Will Murnane wrote:
> >> Package: libc6
> >> Version: 2.9-21
> >> Severity: normal
> >>
> >> I wrote a program that uses pthreads to accomplish work, and hit this bug in it. It works properly on Rhel5, so I'm pretty sure it's libc at fault.
> >>
> >> Full source code available on request. Basically, though, the problem comes when many threads are fighting for a mutex, and doing very little work between trying to obtain the lock.
> >>
> >
> > If you have a small code to reproduce the problem, it will be highly
> > appreciated.
> Attached is break_pthreads.cpp. Compile with
> g++ -g -Wall -Werror -pipe -O3 -Wno-deprecated break_pthreads.cpp -o
> break_pthreads.o -c
> g++ -g -pthread break_pthreads.o -o break_pthreads
>
> Now run it and it crashes:
> break_pthreads: pthread_mutex_lock.c:87: __pthread_mutex_lock:
> Assertion `mutex->__data.__owner == 0' failed.
> Aborted
>
This bug is reproducible with glibc 2.9, but fortunately not with glibc
2.10, that should be uploaded in the archive in a few weeks.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: