[MacRuby-devel] [MacRuby] #349: Segmentation fault in macirb

MacRuby ruby-noreply at macosforge.org
Fri Sep 25 05:04:38 PDT 2009


#349: Segmentation fault in macirb
------------------------+---------------------------------------------------
 Reporter:  dev@…       |       Owner:  lsansonetti@…        
     Type:  defect      |      Status:  new                  
 Priority:  critical    |   Milestone:  MacRuby 0.5          
Component:  MacRuby     |    Keywords:                       
------------------------+---------------------------------------------------
 hey i just installed the r82747 of llvm and r2635 of macruby (with rake
 clean)

 {{{
  $ macirb
 irb(main):001:0> 42
 Segmentation fault
 }}}

 {{{
 $ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.6.1
 BuildVersion:   10B504
 }}}

 in gdb it looks like a indefinite recursion:

 {{{
 $ gdb macruby
 GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul  3 01:19:56 UTC
 2009)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "x86_64-apple-darwin"...Reading symbols for
 shared libraries ..... done

 (gdb) run /usr/local/bin/macirb
 Starting program: /usr/local/bin/macruby /usr/local/bin/macirb
 Reading symbols for shared libraries .++++......................... done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries . done
 Reading symbols for shared libraries ... done
 Reading symbols for shared libraries . done
 irb(main):001:0> 42

 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5f3ffe88
 0x00000001001719e4 in rb_vm_dispatch (cache=0x10480acf0, self=8592454112,
 sel=0x7fff80bcfcf6, block=0x0, opt=3 '\003', argc=3) at vm.cpp:3171
 3171                   unsigned char opt, int argc, ...)
 (gdb) bt
 #0  0x00000001001719e4 in rb_vm_dispatch (cache=0x10480acf0,
 self=8592454112, sel=0x7fff80bcfcf6, block=0x0, opt=3 '\003', argc=3) at
 vm.cpp:3171
 #1  0x000000010139b0b8 in MREP_754758840 ()
 #2  0x000000010139b0b8 in MREP_754758840 ()
 #3  0x000000010139b0b8 in MREP_754758840 ()
 #4  0x000000010139b0b8 in MREP_754758840 ()
 (deleted)
 #4880 0x000000010139b0b8 in MREP_754758840 ()
 #4881 0x000000010139b0b8 in MREP_754758840 ()
 #4882 0x000000010139b0b8 in MREP_754758840 ()
 #4883 0x000000010139b0b8 in MREP_754758840 ()
 #4884 0x000000010139b0b8 in MREP_754758840 ()
 #4885 0x000000010006dd17 in rb_class_new_instance_imp (klass=8590965440,
 sel=<value temporarily unavailable, due to optimizations>, argc=4,
 argv=0x7fff5fbf9750) at object.c:1892
 #4886 0x0000000100172b82 in rb_vm_dispatch (cache=0x100f69740,
 self=8590965440, sel=0x100f2db90, block=0x0, opt=0 '\0', argc=4) at
 vm.cpp:2704
 #4887 0x000000010139b96c in MREP_754758840 ()
 }}}

 this example does not work too:

 {{{
  $ echo "p 42" | macirb
 p 42
 core:in `__new__:': wrong number of arguments (3 for 4) (ArgumentError)
 }}}

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



More information about the MacRuby-devel mailing list