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

[llvm] "./a.out: Permission denied" error for runtime observations in Google Colaboratory #465

Closed
ChrisCummins opened this issue Oct 12, 2021 · 1 comment · Fixed by #510
Assignees
Labels
Bug Something isn't working Help wanted Extra attention is needed LLVM LLVM-specific environment issue

Comments

@ChrisCummins
Copy link
Contributor

🐛 Bug

I'm not sure if this is a security feature of colab (preventing execution of arbitrary binaries) or a problem that we can fix in CompilerGym.

To Reproduce

import compiler_gym
env = compiler_gym.make("llvm-v0")
env.reset()
env.observation.Runtime()

Demo notebook.

Environment

Please fill in this checklist:

  • CompilerGym: v0.2.0
  • How you installed CompilerGym (conda, pip, source): pip
@ChrisCummins ChrisCummins added Bug Something isn't working LLVM LLVM-specific environment issue labels Oct 12, 2021
@ChrisCummins ChrisCummins self-assigned this Oct 12, 2021
@ChrisCummins ChrisCummins added the Help wanted Extra attention is needed label Oct 14, 2021
@ChrisCummins
Copy link
Contributor Author

I was able to reproduce a similar issue in a docker container, and it turned out the problem was that executables in /dev/shm are not executable. It would be worth setting a different transient cache and seeing if the problem still holds in colab.

Cheers,
Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help wanted Extra attention is needed LLVM LLVM-specific environment issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant