Bug 412 - Test linuxthreads/ex1 hangs up
Summary: Test linuxthreads/ex1 hangs up
Status: RESOLVED WONTFIX
Alias: None
Product: glibc
Classification: Unclassified
Component: linuxthreads (show other bugs)
Version: 2.3.3
: P2 normal
Target Milestone: ---
Assignee: drow@false.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 12:48 UTC by Carlos Velasco
Modified: 2011-03-16 21:19 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Last reconfirmed:


Attachments
patch for i686 to include useldt.h only if not yet included (636 bytes, patch)
2004-10-02 17:24 UTC, Carlos Velasco
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Velasco 2004-09-27 12:48:05 UTC
CVS at abobut 26 Sept. 2004 

** glibc configuration
../libc/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --
mandir=/usr/share/man --enable-add-ons=linuxthreads --enable-kernel=2.4.27 --
with-tls --without-__thread && make

** make check hangs up in ex1
GCONV_PATH=/compile/glibc/iconvdata LC_ALL=C   /compile/glibc/elf/ld-
linux.so.2 --library-
path /compile/glibc:/compile/glibc/math:/compile/glibc/elf:/compile/glibc/dlfcn:
/compile/glibc/nss:/compile/glibc/nis:/compile/glibc/rt:/compile/glibc/resolv:/c
ompile/glibc/crypt:/compile/glibc/linuxthreads /compile/glibc/linuxthreads/ex1  
> /compile/glibc/linuxthreads/ex1.out

** strace reads
> GCONV_PATH=/compile/glibc/iconvdata LC_ALL=C strace /compile/glibc/elf/ld-
linux.so.2 --library-
path /compile/glibc:/compile/glibc/math:/compile/glibc/elf:/compile/glibc/dlfcn:
/compile/glibc/nss:/compile/glibc/nis:/compile/glibc/rt:/compile/glibc/resolv:/c
ompile/glibc/crypt:/compile/glibc/linuxthreads /compile/glibc/linuxthreads/ex1
execve("/compile/glibc/elf/ld-linux.so.2", ["/compile/glibc/elf/ld-
linux.so.2", "--library-
path", "/compile/glibc:/compile/glibc/math:/compile/glibc/elf:/compile/glibc/dlf
cn:/compile/glibc/nss:/compile/glibc/nis:/compile/glibc/rt:/compile/glibc/resolv
:/compile/glibc/crypt:/compile/glibc/linuxthreads", "/compile/glibc/linuxthreads
/ex1"], [/* 46 vars */]) = 0
uname({sys="Linux", node="hyperion", ...}) = 0
brk(0)                                  = 0x80015c94
brk(0x80016000)                         = 0x80016000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40000000
open("/compile/glibc/linuxthreads/ex1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\340\203"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14109, ...}) = 0
mmap2(0x8048000, 4096, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x8048000
mmap2(0x8049000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x8049000
close(3)                                = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/compile/glibc/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/tls", 0xbfffed28) = -1 ENOENT (No such file or directory)
open("/compile/glibc/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/compile/glibc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/math/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/math/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/math/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/math/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/math/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/math/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/math/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/math/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/math/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/math/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/math", {st_mode=S_IFDIR|0755, st_size=61440, ...}) = 0
open("/compile/glibc/elf/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/elf/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/elf/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/elf/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/elf/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/elf/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/elf/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/elf/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/elf/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/elf", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/compile/glibc/dlfcn/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/dlfcn/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/dlfcn/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/tls/i686", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/dlfcn/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/dlfcn/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/dlfcn/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/dlfcn/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/dlfcn/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/dlfcn/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/dlfcn/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/dlfcn/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/dlfcn", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/nss/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/nss/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/nss/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nss/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nss/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nss/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nss/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nss/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nss/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/nss", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/nis/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/nis/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/nis/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nis/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nis/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nis/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nis/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nis/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nis/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/nis", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/compile/glibc/rt/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/rt/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/rt/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/rt/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/rt/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/rt/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/rt/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/rt/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/rt/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/rt", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/compile/glibc/resolv/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/resolv/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/resolv/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/resolv/tls/i686", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/resolv/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/resolv/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/resolv/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/resolv/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/resolv/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/resolv/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/resolv/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/resolv/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/resolv/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/resolv/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/resolv/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/resolv", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/compile/glibc/crypt/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/crypt/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/crypt/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/tls/i686", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/crypt/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/crypt/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/crypt/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/crypt/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/crypt/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/crypt/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/crypt/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/crypt/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/crypt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/linuxthreads/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -
1 ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No 
such file or directory)
open("/compile/glibc/linuxthreads/tls/i686/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/tls/i686", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/tls/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/tls/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/linuxthreads/tls", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/linuxthreads/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/i686/sse2", 0xbfffed28) = -1 ENOENT (No 
such file or directory)
open("/compile/glibc/linuxthreads/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/linuxthreads/i686", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/linuxthreads/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`B\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=417310, ...}) = 0
mmap2(NULL, 337792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x40001000
mmap2(0x40010000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0x40010000
mmap2(0x40012000, 268160, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40012000
close(3)                                = 0
open("/compile/glibc/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20T\1\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8987278, ...}) = 0
mmap2(NULL, 1146244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x40054000
mmap2(0x40161000, 36864, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10c) = 0x40161000
mmap2(0x4016a000, 7556, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4016a000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x4016c000
getrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid()                                = 17501
rt_sigaction(SIGRTMIN, {0x400094a0, [], SA_RESTORER, 0x4007d3f8}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x40009530, [], SA_RESTORER, 0x4007d3f8}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x40009650, [], SA_RESTORER, 0x4007d3f8}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [33], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff2b0, 36, (nil), 0}) = 0
brk(0)                                  = 0x80016000
brk(0x80037000)                         = 0x80037000
pipe([3, 4])                            = 0
clone(child_stack=0x80018018, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 17502
write(4, "\3\307\0\200\5\0\0\0\377N\6@\377N\6@\264+\0@\0\0\0\0\320"..., 148) = 
148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
write(4, "\0\f\1@\0\0\0\0\0\0\0\0\240\204\4\10\35\207\4\10\0\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([]


** ps -ef reads
root     17500   834  0 13:53 pts/0    00:00:00 strace /compile/glibc/elf/ld-
linux.so.2 --library-path /compile/glibc:/compile/glibc
root     17501 17500  0 13:53 pts/0    00:00:00 /compile/glibc/elf/ld-
linux.so.2 --library-path /compile/glibc:/compile/glibc/math:/
root     17502 17501  0 13:53 pts/0    00:00:00 [ld-linux.so.2] <defunct>

thread defunct?

I would say this problem is not showed in 586, although not 100% sure.
Comment 1 Carlos Velasco 2004-09-27 13:43:58 UTC
Compiling without --enable-kernel=2.4.27 makes it works.
Comment 2 Carlos Velasco 2004-09-27 14:26:51 UTC
with --enable-kernel=2.4.0, it hangs up too
Comment 3 Carlos Velasco 2004-09-27 14:38:22 UTC
** using strace -f I see segmentation fault
> GCONV_PATH=/compile/glibc/iconvdata LC_ALL=C   strace -f --
 /compile/glibc/elf/ld-linux.so.2 --library-
path /compile/glibc:/compile/glibc/math:/compile/glibc/elf:/compile/glibc/dlfcn:
/compile/glibc/nss:/compile/glibc/nis:/compile/glibc/rt:/compile/glibc/resolv:/c
ompile/glibc/crypt:/compile/glibc/linuxthreads /compile/glibc/linuxthreads/ex1
execve("/compile/glibc/elf/ld-linux.so.2", ["/compile/glibc/elf/ld-
linux.so.2", "--library-
path", "/compile/glibc:/compile/glibc/math:/compile/glibc/elf:/compile/glibc/dlf
cn:/compile/glibc/nss:/compile/glibc/nis:/compile/glibc/rt:/compile/glibc/resolv
:/compile/glibc/crypt:/compile/glibc/linuxthreads", "/compile/glibc/linuxthreads
/ex1"], [/* 46 vars */]) = 0
uname({sys="Linux", node="hyperion", ...}) = 0
brk(0)                                  = 0x800158d8
brk(0x80016000)                         = 0x80016000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40000000
open("/compile/glibc/linuxthreads/ex1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\340\203"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14109, ...}) = 0
mmap2(0x8048000, 4096, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x8048000
mmap2(0x8049000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x8049000
close(3)                                = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/compile/glibc/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/tls", 0xbfffed28) = -1 ENOENT (No such file or directory)
open("/compile/glibc/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/compile/glibc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/math/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/math/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/math/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/math/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/math/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/math/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/math/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/math/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/math/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/math/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/math/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/math", {st_mode=S_IFDIR|0755, st_size=61440, ...}) = 0
open("/compile/glibc/elf/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/elf/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/elf/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/elf/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/elf/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/elf/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/elf/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/elf/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/elf/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/elf/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/elf", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/compile/glibc/dlfcn/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/dlfcn/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/dlfcn/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/tls/i686", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/dlfcn/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/dlfcn/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/dlfcn/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/dlfcn/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/dlfcn/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/dlfcn/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/dlfcn/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/dlfcn/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/dlfcn/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/dlfcn", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/nss/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/nss/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/nss/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nss/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nss/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nss/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nss/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nss/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nss/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nss/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/nss", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/nis/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/nis/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/nis/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nis/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nis/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nis/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/nis/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nis/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/nis/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/nis/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/nis", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/compile/glibc/rt/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/rt/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/rt/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/rt/tls/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/rt/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/rt/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/rt/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/rt/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/rt/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/rt/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat64("/compile/glibc/rt", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/compile/glibc/resolv/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/resolv/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/resolv/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/resolv/tls/i686", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/resolv/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/resolv/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/resolv/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/resolv/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/resolv/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/resolv/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/resolv/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/resolv/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/resolv/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/resolv/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/resolv/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/resolv", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/compile/glibc/crypt/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/crypt/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/crypt/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/tls/i686", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/crypt/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/tls/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/crypt/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/crypt/tls", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/crypt/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/crypt/i686/sse2", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/crypt/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/i686", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/crypt/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/compile/glibc/crypt/sse2", 0xbfffed28) = -1 ENOENT (No such file or 
directory)
open("/compile/glibc/crypt/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/compile/glibc/crypt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/compile/glibc/linuxthreads/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -
1 ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/tls/i686/sse2", 0xbfffed28) = -1 ENOENT (No 
such file or directory)
open("/compile/glibc/linuxthreads/tls/i686/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/tls/i686", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/tls/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/tls/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/linuxthreads/tls", 0xbfffed28) = -1 ENOENT (No such file 
or directory)
open("/compile/glibc/linuxthreads/i686/sse2/libpthread.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/compile/glibc/linuxthreads/i686/sse2", 0xbfffed28) = -1 ENOENT (No 
such file or directory)
open("/compile/glibc/linuxthreads/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/linuxthreads/i686", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/compile/glibc/linuxthreads/sse2", 0xbfffed28) = -1 ENOENT (No such 
file or directory)
open("/compile/glibc/linuxthreads/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pB\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=418640, ...}) = 0
mmap2(NULL, 338244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x40001000
mmap2(0x40010000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0x40010000
mmap2(0x40012000, 268612, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40012000
close(3)                                = 0
open("/compile/glibc/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 T\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8999441, ...}) = 0
mmap2(NULL, 1150436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x40054000
mmap2(0x40162000, 36864, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10d) = 0x40162000
mmap2(0x4016b000, 7652, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4016b000
close(3)                                = 0
getrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid()                                = 29385
rt_sigaction(SIGRTMIN, {0x400094b0, [], SA_RESTORER, 0x4007d408}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x40009540, [], SA_RESTORER, 0x4007d408}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x40009660, [], SA_RESTORER, 0x4007d408}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [33], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff2b0, 36, (nil), 0}) = 0
brk(0)                                  = 0x80016000
brk(0x80037000)                         = 0x80037000
pipe([3, 4])                            = 0
clone(Process 29386 attached (waiting for parent)
Process 29386 resumed (parent 29385 ready)
child_stack=0x80018018, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 
29386
[pid 29386] --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
[pid 29386] rt_sigprocmask(SIG_SETMASK, ~[TRAP 33], NULL, 8) = 0
[pid 29386] read(3,  <unfinished ...>
[pid 29385] write(4, "\3\307\0\200\5\0\0\0\377N\6@\377N\6@\264+\0@\0\0\0\0
\320"..., 148 <unfinished ...>
[pid 29386] <... read resumed> "\3\307\0\200\5\0\0\0\377N\6@\377N\6@\264+\0@\0\0
\0\0\320"..., 148) = 148
[pid 29385] <... write resumed> )       = 148
[pid 29386] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 29386 detached
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
write(4, "\300\r\1@\0\0\0\0\0\0\0\0\240\204\4\10\35\207\4\10\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([]

** gdb --core=core.29389 ex1
warning: core file may not match specified executable file.
Core was generated by `/compile/glibc/elf/ld-linux.so.2 --library-
path /compile/glibc:/compile/glibc/m'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /compile/glibc/linuxthreads/libpthread.so.0...done.
Loaded symbols for /compile/glibc/linuxthreads/libpthread.so.0
Reading symbols from /compile/glibc/libc.so.6...done.
Loaded symbols for /compile/glibc/libc.so.6
Reading symbols from /compile/glibc/elf/ld-linux.so.2...done.
Loaded symbols for /compile/glibc/elf/ld-linux.so.2
#0  __libc_enable_asynccancel () at libc-cancellation.c:45
45        int oldtype = LIBC_THREAD_GETMEM(self, p_canceltype);
(gdb) bt
#0  __libc_enable_asynccancel () at libc-cancellation.c:45
#1  0x40104709 in *__GI___poll (fds=0x80017edc, nfds=1, timeout=2000) 
at ../sysdeps/unix/sysv/linux/poll.c:84
#2  0x40007740 in __pthread_manager (arg=0x0) at manager.c:152
#3  0x4010d1ba in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:102
Comment 4 Carlos Velasco 2004-09-27 21:07:19 UTC
It fails when --enable-kernel is greater than 2.3.99.

So, this must be the guilty:
/* We can use the LDTs for threading with Linux 2.3.99 and newer.  */
#if __LINUX_KERNEL_VERSION >= 131939
# define __ASSUME_LDT_WORKS             1
#endif
Comment 5 Carlos Velasco 2004-09-27 23:18:05 UTC
Problem is related to FLOATING_STACKS.
If I disable it in useldt.h, it works.
Comment 6 Carlos Velasco 2004-10-02 14:05:14 UTC
CVS of 25 Sept works:
cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc co -D "25 Sep" libc

CVS of 26 Sept DOES NOT works:
cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc co -D "26 Sep" libc
Comment 7 Carlos Velasco 2004-10-02 16:17:44 UTC
patches for bug 406 are responsible for this bug.

http://sources.redhat.com/bugzilla/show_bug.cgi?id=406
Comment 8 Carlos Velasco 2004-10-02 17:24:44 UTC
Created attachment 218 [details]
patch for i686 to include useldt.h only if not yet included

This patch solves the problem.
It defines _USELDT_H in header and prevent i686 to load it if yet loaded.
Comment 9 Andreas Jaeger 2004-12-18 15:40:25 UTC
Roland, this was introduced with your patch.
Comment 10 Ulrich Drepper 2005-09-16 14:51:54 UTC
LinuxThreads support is gone.  Every remaining problem is a feature.