cognate icon indicating copy to clipboard operation
cognate copied to clipboard

`Do Box 0` crashes `cognac`

Open dragoncoder047 opened this issue 10 months ago • 1 comments

$ 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"

dragoncoder047 avatar Jan 28 '25 21:01 dragoncoder047

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

StavromulaBeta avatar Jan 29 '25 16:01 StavromulaBeta