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

startup failure #12

Open
wolvre opened this issue May 20, 2013 · 12 comments
Open

startup failure #12

wolvre opened this issue May 20, 2013 · 12 comments

Comments

@wolvre
Copy link

wolvre commented May 20, 2013

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

@jieyu
Copy link
Owner

jieyu commented May 20, 2013

Hi, can you post the stack trace?

@wolvre
Copy link
Author

wolvre commented May 21, 2013

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

@jieyu
Copy link
Owner

jieyu commented May 21, 2013

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

Did you compile the examples?

@wolvre
Copy link
Author

wolvre commented May 22, 2013

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.

@jieyu
Copy link
Owner

jieyu commented May 22, 2013

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?

@wolvre
Copy link
Author

wolvre commented May 22, 2013

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

@jieyu
Copy link
Owner

jieyu commented May 23, 2013

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

@wolvre
Copy link
Author

wolvre commented May 23, 2013

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
Copy link
Author

wolvre commented May 23, 2013

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.

@owl337
Copy link

owl337 commented Sep 5, 2017

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.

@wolvre
Copy link
Author

wolvre commented Sep 5, 2017

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.

@owl337
Copy link

owl337 commented Sep 5, 2017 via email

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