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

Cannot run simple.cfg with an error from pin #228

Open
jhxu001 opened this issue Apr 13, 2019 · 5 comments
Open

Cannot run simple.cfg with an error from pin #228

jhxu001 opened this issue Apr 13, 2019 · 5 comments

Comments

@jhxu001
Copy link

jhxu001 commented Apr 13, 2019

Hi, I got an error while running tests/simple.cfg.
The info about this error is listed as follow:

root@jiahong-Lenovo-G50-80:/media/jiahong/ssd/Zsim/zsim# ./build/opt/zsim tests/simple.cfg
[H] Starting zsim, built 2019年 04月 13日 星期六 16:09:39 CST (rev master:89:fb4d6e0:6fc 59+ 6- 566fc008)
[H] Creating global segment, 1024 MBs
[H] Global segment shmid = 8650771
[H] Deadlock detection ON

A: Source/pin/injector_nonmac/auxvector.cpp: CopyAux: 291: unexpected AUX VEC type 26

A: Source/pin/injector_nonmac/auxvector.cpp: CopyAux: 291: unexpected AUX VEC type 26

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

STACK TRACE

################################################################################
addr2line -C -f -e "/home/jiahong/Downloads/pin-2.14/intel64/bin/pinbin" 0x5555557147f9 0x5555557155ce 0x5555557158a0 0x555555937b3c 0x55555593d2ff 0x55555593ee2d 0x55555592efe1 0x555555933b2d 0x55555592422e 0x55555592e230 0x7ffff6f7c830 0x55555570917a

STACK TRACE

################################################################################
addr2line -C -f -e "/home/jiahong/Downloads/pin-2.14/intel64/bin/pinbin" 0x5555557147f9 0x5555557155ce 0x5555557158a0 0x555555937b3c 0x55555593d2ff 0x55555593ee2d 0x55555592efe1 0x555555933b2d 0x55555592422e 0x55555592e230 0x7ffff6f7c830 0x55555570917a
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
Detach Service Count: 1
Detach Service Count: 1
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
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
C: Injector exited with signal 6
E: Wait for injector failed: No child processes
C: Injector exited with signal 6
E: Wait for injector failed: No child processes
[H] Child 18542 done
[H] Child 18541 done
[H] All children done, exiting

I have modified the file src/pin_cmd.cpp with:
args.push_back("-injection");
args.push_back("parent");

But I still get this problem.
I found the error code in zim_harness.cpp:
if (execvp(aptrs[0], (char* const*)aptrs) == -1)

My pin version is 2.14 and the kernel is 4.16.2,

Thanks for help!

@gaomy3832
Copy link
Contributor

Basically Pin 2.14 is not meant to be fully compatible with kernel 4, even with the hack we proposed. The simple.cfg test uses ls, which seems to be implemented differently in the new kernel with some advanced vector instructions. Try using your own app to replace it.

@jhxu001
Copy link
Author

jhxu001 commented Apr 14, 2019

Thank you, gao!
I have modified pin_cmd.cpp and add the codes
args.push_back("-ifeellucky");
It solved my problem!

@abhishekk06
Copy link

Hi @jhxu001

Can you please share the changes you did. I am facing the same issue while trying to run the simple.cfg on my end. FYI even I am using pin cfg as 2.14

@jhxu001
Copy link
Author

jhxu001 commented Mar 10, 2021

@abhishekk06
I thought these links below may be helpful for you.
#149 #109

@abhishekk06
Copy link

@jhxu001 I see the commit mentioned in #149 is part of the master but I still hit the same error. :(

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

3 participants