i just added “some incredibly esoteric code” to my app, and the compiler produced a segmentation fault with little/no information… and for whatever reason, i’m having a hard time creating a small, standalone example that fails in the same way…
i’m currently on 0.13.0; should i try the latest 0.14.0 dev version???
are there some additional switches i could throw, which might yield some intermediate information of help to the team???
this hasn’t happened all that often to me – but when it does
you could try to see if it’s something that was fixed in the meantime, or if the bug is still present, in which case you might want to open an issue
a debug build of the compiler would probably tell your more but, regardless, if you’re having trouble creating a reduction, then the next best thing is pushing the code somewhere so that it can be reproduced by cloning and building.
To minimize the zig code that crashes the compiler, you can use zig reduce.
zig reduce tries to minimize your zig code by applying transformations and after each transformation calls a checker script to see if zig crashes (interesting case) or not (boring case).