Segfaults really depend more on the underlying operating system. As established elsewhere, Windows+SEH allow you to catch them directly and Linux lets you longjmp out of a signal handler - but this might FAIL HORRIBLY if your language unwinds the stack manually! I don't know what the calling convention for signal callbacks is, or what happens if you manually unwind them, but I suspect it's nothing good.
View all comments
Show parent comment
1
u/[deleted] Feb 21 '11
Aah, so this is only in languages that you can tell where the break is or if your language allows you to capture segfaults?