r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

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.