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

Do Box 0 crashes cognac #39

Open
dragoncoder047 opened this issue Jan 28, 2025 · 1 comment
Open

Do Box 0 crashes cognac #39

dragoncoder047 opened this issue Jan 28, 2025 · 1 comment

Comments

@dragoncoder047
Copy link
Contributor

$ echo "Do Box 0;" > crash.cog
$ cognac crash.cog
           ______                        ______
          / ____/___  ____ _____  ____ _/ ____/
         / /   / __ \/ __ `/ __ \/ __ `/ /
        / /___/ /_/ / /_/ / / / / /_/ / /___
        \____/\____/\__, /_/ /_/\__,_/\____/
                   /____/
                          Cognate Compiler

[1]    98760 segmentation fault  cognac crash.cog

There is no traceback, only a segmentation fault. I kind of expected this to crash the final executable, but instead it crashed the compiler ¯\_(ツ)_/¯

It also crashes my interpreter pretty badly, so don't feel bad ;)

$ ./cogni -c "Do Box 0;"
Double fault in exit handler
[1]    98651 abort      ./cogni -c "Do Box 0"
@StavromulaBeta
Copy link
Collaborator

Oh that's very strange - I'll try and take a look this evening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants