by cataphract · 6y ago · 0 comments
(In the end the crash was due to corrupted input data, so I fixed the data and stopped debugging)
the crash was due to corrupted input data
Bad data shouldn't cause a crash. That's just sloppy.Sadly, academic constraints (time; results required the day before) prevented me from actually filing a bug report.
Of course, it sucks if it takes a few hours before you get your crash, that usually tricks you into thinking the software did something wrong and not you. Best is if it dies immediately upon reading the input, and if it does that with an error or a crash isn't crucial, though of course getting a clear error message is always better.
As a comparison, a collaboration internal tool I need to use will print a helpful usage message, and then segfault if you call it without any arguments...
Then, you end up having to turn this 'style' of code into a product and to maintain it...