[MacRuby-devel] [MacRuby] #404: Segfault with ObjectSpace#each_object

MacRuby ruby-noreply at macosforge.org
Mon Oct 26 08:04:13 PDT 2009


#404: Segfault with ObjectSpace#each_object
---------------------------------------+------------------------------------
 Reporter:  keith.gautreaux@…          |       Owner:  lsansonetti@…        
     Type:  defect                     |      Status:  new                  
 Priority:  blocker                    |   Milestone:  MacRuby 0.5          
Component:  MacRuby                    |    Keywords:  objectspace segfault 
---------------------------------------+------------------------------------
 The following code causes a segfault on my machine (MacBookPro3,1):

 {{{
  #!/usr/local/bin/macruby
 ObjectSpace.each_object { |o| puts o }
 }}}

 Unfortunately, I am running the nightly build of MacRuby from
 http://macruby.icoretech.org and it doesn't seem to allow backtrace
 generation with gdb when compiled with:

 {{{
 macrubyc -o macruby_test -a x86_64 macruby_test.rb
 }}}

 I also get a segfault when the code is run under macirb.

 If someone who can generate backtraces could try that method and reproduce
 the segfault that would be great.  If no one becomes available I can try
 compiling macruby from source and running a backtrace.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/404>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list