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

Empty method definition with exception handling crashes the compiler #5394

Closed
sdogruyol opened this issue Dec 17, 2017 · 0 comments
Closed
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler

Comments

@sdogruyol
Copy link
Member

The following code crashes the compiler

def foo(x)
ensure
end

foo 5

error

Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

Module validation failed: inlinable function call in a function with debug info must have a !dbg location
  call void @__crystal_raise(%"struct.LibUnwind::Exception"* %3)

0x56529450d46e: ??? at ??
0x565294cb4340: ??? at ??
0x565294c29dae: ??? at ??
0x565294f826b5: ??? at ??
0x5652945639e0: ??? at ??
0x565294533b9c: main at ??
0x7ff040c064ca: __libc_start_main at ??
0x56529450cc7a: _start at ??
0x0: ??? at ??

Thank you ❤️

@RX14 RX14 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler labels Dec 17, 2017
makenowjust added a commit to makenowjust/crystal that referenced this issue Dec 17, 2017
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
Projects
None yet
Development

No branches or pull requests

2 participants