c-stack: test that stack overflow can be caught