You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2008/07/02 00:38:55 UTC

DO NOT REPLY [Bug 45248] testlockperf of apr_thread_rwlock_t stalls forever on i686 Linux / glibc 2 .7

https://issues.apache.org/bugzilla/show_bug.cgi?id=45248





--- Comment #14 from Nix <ni...@esperi.org.uk>  2008-07-01 15:38:55 PST ---
I forced this to happen by changing the initial number of threads to 3 (since
otherwise it stalls at the 2-thread stage).

The backtraces of the two lock-blocked threads are identical:

(gdb) info threads
  3 Thread 0x4024fb90 (LWP 21108)  0x40000424 in __kernel_vsyscall ()
  2 Thread 0x40450b90 (LWP 21109)  0x40000424 in __kernel_vsyscall ()
  1 Thread 0x4004e7e0 (LWP 21096)  0x40000424 in __kernel_vsyscall ()
(gdb) thread 1
[Switching to thread 1 (Thread 0x4004e7e0 (LWP 21096))]#0  0x40000424 in
__kernel_vsyscall ()
(gdb) bt
#0  0x40000424 in __kernel_vsyscall ()
#1  0x4b28b478 in pthread_join () from /lib/libpthread.so.0
#2  0x400218ae in apr_thread_join (retval=0xbfb79488, thd=0x82f4270) at
threadproc/unix/thread.c:217
#3  0x08048c87 in test_thread_rwlock (num_threads=3) at testlockperf.c:212
#4  0x080491df in main (argc=1, argv=Cannot access memory at address 0x4
) at testlockperf.c:276
(gdb) thread 2
[Switching to thread 2 (Thread 0x40450b90 (LWP 21109))]#0  0x40000424 in
__kernel_vsyscall ()
(gdb) bt
#0  0x40000424 in __kernel_vsyscall ()
#1  0x4b290ec2 in __lll_lock_wait () from /lib/libpthread.so.0
#2  0x4b28de60 in pthread_rwlock_wrlock () from /lib/libpthread.so.0
#3  0x400158f0 in apr_thread_rwlock_wrlock (rwlock=0x82f4238) at
locks/unix/thread_rwlock.c:97
#4  0x08048a6f in thread_rwlock_func (thd=0x82f4290, data=0x0) at
testlockperf.c:74
#5  0x40021666 in dummy_worker (opaque=0x82f4290) at
threadproc/unix/thread.c:142
#6  0x4b28a079 in start_thread () from /lib/libpthread.so.0
(gdb) thread 3
[Switching to thread 3 (Thread 0x4024fb90 (LWP 21108))]#0  0x40000424 in
__kernel_vsyscall ()
(gdb) bt
#0  0x40000424 in __kernel_vsyscall ()
#1  0x4b290ec2 in __lll_lock_wait () from /lib/libpthread.so.0
#2  0x4b28de60 in pthread_rwlock_wrlock () from /lib/libpthread.so.0
#3  0x400158f0 in apr_thread_rwlock_wrlock (rwlock=0x82f4238) at
locks/unix/thread_rwlock.c:97
#4  0x08048a6f in thread_rwlock_func (thd=0x82f4270, data=0x0) at
testlockperf.c:74
#5  0x40021666 in dummy_worker (opaque=0x82f4270) at
threadproc/unix/thread.c:142
#6  0x4b28a079 in start_thread () from /lib/libpthread.so.0


(Can anyone else replicate this?)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org