s5z / zsim

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

FAIL @ running tests/simple.cfg #210

Closed Sebastian-G closed 6 years ago

Sebastian-G commented 6 years ago

Can anybody help me? While running the simple.cfg an Failure occurs.

My setup:

Running zSim on Docker with ubuntu:14.04. All-Packeges:

PIN-Tool Version: pin-2.14-71313-gcc.4.4.7-linux.tar.gz

[H] Starting zsim, built Tue Jul 10 13:52:51 UTC 2018 (rev master:89:fb4d6e0:clean)
[H] Creating global segment, 1024 MBs
[H] Global segment shmid = 0
[H] Deadlock detection ON
[H] Child 7 done
personality() call failed: Operation not permitted
[H] Panic on build/opt/zsim_harness.cpp:293: Could not change personality to disable address space randomization!
[H] Panic on build/opt/zsim_harness.cpp:118: Child issued a panic, killing simulationpersonality() call failed: Operation not permitted

[H] Panic on build/opt/zsim_harness.cpp:293: Could not change personality to disable address space randomization!
[H] WARN: Hard death at exit (1 children running), killing the whole process tree
[H] WARN: Hard death at exit (1 children running), killing the whole process tree
The command '/bin/sh -c ./build/opt/zsim tests/simple.cfg' returned a non-zero code: 112
Sebastian-G commented 6 years ago

I found the reason for this issue! It is necessary to disable ASLR in the system. This is only working for docker container while running with --privileged flag.

echo 0 | sudo tee /proc/sys/kernel/randomize_va_space