This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/10184] setuid functions can stall pthread exit code
- From: "soda at sra dot co dot jp" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Apr 2010 09:21:17 -0000
- Subject: [Bug nptl/10184] setuid functions can stall pthread exit code
- References: <20090522062710.10184.samandbernie@guarana.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From soda at sra dot co dot jp 2010-04-20 09:21 -------
It seems this bug still exists.
I think that the following source RPM includes the fix, is my guess right?
ftp://ftp.redhat.com/redhat/linux/enterprise/5Server/en/os/SRPMS/glibc-2.5-49.src.rpm
I built and installed the glibc-2.5-49 RPM on CentOS 5.4,
and run the test program in the description field of this bug report
under gdb, then the test program stucked nearly immediately as follows:
(gdb) run
Starting program: /tmp/setxid_test
malloc: using debugging hooks
[Thread debugging using libthread_db enabled]
malloc: using debugging hooks
[New Thread 0x2acde66e98a0 (LWP 18528)]
[New Thread 0x41177940 (LWP 18529)]
uc[New Thread 0x41b78940 (LWP 18530)]
juc[Thread 0x41b78940 (LWP 18530) exited]
[New Thread 0x41b78940 (LWP 18531)]
jc[Thread 0x41b78940 (LWP 18531) exited]
[New Thread 0x41b78940 (LWP 18532)]
jc[Thread 0x41b78940 (LWP 18532) exited]
[New Thread 0x41b78940 (LWP 18533)]
ju[Thread 0x41b78940 (LWP 18533) exited]
c[New Thread 0x41b78940 (LWP 18534)]
ju[Thread 0x41b78940 (LWP 18534) exited]
c[New Thread 0x41b78940 (LWP 18535)]
j[Thread 0x41b78940 (LWP 18535) exited]
c[New Thread 0x41b78940 (LWP 18536)]
juc[Thread 0x41b78940 (LWP 18536) exited]
[New Thread 0x41b78940 (LWP 18537)]
j[Thread 0x41b78940 (LWP 18537) exited]
c[New Thread 0x41b78940 (LWP 18538)]
juc[Thread 0x41b78940 (LWP 18538) exited]
[New Thread 0x41b78940 (LWP 18539)]
jc[Thread 0x41b78940 (LWP 18539) exited]
[New Thread 0x41b78940 (LWP 18540)]
j[Thread 0x41b78940 (LWP 18540) exited]
c[New Thread 0x41b78940 (LWP 18541)]
ju[Thread 0x41b78940 (LWP 18541) exited]
c[New Thread 0x41b78940 (LWP 18542)]
ju[Thread 0x41b78940 (LWP 18542) exited]
(gdb) thr app all bt
Thread 2 (Thread 0x41177940 (LWP 18529)):
#0 0x000000319720d48e in __lll_lock_wait_private ()
from /lib64/libpthread.so.0
#1 0x000000319720775d in _L_lock_2600 () from /lib64/libpthread.so.0
#2 0x00000031972064bb in __deallocate_stack (pd=<value optimized out>)
at allocatestack.c:733
#3 0x0000003197207afa in pthread_join (threadid=<value optimized out>,
thread_return=<value optimized out>) at pthread_join.c:110
#4 0x00000000004007a2 in spawner (arg=0x0) at setxid_test.c:18
#5 0x000000319720673d in start_thread (arg=<value optimized out>)
at pthread_create.c:301
#6 0x0000003196ad3d1d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x2acde66e98a0 (LWP 18528)):
#0 __nptl_setxid (cmdp=<value optimized out>) at allocatestack.c:1096
#1 0x0000003196a9afed in __setuid (uid=<value optimized out>)
at ../sysdeps/unix/sysv/linux/setuid.c:26
#2 0x00000000004007e1 in main () at setxid_test.c:28
It seems running this test program without gdb works fine, but I'm not
running the test program long enough.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
http://sourceware.org/bugzilla/show_bug.cgi?id=10184
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.