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: BUG: data left on stack #13023

Closed
cyangle opened this issue Jan 28, 2023 · 0 comments · Fixed by #13025
Closed

Interpreter: BUG: data left on stack #13023

cyangle opened this issue Jan 28, 2023 · 0 comments · Fixed by #13025
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter

Comments

@cyangle
Copy link
Contributor

cyangle commented Jan 28, 2023

$ crystal i
Crystal interpreter 1.7.2 (2023-01-23).
EXPERIMENTAL SOFTWARE: if you find a bug, please consider opening an issue in
https://github.com/crystal-lang/crystal/issues/new/
icr:1> x : String? = "test"
BUG: data left on stack (8 bytes): Bytes[32, 156, 225, 30, 1, 0, 0, 0, 32, 156, 225, 30, 1, 0, 0, 0] (Exception)
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in 'raise<Exception>:NoReturn'
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in 'raise<String>:NoReturn'
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in 'Crystal::Repl::Interpreter#interpret<Crystal::ASTNode+, Crystal::Type+>:Crystal::Repl::Value'
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in 'Crystal::Repl::Interpreter#interpret<Crystal::ASTNode+, Hash(String, Crystal::MetaVar)>:Crystal::Repl::Value'
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in 'Crystal::Command#repl:(Crystal::Repl::Value | Nil)'
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in '__crystal_main'
  from /usr/local/Cellar/crystal/1.7.2/libexec/crystal in 'main'
  from /usr/lib/dyld in 'start'

crystal version:

$ crystal --version
Crystal 1.7.2 (2023-01-23)

LLVM: 14.0.6
Default target: x86_64-apple-macosx
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. topic:compiler:interpreter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants