Subj : Re: stack information / stack overflow To : comp.programming.threads From : doug Date : Tue Mar 22 2005 08:36 pm A neat way to handle stack overflow is to set up a signal handler to catch the signal (i can't remember offhand if you get a BUS or an ABORT or a SEGV or what), and have it run on an alternate stack. From memory, you alloc some memory, and supply this and the SA_ONSTACK flag when setting the signal handler. Hope that helps. "Michael Schmidt" wrote in message news:dPQ%d.319$f5.11271@newsread.de.ignite.net... > Is there a portable way to retrieve information about a thread's stack > size > and start address at runtime ? > > How can I handle a stack overflow in a thread ? > > Michael > > .