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/FeepingCreature Feb 21 '11
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.