This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/444] New: nptl/tst-mutex8 crashes
- From: "tsv at solvo dot ru" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Oct 2004 12:40:35 -0000
- Subject: [Bug nptl/444] New: nptl/tst-mutex8 crashes
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Linux kernel 2.6.8.1 on DEC Alpha
binutils 2.15.92.0.2 20040927
gcc version 3.4.2 20040907 (Red Hat 3.4.2-2)
../configure --prefix=/usr --enable-add-ons=nptl,libidn --without-cvs
--enable-kernel=2.4.0 --with-headers=/usr/include --enable-bind-now --with-tls
--with-__thread --build alpha-redhat-linux --host alpha-redhat-linux
--disable-profile
Everything compiles correctly. Then I tried to "make check" the first failed
test in nptl was "tst-mutex8".
After trying debugging it (I ran it with "--direct" option to avoid forking).
The GDB cautgh "Segmentation fault" in allocatestack.c around line 205:
/* Clear the DTV. */
dtv_t *dtv = GET_DTV (TLS_TPADJ (result));
memset (dtv, '\0', (dtv[-1].counter + 1) * sizeof (dtv_t));
GDB showed that "dtv" pointer was set to zero. I changed the code like this:
if (dtv)
memset (dtv, '\0', (dtv[-1].counter + 1) * sizeof (dtv_t));
the test started to work (and all other tests that use "pthread_create"
function). Btw, I think that "dtv" could have some value only if the allocated
stack is reused (that is not in my case).
I need to say that tests works only if I use ld-linux.so.2 from linuxthreads
glibc build. The test still fails if started with ld-linux.so.2 from nptl build.
I used LD_LIBRARY_PATH to point to correct nptl libraries.
Thank you,
--
Summary: nptl/tst-mutex8 crashes
Product: glibc
Version: 2.3.3
Status: NEW
Severity: critical
Priority: P2
Component: nptl
AssignedTo: drepper at redhat dot com
ReportedBy: tsv at solvo dot ru
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: alpha-redhat-linux-gnu
GCC host triplet: alpha-redhat-linux-gnu
GCC target triplet: alpha-redhat-linux-gnu
http://sources.redhat.com/bugzilla/show_bug.cgi?id=444
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.