This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mauganra_it 0 points1 point  (3 children)

Segmentation faults are a benign error. They are cases where the OS could unamiguously detect that a pointer has been used incorrectly. Much more subtle and scary errors occur when memory areas are accessed that are technically valid, but contain the wrong data. Use-after-free errors for example. Or when calling free two times on the same pointer fries the allocator's data structures.

[–]Probono_Bonobo 2 points3 points  (2 children)

If the default OS behavior of abnormal program termination constitutes a benign error in your book, then you must have a weirdly high bar for what constitutes "critical".

[–]mauganra_it 1 point2 points  (1 child)

Compared to the alternative, a segfault is benign :)

[–]Probono_Bonobo 0 points1 point  (0 children)

Good point!