My multithread marssx86 hangs after running for 130000 cycles. here is the stack, can anyone tell me what is going on ?
Barrier::wait (this=0x12d2880) at ptlsim/sim/machine.h:81 81 while (barrier_counter < thread_counter); (gdb) info thr 4 Thread 0x7f3f1257e700 (LWP 29156) Barrier::wait (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/sim/machine.h:84 3 Thread 0x7f3f10fac700 (LWP 29157) 0x00007f40471a4464 in __lll_lock_wait () from /lib/libpthread.so.0 2 Thread 0x7f3f107ab700 (LWP 29158) Barrier::wait (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/sim/machine.h:84 * 1 Thread 0x7f404943d760 (LWP 29144) Barrier::wait (this=0x12d2880) at ptlsim/sim/machine.h:81 (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. Barrier::wait (this=0x12d2880) at ptlsim/sim/machine.h:81 81 while (barrier_counter < thread_counter); (gdb) info thr^CQuit (gdb) thr 3 [Switching to thread 3 (Thread 0x7f3f10fac700 (LWP 29157))]#0 0x00007f40471a4464 in __lll_lock_wait () from /lib/libpthread.so.0 (gdb) info thr 4 Thread 0x7f3f1257e700 (LWP 29156) Barrier::wait (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/sim/machine.h:84 * 3 Thread 0x7f3f10fac700 (LWP 29157) 0x00007f40471a4464 in __lll_lock_wait () from /lib/libpthread.so.0 2 Thread 0x7f3f107ab700 (LWP 29158) Barrier::wait (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/sim/machine.h:84 1 Thread 0x7f404943d760 (LWP 29144) Barrier::wait (this=0x12d2880) at ptlsim/sim/machine.h:81 (gdb) bt #0 0x00007f40471a4464 in __lll_lock_wait () from /lib/libpthread.so.0 #1 0x00007f404719f5d9 in _L_lock_953 () from /lib/libpthread.so.0 #2 0x00007f404719f3fb in pthread_mutex_lock () from /lib/libpthread.so.0 #3 0x00000000006551ba in ptl_flush_bbcache (context_id=2 '\002') at ptlsim/build/core/basecore.cpp:29 #4 0x0000000000550eba in tlb_flush (env=0x1807d50, flush_global=<value optimized out>) at qemu/exec.c:2015 #5 0x000000000077286a in assist_write_cr3 (ctx=...) at ptlsim/build/x86/decode-complex.cpp:708 #6 0x000000000066d607 in ooo::ThreadContext::handle_barrier (this=0x34d6b50) at ptlsim/build/core/ooo-core/ooo.cpp:1256 #7 0x00000000006700f9 in ooo::OooCore::runcycle (this=0x34c1520, none=<value optimized out>) at ptlsim/build/core/ooo-core/ooo.cpp:799 #8 0x0000000000744873 in BaseMachine::run_cores_thread (this=<value optimized out>, start_id=<value optimized out>, end_id=<value optimized out>) at ptlsim/build/sim/machine.cpp:529 #9 0x00000000007449e2 in BaseMachine::start_thread (arg=<value optimized out>) at ptlsim/build/sim/machine.cpp:243 #10 0x00007f404719c9ca in start_thread () from /lib/libpthread.so.0 #11 0x00007f4045e5b21d in clone () from /lib/libc.so.6 #12 0x0000000000000000 in ?? () (gdb) thr 2 [Switching to thread 2 (Thread 0x7f3f107ab700 (LWP 29158))]#0 Barrier::wait (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/sim/machine.h:84 84 while (barrier_counter); (gdb) bt #0 Barrier::wait (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/sim/machine.h:84 #1 BaseMachine::run_cores_thread (this=<value optimized out>, start_id=0, end_id=<value optimized out>) at ptlsim/build/sim/machine.cpp:541 #2 0x00000000007449e2 in BaseMachine::start_thread (arg=<value optimized out>) at ptlsim/build/sim/machine.cpp:243 #3 0x00007f404719c9ca in start_thread () from /lib/libpthread.so.0 #4 0x00007f4045e5b21d in clone () from /lib/libc.so.6 #5 0x0000000000000000 in ?? ()
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
