[MacRuby] #1256: datamapper 1.1 segfaulting while defining model

MacRuby ruby-noreply at macosforge.org
Thu May 5 09:55:10 PDT 2011


#1256: datamapper 1.1 segfaulting while defining model
------------------------------+---------------------------------------------
 Reporter:  jhamor@…          |       Owner:  lsansonetti@…        
     Type:  defect            |      Status:  new                  
 Priority:  blocker           |   Milestone:                       
Component:  MacRuby           |    Keywords:                       
------------------------------+---------------------------------------------

Comment(by watson1978@…):

 {{{
 $ sudo macgem install dm-core
 }}}

 {{{
 #!ruby
 require 'stringio'
 require 'rubygems'
 require 'dm-core'

 class User
   include DataMapper::Resource

   property :uid, Integer
   property :login, String, :key => true
   property :gecos,  Text
 end
 }}}

 BackTrace:
 {{{
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5f3ffa28
 0x000000010012cfb7 in rb_vm_dispatch () at dispatcher.cpp:582
 582             int argc, const VALUE *argv)
 (gdb) bt 30
 #0  0x000000010012cfb7 in rb_vm_dispatch () at dispatcher.cpp:582
 #1  0x0000000101600d64 in ?? ()
 #2  0x000000010958cf50 in ?? ()
 #3  0x000000010012e628 in __rb_vm_rcall [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:159
 #4  0x000000010012e628 in ruby_dispatch [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:466
 #5  0x000000010012e628 in rb_vm_dispatch () at dispatcher.cpp:872
 #6  0x00000001000d91ed in rb_vm_call0 (vm=0x100f23300, top=0,
 self=8596932480, klass=0x2004ef300, sel=0x100f24df0, block=0x20083a060,
 opt=2 '\002', argc=0, argv=0x0) at vm.h:653
 #7  0x00000001000da312 in rb_vm_call2 (block=0x20083a060, self=8596932480,
 klass=8595108608, sel=0x100f24df0, argc=0, argv=0x0) at vm.h:678
 #8  0x00000001000daaec in rb_objc_block_call (obj=8596932480,
 sel=0x100f24df0, argc=0, argv=0x0, bl_proc=0x10001fc6d <collect_all>,
 data2=8597625056) at vm_eval.c:267
 #9  0x000000010001fe39 in enum_to_a (obj=8596932480, sel=0x7fff813be4d0,
 argc=0, argv=0x0) at enum.c:452
 #10 0x000000010012e027 in ruby_dispatch [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:448
 #11 0x000000010012e027 in rb_vm_dispatch () at dispatcher.cpp:872
 #12 0x0000000101600d64 in ?? ()
 #13 0x000000010958cf50 in ?? ()
 #14 0x000000010012e628 in __rb_vm_rcall [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:159
 #15 0x000000010012e628 in ruby_dispatch [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:466
 #16 0x000000010012e628 in rb_vm_dispatch () at dispatcher.cpp:872
 #17 0x00000001000d91ed in rb_vm_call0 (vm=0x100f23300, top=0,
 self=8596932480, klass=0x2004ef300, sel=0x100f24df0, block=0x200836ae0,
 opt=2 '\002', argc=0, argv=0x0) at vm.h:653
 #18 0x00000001000da312 in rb_vm_call2 (block=0x200836ae0, self=8596932480,
 klass=8595108608, sel=0x100f24df0, argc=0, argv=0x0) at vm.h:678
 #19 0x00000001000daaec in rb_objc_block_call (obj=8596932480,
 sel=0x100f24df0, argc=0, argv=0x0, bl_proc=0x10001fc6d <collect_all>,
 data2=8598555936) at vm_eval.c:267
 #20 0x000000010001fe39 in enum_to_a (obj=8596932480, sel=0x7fff813be4d0,
 argc=0, argv=0x0) at enum.c:452
 #21 0x000000010012e027 in ruby_dispatch [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:448
 #22 0x000000010012e027 in rb_vm_dispatch () at dispatcher.cpp:872
 #23 0x0000000101600d64 in ?? ()
 #24 0x000000010958cf50 in ?? ()
 #25 0x000000010012e628 in __rb_vm_rcall [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:159
 #26 0x000000010012e628 in ruby_dispatch [inlined] () at /Users/watson/src
 /macruby-trunk/dispatcher.cpp:466
 #27 0x000000010012e628 in rb_vm_dispatch () at dispatcher.cpp:872
 #28 0x00000001000d91ed in rb_vm_call0 (vm=0x100f23300, top=0,
 self=8596932480, klass=0x2004ef300, sel=0x100f24df0, block=0x200835c80,
 opt=2 '\002', argc=0, argv=0x0) at vm.h:653
 #29 0x00000001000da312 in rb_vm_call2 (block=0x200835c80, self=8596932480,
 klass=8595108608, sel=0x100f24df0, argc=0, argv=0x0) at vm.h:678
 (More stack frames follow...)
 (gdb)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1256#comment:2>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list