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

Sole infinite loop crashes #469

Closed
raviqqe opened this issue Mar 12, 2021 · 0 comments
Closed

Sole infinite loop crashes #469

raviqqe opened this issue Mar 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@raviqqe
Copy link
Collaborator

raviqqe commented Mar 12, 2021

Description

The following code doesn't work as it returns unexpectedly.

main : System -> Number
main sys = main sys

The cause seems to be:

C equivalent

  • clang v11 builds the following code successfully.
  • But the executable crashes at runtime.
  • gcc v5.5.0 compiles it to an infinite loop.
int main() { return main(); }

Solution

  • Upgrade to LLVM 12.
@raviqqe raviqqe added the bug Something isn't working label Mar 12, 2021
@raviqqe raviqqe closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant