[MacRuby-devel] [MacRuby] #299: macruby core dumps.

MacRuby ruby-noreply at macosforge.org
Tue Jul 21 00:09:26 PDT 2009


#299: macruby core dumps.
--------------------------------------+-------------------------------------
 Reporter:  rohinton.kazak@…          |       Owner:  lsansonetti@…        
     Type:  defect                    |      Status:  new                  
 Priority:  minor                     |   Milestone:                       
Component:  MacRuby                   |    Keywords:                       
--------------------------------------+-------------------------------------
 I ran the following test

 lapfmigaou2:ruby$ cat r32.rb
 a = [ 1, 3, "cat" ]

 h = { dog: "canine", fox: "lupine" }

 # Create an Enumerators
 enum_a = a.to_enum
 enum_h = h.to_enum

 enum_a.next
 enum_h.next
 enum_a.next
 enum_h.next
 lapfmigaou2:ruby$


 and got the following;

 lapfmigaou2:ruby$ /usr/local/bin/macruby r32.rb
 r32.rb:9: [BUG] Segmentation fault
 MacRuby version 0.4 (ruby 1.9.1) [universal-darwin9.5, x86_64]

 -- stack frame ------------
 0000 (0xc08000060): 00000004
 0001 (0xc08000068): 00000000
 0002 (0xc08000070): 00000004
 0003 (0xc08000078): 00000000
 0004 (0xc08000080): 8000a1440
 0005 (0xc08000088): 800037ac0
 0006 (0xc08000090): 8000a1080
 0007 (0xc08000098): 8000a0f00
 0008 (0xc080000a0): 00000004
 0009 (0xc080000a8): 00000000
 0010 (0xc080000b0): 8000a1080
 0011 (0xc080000b8): 00000004
 0012 (0xc080000c0): 8000a0c00
 -- control frame ----------
 c:0004 p:---- s:0013 b:0013 l:0019e0 d:0019e0 CFUNC  :next
 c:0003 p:0050 s:0010 b:0010 l:000009 d:000009 TOP    r32.rb:9
 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited:
 c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP
 ---------------------------
 DBG> : "r32.rb:9:in `next'"
 DBG> : "r32.rb:9:in `<main>'"
 -- backtrace of native function call (Use addr2line) --
 0x10010f301
 0x100029544
 0x100029628
 0x1000c245d
 0x7fff8031e3fa
 0x100247000
 -------------------------------------------------------
 Abort trap

 This was against the latest version of MacRuby.

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



More information about the MacRuby-devel mailing list