s5z / zsim

A fast and scalable x86-64 multicore simulator
GNU General Public License v2.0
337 stars 186 forks source link

Using zsim with pin 2.14 on ubuntu 20.04 (kernel version 5.4.0-104-generic) #261

Open dsingh19 opened 2 years ago

dsingh19 commented 2 years ago

I run into following error while running tests/simple.cfg. Looks like pin is trying to issue a system call to arch_prctl() that fails. Any leads will be much appreciated.

[H] Starting zsim, built Mon 21 Mar 2022 12:45:50 AM EDT (rev ) [H] Creating global segment, 1024 MBs [H] Global segment shmid = 65540 [H] Deadlock detection ON [S 0] Started instance [S 0] Started RR scheduler, quantum=50 phases [S 0] Initialized system [S 0] HDF5 backend: Opening /zsim/zsim.h5 [S 0] HDF5 backend: Created table, 22624 bytes/record, 47 records/write [S 0] HDF5 backend: Opening /zsim/zsim-ev.h5 [S 0] HDF5 backend: Created table, 22624 bytes/record, 6 records/write [S 0] HDF5 backend: Opening /zsim/zsim-cmp.h5 [S 0] HDF5 backend: Created table, 2464 bytes/record, 1 records/write [S 0] Initialization complete [H] Attached to global heap [S 0] Started process, PID 117180 [S 0] procMask: 0x0 [S 0] [0] Adjusting clocks, domain 0, de-ffwd 0 [S 0] vDSO info initialized [S 0] Thread 0 starting [S 0] FF control Thread TID 117185 [S 0] Started contention simulation thread 0 [S 0] Started scheduler watchdog thread A: Source/pin/vm_ia32_l/emu_ia32_linux.cpp: ExecuteSysArchPrct1: 664: Unknown sub-function for SYS_arch_prctl

################################################################################

STACK TRACE

################################################################################ addr2line -C -f -e "/pin/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin" 0x3041c07f9 0x3041c15ce 0x3041c18a0 0x3043c2122 0x3043c48e6 0x30432df2b 0x304317874 0x3042f95db 0x304380868 LEVEL_BASE::MESSAGE_TYPE::DumpTrace() ??:? LEVEL_BASE::MESSAGE_TYPE::MessageInternal(std::string const&, bool, PIN_ERRTYPE, va_list_tag, int) ??:? LEVEL_BASE::MESSAGE_TYPE::MessageNoReturn(std::string const&, bool, PIN_ERRTYPE, int, ...) ??:? LEVEL_VM::EMULATOR::ExecuteSysArchPrct1() ??:? LEVEL_VM::EMULATOR::ExecuteSysCall(LEVEL_VM::INS_EMU_INFO const) ??:? LEVEL_VM::EMULATOR_IA32::EmulateOneInstruction(LEVEL_VM::INS_EMU_INFO const) ??:? LEVEL_VM::VMSVC_Emu(LEVEL_VM::SCT_ATTRIBUTES const, LEVEL_VM::PCTXT, LEVEL_VM::VMSVC_EMU_ARGS const) ??:? LEVEL_VM::VM::Dispatch(LEVEL_VM::VMSVC_ARGS const, LEVEL_VM::PCTXT) ??:? VmLeave ??:? Detach Service Count: 102 Pin 2.14 Copyright (c) 2003-2015, Intel Corporation. All rights reserved. @CHARM-VERSION: $Rev: 71293 $ @CHARM-BUILDER: BUILDER @CHARM-COMPILER: gcc 4.4.7 @CHARM-TARGET: ia32e @CHARM-CFLAGS: OPTIMIZE=1 __NO_INLINE=__NO_INLINE__ [H] Child 117180 done [H] Panic on build/opt/zsim_harness.cpp:123: Child 117180 (idx 0) exit was anomalous, killing simulation

maohuangrun commented 2 years ago

I am dealing with the same issue currently. Have you fixed it yet?

Kirrito-k423 commented 2 years ago

I am also troubled by this problem. Have you fixed it yet?

bbulgu commented 1 year ago

We have the same issue on both ubuntu 20.04 and 22.04! Any updates?

senjougahara77 commented 1 year ago

Please try ubuntu 18.04 if possible.

CodingPlatelets commented 1 year ago

I am dealing with the same issue on ubuntu 22.04 lts! Any updates?

dsingh19 commented 1 year ago

Update: I could not fix the issue so switched the linux version to 16.04 where I had zsim working earlier.

Yang-YiFan commented 1 year ago

This issue is fixed in #245