maple icon indicating copy to clipboard operation
maple copied to clipboard

startup failure

Open wolvre opened this issue 12 years ago • 12 comments

Hi there,

When I tried the example shared_counter, maple always aborted with an OSError: No such file or directory. But if I ran the tool within a python debugger, it seems fine. Any hint for this issue?

Best, P

wolvre avatar May 20 '13 11:05 wolvre

Hi, can you post the stack trace?

jieyu avatar May 20 '13 16:05 jieyu

As follows:

Traceback (most recent call last): File "/home/wp/Downloads/maple-master/script/maple/idiom/main.py", line 1207, in main(sys.argv[1:]) File "/home/wp/Downloads/maple-master/script/maple/idiom/main.py", line 1202, in main eval('command_%s(argv[1:])' % command) File "", line 1, in File "/home/wp/Downloads/maple-master/script/maple/idiom/main.py", line 768, in __command_default idiom_testcase.run() File "/home/wp/Downloads/maple-master/script/maple/core/testing.py", line 226, in run self.body() File "/home/wp/Downloads/maple-master/script/maple/idiom/testing.py", line 185, in body self.profile_testcase.run() File "/home/wp/Downloads/maple-master/script/maple/core/testing.py", line 226, in run self.body() File "/home/wp/Downloads/maple-master/script/maple/core/testing.py", line 257, in body test.run() File "/home/wp/Downloads/maple-master/script/maple/core/testing.py", line 84, in run self.body() File "/home/wp/Downloads/maple-master/script/maple/core/testing.py", line 110, in body stderr=self.fio[2]) File "/usr/lib/python2.7/subprocess.py", line 679, in __init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

wolvre avatar May 21 '13 02:05 wolvre

Seems that you were trying to test a program, but the script failed to find the program binary.

Did you compile the examples?

jieyu avatar May 21 '13 15:05 jieyu

Yes, I sure did. As I've mentioned earlier, the script can test the program well within a python debugger (pdb), except that it has to be run in the sudo mode. I was running it on Ubuntu 12.04.2 LTS with Linux 3.2.0-43-generic x86_64 and gcc 4.6.3.

wolvre avatar May 22 '13 03:05 wolvre

I never encountered this before. Can you try to run the script in sudo mode as well?

Also, what's your python version? 2.7?

jieyu avatar May 22 '13 14:05 jieyu

I did run the script in the sudo mode. The python version is 2.7.3.

wolvre avatar May 22 '13 14:05 wolvre

Sorry, I cannot reproduce this problem on my machine. It would be great if you can dig it on your machine.

jieyu avatar May 23 '13 03:05 jieyu

Many thanks for your effort! I just figured out that it is because I was using a path abbreviation "~" for PIN_HOME in the script. I revised the script to load pdb. But in this version, I was using the full path. Apparently, the former does not work.

wolvre avatar May 23 '13 03:05 wolvre

Would it be possible for me to get a copy of the source code of your case studies on splash2 programs (i.e., fft and radix)? This would help understand how to work with maple in details.

wolvre avatar May 23 '13 12:05 wolvre

Hi, wolvre

I get the same problem as yours. But I don't make the problem clear. Could you give more details? My issue trace is as follows.

root@ubuntu:~/Meilin/maple-master/example/shared_counter# ../../maple --- ./main 2 Traceback (most recent call last): File "/home/company/Meilin/maple-master/script/maple/idiom/main.py", line 1207, in main(sys.argv[1:]) File "/home/company/Meilin/maple-master/script/maple/idiom/main.py", line 1202, in main eval('_command%s(argv[1:])' % command) File "", line 1, in File "/home/company/Meilin/maple-master/script/maple/idiom/main.py", line 768, in __command_default idiom_testcase.run() File "/home/company/Meilin/maple-master/script/maple/core/testing.py", line 226, in run self.body() File "/home/company/Meilin/maple-master/script/maple/idiom/testing.py", line 185, in body self.profile_testcase.run() File "/home/company/Meilin/maple-master/script/maple/core/testing.py", line 226, in run self.body() File "/home/company/Meilin/maple-master/script/maple/core/testing.py", line 257, in body test.run() File "/home/company/Meilin/maple-master/script/maple/core/testing.py", line 84, in run self.body() File "/home/company/Meilin/maple-master/script/maple/core/testing.py", line 110, in body stderr=self.fio[2]) File "/usr/lib/python2.7/subprocess.py", line 679, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Thanks.

owl337 avatar Sep 05 '17 08:09 owl337

Sorry that I don't recall much details on this problem. My earlier comment suggests to use full paths for the environment variables, e.g., PIN_HOME. Hope this can solve the problem.

wolvre avatar Sep 05 '17 09:09 wolvre

I did use full paths.

2017-09-05 17:05 GMT+08:00 wolvre [email protected]:

Sorry that I don't recall much details on this problem. My earlier comment suggests to use full paths for the environment variables, e.g., PIN_HOME. Hope this can solve the problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jieyu/maple/issues/12#issuecomment-327116779, or mute the thread https://github.com/notifications/unsubscribe-auth/AcR2FJtpyq9c0gvgLVC6QEt4mksMSFDmks5sfQ7jgaJpZM4Aqqeh .

owl337 avatar Sep 05 '17 09:09 owl337