Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dsingh19 opened this issue Mar 21, 2022 · 7 comments

Comments

@dsingh19
Copy link

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
Copy link

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

@Kirrito-k423
Copy link

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

@bbulgu
Copy link

bbulgu commented Jan 24, 2023

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

@senjougahara77
Copy link

Please try ubuntu 18.04 if possible.

@CodingPlatelets
Copy link

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

@dsingh19
Copy link
Author

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

@Yang-YiFan
Copy link
Contributor

Yang-YiFan commented Mar 13, 2023

This issue is fixed in #245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants