3 ms·
Note that assertions or compiler segfaults or other similar issues can be automagically reduced to the critical input using tools like c-reduce/cvise. Sure, the
by wyldfire 5y ago
Note that assertions or compiler segfaults or other similar issues can be automagically reduced to the critical input using tools like c-reduce/cvise. Sure, they're designed for C and C-like languages, but they're tolerable for rust, assembly languages, etc. Probably anything that has text with line separators would work reasonably well.
Also for LLVM IR, there's llvm-reduce and -opt-bisect-limit.
Not sure if they'd have helped here but they're generally useful tools for tracking down similar issues.
- ahmedalsudani 5y agoWow those look like great tools! Thank you for sharing. There were GCC segfaults that started appearing on my machine a few months ago, and they magically disappeared after a recent update. Those tools are going to be a massive help next time that happens.