This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [libc-alpha] linuxthreads bug in 2.2.4 under ppc linux
- From: Kevin B. Hendricks <kevin dot hendricks at sympatico dot ca>
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>,Kaz Kylheku <kaz at ashi dot footprints dot net>
- Cc: <libc-alpha at sources dot redhat dot com>
- Date: Sat, 8 Dec 2001 19:59:11 -0500
- Subject: Re: [libc-alpha] linuxthreads bug in 2.2.4 under ppc linux
- References: <Pine.LNX.4.33.0112072232510.2640-100000@ashi.FootPrints.net> <20011208125938.ENGB20714.tomts9-srv.bellnexxia.net@there> <200112081533.55612@enzo.bigblue.local>
Hi Franz,
Okay, I am down to just rebuilding libpthread.so.
If I compile linuxthreads with -O1 or -O2 I can not make it fail.
If I compile linuxthreads with -O3 it fails in exactly the place I
described earlier.
So the question is:
Is this a ppc linux specific gcc compiler issue at -O3
with something being rescheduled that should not be?
or
Is the bug in glibc-2.2.4, and the change in optimization just changes the
timing to avoid or create the problem?
I am going to diff the objdump from lipthread.so with -O2 and -O3 in
pthread_alt_lock and pthread_alt_unlock to see is anything jumps out at me.
I will let you know what if anything I find.
It is nice to know that just lowering the optimization level to -O2 from
-O3 for just linuxthreads seems to workaround the issue.
Thanks,
Kevin