Skip to content

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

@dsingh19

Description

@dsingh19

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions