On 2 February 2015 at 14:55, Paolo Bonzini <pbonz...@redhat.com> wrote: > and if it still fails, catch a backtrace of all threads?
(gdb) thread apply all backtrace Thread 9 (process 42110): #0 0x00007fff94a94746 in __psynch_mutexwait () #1 0x00007fff968df779 in _pthread_mutex_lock () #2 0x000000010880a589 in qemu_mutex_lock (mutex=0x10880c990) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:77 #3 0x000000010880b247 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:128 #4 0x000000010880a105 in rcu_fake_update_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:324 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 8 (process 42110): #0 0x00007fff94a94746 in __psynch_mutexwait () #1 0x00007fff968df779 in _pthread_mutex_lock () #2 0x000000010880a589 in qemu_mutex_lock (mutex=0x10880c990) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:77 #3 0x000000010880b247 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:128 #4 0x000000010880a105 in rcu_fake_update_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:324 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 7 (process 42110): #0 0x00007fff94a94746 in __psynch_mutexwait () #1 0x00007fff968df779 in _pthread_mutex_lock () #2 0x000000010880a589 in qemu_mutex_lock (mutex=0x10880c990) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:77 #3 0x000000010880b247 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:128 #4 0x000000010880a105 in rcu_fake_update_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:324 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 6 (process 42110): #0 0x00007fff94a94746 in __psynch_mutexwait () #1 0x00007fff968df779 in _pthread_mutex_lock () #2 0x000000010880a589 in qemu_mutex_lock (mutex=0x10880c990) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:77 #3 0x000000010880b247 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:128 #4 0x000000010880a105 in rcu_fake_update_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:324 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 5 (process 42110): #0 0x00007fff94a94746 in __psynch_mutexwait () #1 0x00007fff968df779 in _pthread_mutex_lock () #2 0x000000010880a589 in qemu_mutex_lock (mutex=0x10880c990) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:77 #3 0x000000010880b247 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:128 #4 0x000000010880a105 in rcu_fake_update_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:324 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 4 (process 42110): #0 0x00007fff94a94716 in __psynch_cvwait () #1 0x00007fff968dec3b in _pthread_cond_wait () #2 0x000000010880ac68 in futex_wait [inlined] () at /Users/pm215/src/qemu/util/qemu-thread-posix.c:321 #3 0x000000010880ac68 in qemu_event_wait (ev=0x10880c2b8) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:401 #4 0x000000010880b288 in wait_for_readers [inlined] () at /Users/pm215/src/qemu/util/rcu.c:119 #5 0x000000010880b288 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:148 #6 0x000000010880a06c in rcu_update_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:307 #7 0x00007fff968dc899 in _pthread_body () #8 0x00007fff968dc72a in _pthread_start () #9 0x00007fff968e0fc9 in thread_start () Thread 3 (process 42110): #0 0x00007fff94a94746 in __psynch_mutexwait () #1 0x00007fff968df779 in _pthread_mutex_lock () #2 0x000000010880a589 in qemu_mutex_lock (mutex=0x10880c990) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:77 #3 0x000000010880b247 in synchronize_rcu () at /Users/pm215/src/qemu/util/rcu.c:128 #4 0x0000000108809e70 in rcu_read_stress_test (arg=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:271 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 2 (process 42110): #0 0x00007fff94a94716 in __psynch_cvwait () #1 0x00007fff968dec3b in _pthread_cond_wait () #2 0x000000010880ac68 in futex_wait [inlined] () at /Users/pm215/src/qemu/util/qemu-thread-posix.c:321 #3 0x000000010880ac68 in qemu_event_wait (ev=0x10880c9e0) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:401 #4 0x000000010880b6b0 in call_rcu_thread (opaque=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/util/rcu.c:231 #5 0x00007fff968dc899 in _pthread_body () #6 0x00007fff968dc72a in _pthread_start () #7 0x00007fff968e0fc9 in thread_start () Thread 1 (process 42110): #0 0x00007fff94a94a3a in __semwait_signal () #1 0x00007fff968e07f3 in pthread_join () #2 0x000000010880af73 in qemu_thread_join (thread=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/util/qemu-thread-posix.c:506 #3 0x000000010880a2c8 in wait_all_threads [inlined] () at /Users/pm215/src/qemu/tests/rcutorture.c:105 #4 0x000000010880a2c8 in gtest_stress (nreaders=<value temporarily unavailable, due to optimizations>, duration=<value temporarily unavailable, due to optimizations>) at /Users/pm215/src/qemu/tests/rcutorture.c:379 #5 0x000000010886291d in g_test_run_suite_internal () #6 0x0000000108862ae1 in g_test_run_suite_internal () #7 0x0000000108862ae1 in g_test_run_suite_internal () #8 0x0000000108862198 in g_test_run_suite () #9 0x000000010880961e in main (argc=1, argv=0x7fff573f78c8) at /Users/pm215/src/qemu/tests/rcutorture.c:430 -- PMM