I customized zsim, and I'm having problems running multiprogram applications. With the original zsim, I dont have such a problem.
My program crashes when it synchronizes in the barrier, specifically when doing the futex syscall (in barrier.h):
int futex_res = syscall(SYS_futex, &threadList[tid].futexWord, FUTEX_WAIT, 1 /*a racing thread waking us up will change value to 0, and we won't block*/, nullptr, nullptr, 0);
The error message is attached below. Any idea on why the syscall is crashing?
Hello,
I customized zsim, and I'm having problems running multiprogram applications. With the original zsim, I dont have such a problem.
My program crashes when it synchronizes in the barrier, specifically when doing the futex syscall (in barrier.h):
int futex_res = syscall(SYS_futex, &threadList[tid].futexWord, FUTEX_WAIT, 1 /*a racing thread waking us up will change value to 0, and we won't block*/, nullptr, nullptr, 0);
The error message is attached below. Any idea on why the syscall is crashing?
Thank you very much
[S 1] [0] /home/user1/zsim/build/opt/zsim.cpp:1834 / InternalExceptionHandler(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::PHYSICAL_CONTEXT, void) [S 1] [0] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::CONTEXT) [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x30737b32] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x3073c410] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0x9a) [0x307d247a] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x307feb2c] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(+0xee27) [0x7ffff71ebe27] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Backtrace+0x68) [0x7ffff71ed9d8] [S 1] [0] /lib/x86_64-linux-gnu/libc.so.6(backtrace+0x4f) [0x7ffff6f27b0f] [S 1] [0] /home/user1/zsim/build/opt/zsim.cpp:1834 / InternalExceptionHandler(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::PHYSICAL_CONTEXT, void) [S 1] [0] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::CONTEXT) [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x30737b32] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x3073c410] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0x9a) [0x307d247a] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x307feb2c] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(+0xee27) [0x7ffff71ebe27] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Backtrace+0x68) [0x7ffff71ed9d8] [S 1] [0] /lib/x86_64-linux-gnu/libc.so.6(backtrace+0x4f) [0x7ffff6f27b0f] [S 1] [0] /home/user1/zsim/build/opt/zsim.cpp:1834 / InternalExceptionHandler(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::PHYSICAL_CONTEXT, void) [S 1] [0] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::CONTEXT) [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x30737b32] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x3073c410] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0x9a) [0x307d247a] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x307feb2c] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(+0xee27) [0x7ffff71ebe27] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Backtrace+0x68) [0x7ffff71ed9d8] [S 1] [0] /lib/x86_64-linux-gnu/libc.so.6(backtrace+0x4f) [0x7ffff6f27b0f] [S 1] [0] /home/user1/zsim/build/opt/zsim.cpp:1834 / InternalExceptionHandler(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::PHYSICAL_CONTEXT, void) [S 1] [0] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::CONTEXT) [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x30737b32] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x3073c410] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0x9a) [0x307d247a] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x307feb2c] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(+0xee27) [0x7ffff71ebe27] [S 1] [0] /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Backtrace+0x68) [0x7ffff71ed9d8] [S 1] [0] /lib/x86_64-linux-gnu/libc.so.6(backtrace+0x4f) [0x7ffff6f27b0f] [S 1] [0] /home/user1/zsim/build/opt/zsim.cpp:1834 / InternalExceptionHandler(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::PHYSICAL_CONTEXT, void) [S 1] [0] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO, LEVEL_VM::CONTEXT*) [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x30737b32] [S 1] [0] /home/user1/pinplay-1.2/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x3073c410] C:Tool (or Pin) caused signal 11 at PC 0x7ffff71ebe27 Pin app terminated abnormally due to signal 11. [H] Child 753 done [H] Panic on build/opt/zsim_harness.cpp:123: Child 753 (idx 1) exit was anomalous, killing simulation [H] WARN: Hard death at exit (1 children running), killing the whole process tree