Hacker News new | ask | show | jobs
by jandrese 1835 days ago
It's hard to imagine that directive lasting beyond the first bug report of "it broke, fix now!".
1 comments

The core dump contains information for fault analysis.

There is another aspect, C and C++ are not memory safe languages so the bug may not be particular logical (i.e. some kind of memory corruption). In these cases I actually prefer something to the like of __builtin_trap instead of abort. Calling any code after an invalid invariant has been detected clobbers registers and may make it impossible to investigate the state at the time of the "crash". Some features of modern optimizing compilers make this even worse, such as abort being marked as "noreturn".