[MacRuby-devel] [MacRuby] #294: Experimental: EmbeddedMacRuby example crashes

MacRuby ruby-noreply at macosforge.org
Thu Jul 9 05:44:15 PDT 2009


#294: Experimental: EmbeddedMacRuby example crashes
---------------------------------+------------------------------------------
 Reporter:  illenberger@…        |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  major                |   Milestone:  MacRuby 0.5          
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------
 Steps to reproduce:
 - Checkout and build r1999 of macrub-experimental
 - build the EmbeddedMacRuby example under SnowLeopard 10A394
 - In the upcoming app window, press the evaluate button

 The app will crash with the following trace:

 (gdb) bt
 #0  rb_vm_run (fname=0x916b4d "(eval)", node=0x18b71e0, binding=0x0,
 inside_eval=true) at compiler.h:53
 #1  0x0016f5f8 in rb_vm_run_under (klass=0, self=25358272, fname=0x916b4d
 "(eval)", node=0x18b71e0, binding=0x0, inside_eval=<value temporarily
 unavailable, due to optimizations>) at vm.cpp:4009
 #2  0x00123340 in eval_string (self=25358272, klass=0, src=25915360,
 scope=4, file=0x916b4d "(eval)", line=1) at vm_eval.c:352
 #3  0x00123736 in rb_eval_string (str=0x18b6b30 "(0..42).to_a") at
 vm_eval.c:445
 #4  0x0018a25a in rb_rval_to_ocid [inlined] () at /Users/frank/macruby-
 experimental/include/ruby/ruby.h:34
 #5  0x0018a25a in -[MacRuby evaluateString:] (self=0x18290a0,
 _cmd=0x91759685, expression=0x18663a0) at MacRuby.m:34
 #6  0x00002d08 in -[MyController evaluate:] (self=0x186bfd0, _cmd=0x2ebc,
 sender=0x185f800) at
 /Users/frank/Desktop/EmbeddedMacRuby/MyController.m:30
 #7  0x9767599d in -[NSApplication sendAction:to:from:] ()
 #8  0x97674443 in -[NSControl sendAction:to:] ()
 #9  0x97674346 in -[NSCell _sendActionFrom:] ()
 #10 0x976735f9 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:] ()
 #11 0x97672e8a in -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]
 ()
 #12 0x976723ab in -[NSControl mouseDown:] ()
 #13 0x9766f860 in -[NSWindow sendEvent:] ()
 #14 0x975ca68a in -[NSApplication sendEvent:] ()
 #15 0x975be0ce in -[NSApplication run] ()
 #16 0x975a916c in NSApplicationMain ()
 #17 0x00002a40 in main (argc=1, argv=0xbffff7e8)

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



More information about the MacRuby-devel mailing list