FWIW You can overflow the stack with automatic variables. I've run into this many times with large arrays in main() and elsewhere. The symptom is SEGV on entry to the function. It's not uncommon to encounter code that works fine on several systems, but SEGVs on another.