nus-comparch / looppoint

Sampled simulation of multi-threaded applications using LoopPoint methodology
https://looppoint.github.io
12 stars 7 forks source link

sde error:Operation not permitted #6

Closed guodashun closed 11 months ago

guodashun commented 11 months ago

I've built the docker container successfully and then I ran the 'run_looppoint.py' as the following command: ./run-looppoint.py -n 8 -i test -p demo-matrix-1 --force --no-validate But it failed and gave me the following error information

[LOOPPOINT] Generating fat pinball.
[PREPROCESS] matrix-omp
[PREPROCESS] apps/demo/matrix-omp/matrix-omp
[PREPROCESS] /home/username/code/looppoint-main/apps/demo/matrix-omp/matrix-omp
[PREPROCESS] symlinking matrix-omp /tmp/tmprNBpqK/base.exe
[PREPROCESS] apps/demo/matrix-omp/test
[PREPROCESS] /home/username/code/looppoint-main/apps/demo/matrix-omp/test
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.1.cfg /tmp/tmprNBpqK/matrix-omp.1.cfg
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.2.cfg /tmp/tmprNBpqK/matrix-omp.2.cfg
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.3.cfg /tmp/tmprNBpqK/matrix-omp.3.cfg
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/custom-matrix-omp-1-test-active-8-20230731074220 /tmp/tmprNBpqK/custom-matrix-omp-1-test-active-8-20230731074220
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.1.info.status /tmp/tmprNBpqK/matrix-omp.1.info.status
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.1.info.cfg /tmp/tmprNBpqK/matrix-omp.1.info.cfg
[PREPROCESS] symlinking /home/username/code/looppoint-main/apps/demo/matrix-omp/test/pin-log.txt /tmp/tmprNBpqK/pin-log.txt
[PREPROCESS] Done
***  TRACING: START  ***    July 31, 2023 08:28:32
Script version $Revision:1.128$
Script:                    sde_pinpoints.py
Script args:               --delete --mode mt --sdehome=/home/username/code/looppoint-main/tools/sde-external-9.14.0-2022-10-25-lin --cfg /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.1.cfg --log_options -start_address main -log:fat  -log:mp_atomic 0 -log:mp_mode 0 -log:strace -log:basename /home/username/code/looppoint-main/results/demo-matrix-1-test-passive-8-20230731082832/whole_program.1/matrix.1 --replay_options=-replay:strace -l
Program name:              matrix-omp
Input name:                1
Command:                   ./base.exe 100 8
Tracing mode:              mt
Logger options:            -start_address main -log:fat  -log:mp_atomic 0 -log:mp_mode 0 -log:strace -log:basename /home/username/code/looppoint-main/results/demo-matrix-1-test-passive-8-20230731082832/whole_program.1/matrix.1
Replayer options:          -replay:strace
Maxk:                      20
Warmup length:             1500
Prolog length:             0
Slice size (region):       30000000
Epilog length:             0
Dir separator:             .
WP pinball directory:      whole_program.1
Data/lit/pp directory:     matrix-omp.1
Trace file name format:    matrix-omp.1_t0rX_warmup1500_prolog0_region30000000_epilog0
Instance cfg file:         matrix-omp.1.info.cfg
Instance status file:      matrix-omp.1.info.status
Sdehome:                   /home/username/code/looppoint-main/tools/sde-external-9.14.0-2022-10-25-lin
Script path:               /home/username/code/looppoint-main/tools/sde-external-9.14.0-2022-10-25-lin/pinplay-scripts
Working dir:               /tmp/tmprNBpqK
Processor:                 Not defined, using default processor
Number cores/system:       96

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/username/code/looppoint-main/tools/sde-external-9.14.0-2022-10-25-lin/pinplay-scripts:/home/username/code/looppoint-main/tools/sde-external-9.14.0-2022-10-25-lin/pinplay-scripts/PinPointsHome/Linux/bin

LD_LIBRARY_PATH: /home/username/code/looppoint-main/libs:

+++  Deleting: whole_program.1.relog.*

+++  Deleting: matrix-omp.1*.NATIVE.TIME

+++  Deleting: verify_matrix-omp.1_out.txt

+++  Deleting: matrix-omp.1.info.status

+++  Deleting: PARALLEL.PARAM

+++  Deleting: sniper_results/whole_program.1

+++  Deleting: matrix-omp.1.info.cfg

+++  Deleting: whole_program.1

***  Generating whole program pinballs [log_whole]  ***    July 31, 2023 08:28:32
sde_logger.py "--log_options=-start_address main -log:fat  -log:mp_atomic 0 -log:mp_mode 0 -log:strace -log:basename /home/username/code/looppoint-main/results/demo-matrix-1-test-passive-8-20230731082832/whole_program.1/matrix.1"  --log_file whole_program.1/matrix-omp.1  --global_file global.dat.32218 --cfg /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.1.cfg  "./base.exe 100 8"

sde_log.py --compressed=bzip2  --log_file whole_program.1/matrix-omp.1 --log_options "-log:syminfo -log:pid -start_address main -log:fat  -log:mp_atomic 0 -log:mp_mode 0 -log:strace -log:basename /home/username/code/looppoint-main/results/demo-matrix-1-test-passive-8-20230731082832/whole_program.1/matrix.1"   --global_file global.dat.1801 --cfg /home/username/code/looppoint-main/apps/demo/matrix-omp/test/matrix-omp.1.cfg  -- "./base.exe 100 8"

/home/username/code/looppoint-main/tools/sde-external-9.14.0-2022-10-25-lin/sde -log -xyzzy  -log:mt 1 -log:compressed bzip2 -log:syminfo -log:pid -start_address main -log:fat  -log:mp_atomic 0 -log:mp_mode 0 -log:strace -log:basename /home/username/code/looppoint-main/results/demo-matrix-1-test-passive-8-20230731082832/whole_program.1/matrix.1 -- ./base.exe 100 8
E: Attach to pid 58 failed: Operation not permitted
Command terminated by signal 9
0.00user 0.01system 0:00.01elapsed 94%CPU (0avgtext+0avgdata 8228maxresident)k
0inputs+0outputs (0major+2051minor)pagefaults 0swaps
Command exited with non-zero status 137
0.13user 0.04system 0:00.17elapsed 100%CPU (0avgtext+0avgdata 11256maxresident)k
0inputs+0outputs (0major+9706minor)pagefaults 0swaps

real    0m0.287s
user    0m0.215s
sys     0m0.071s

***  Finished generating whole program pinballs [log_whole]  ***    July 31, 2023 08:28:32

***********************************************************************************************
sde_pinpoints.py ERROR: A problem occurred in phase - Whole program pinball generation [log_whole]

***  TRACING: END  ***    July 31, 2023 08:28:32
[LOOPPOINT] Generating DCFG file.
[LOOPPOINT] Error: Whole-program pinball not found.

It seems like there is something wrong with the sde to attach the specific pid. Can you give me some advice?

guodashun commented 11 months ago

I found the bug is from docker so I run the program without docker, then bug went way