swapcontext() and Segmentation Fault

We have some rules here and one of them is:
(6) Do not post classroom or homework problems.

But once in a while we bend the rule a bit, so try setting ss_size when you define the stack.