#527: Segmentation fault when stack overflows
-------------------------------------+--------------------------------------
Reporter: haruki.zae...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords: stack overflow segfault
-------------------------------------+--------------------------------------
Comment(by martinlagarde...@…):
Updating status of the bug following #822:
It could be possible for MacRuby to handle stack overflow, by handling the
stack overflow signal in an alternate stack (allocated with
`sigaltstack`).
The reasons it is not currently in MacRuby are
- Handling the stack overflow signal (I believe it is SIGSEV) messes up
the stack and is not good for crash trace analyzers (See r4077)
- If we raise in the alt stack, I'm not sure there's a way to catch it in
the main thread, meaning a SystemStackError would stop the program, and
would not be catchable
--
Ticket URL: <http://www.macruby.org/trac/ticket/527#comment:7>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel