The Stack Is Not Enough...
There goes another night... I maintain an old Apache mod. This thing has grown over the years and it keeps growing. After adding some, it would seem so, benign code (just some simple tests, a buffer, some prints...) the thing started crashing in the wierdest fassion.
I was lucky enough to bisect fast enough on the changeset that started the crashing. The funny part was, it crashed in some ODBC code, however, not the first time, not the sencond time, but the third time. And before the change set, you would see an exception, and then normal execution would conitune. After the change, it would crash and not continue...
In the end it boiled down to StackOverflowException, simply because so many stack buffers were used and on top of that the Oracle ODBC driver...
Luckily I had already taken care of upgrading the system from Apache 1.3 to 2.4 so I could just set ThreadStackSize to increase it.
https://stackoverflow.com/questions/5058845/how-do-i-increase-the-stack-size-for-apache-running-under-windows-7








