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

Interpreter: "Operation not permitted" for getrandom in Alpine #12967

Closed
DanielcoderX opened this issue Jan 17, 2023 · 1 comment
Closed

Interpreter: "Operation not permitted" for getrandom in Alpine #12967

DanielcoderX opened this issue Jan 17, 2023 · 1 comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:linux-musl topic:compiler:interpreter

Comments

@DanielcoderX
Copy link

Interactive mode Bug Report

Trying to run Interactive mode and got this :)

even tried running as root user but the problem is constant.

Unhandled exception: getrandom: Operation not permitted (RuntimeError)

  from raise|216|1|/usr/local/share/crystal/src/raise.cr

  from sys_getrandom|109|11|/usr/local/share/crystal/src/crystal/system/unix/getrandom.cr

  from loop|103|5|/usr/local/share/crystal/src/kernel.cr

  from sys_getrandom|102|5|/usr/local/share/crystal/src/crystal/system/unix/getrandom.cr

  from getrandom|86|20|/usr/local/share/crystal/src/crystal/system/unix/getrandom.cr

  from random_bytes|53|7|/usr/local/share/crystal/src/crystal/system/unix/getrandom.cr

  from /usr/local/share/crystal/src/crystal/hasher.cr|83|3|/usr/local/share/crystal/src/crystal/hasher.cr

OS: Alpine
LLVM-version: 14
Crystal-version: 1.8.0-dev

@DanielcoderX DanielcoderX added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Jan 17, 2023
@asterite asterite changed the title Interactive mode bug Interpreter: "Operation not permitted" for getrandom in Alpine Jan 23, 2023
@straight-shoota
Copy link
Member

straight-shoota commented Jan 23, 2023

Yeah, the interpreter is not yet supported with musl libc. I'm not sure if getrandom is the only thing that doesn't work, but likely there's more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:linux-musl topic:compiler:interpreter
Projects
None yet
Development

No branches or pull requests

4 participants