[MacRuby-devel] [MacRuby] #527: Segmentation fault when stack overflows

MacRuby ruby-noreply at macosforge.org
Wed Aug 4 22:48:39 PDT 2010


#527: Segmentation fault when stack overflows
-------------------------------------+--------------------------------------
 Reporter:  haruki.zaemon@…          |       Owner:  lsansonetti@…          
     Type:  defect                   |      Status:  new                    
 Priority:  major                    |   Milestone:                         
Component:  MacRuby                  |    Keywords:  stack overflow segfault
-------------------------------------+--------------------------------------

Comment(by martinlagardette@…):

 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/>



More information about the MacRuby-devel mailing list