[Ur] Could we prevent most segmentation faults caused by stack overflows this way?
Karn Kallio
tierpluspluslists at gmail.com
Wed Dec 22 09:39:38 EST 2010
> Marc Weber wrote:
> > Would something like this work reasonable?
> > Its using pthread to get stack size (this was used to tell the ruby
> > garbage collector which memory to scan. After telling about it the
> > ruby gc related segfaults were gone)
>
> I would certainly be more comfortable using an established
> stack-overflow-catching library that has been tested for portability.
> Does anyone know of such a thing?
Just waiting means that GCC might take care of this for you ... the
development version of gcc includes a split stack option -fsplit-stack (
http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html ) and any GCC level
solution should be as portable as GCC itself
More information about the Ur
mailing list