[MacRuby] #1498: Can't retrieve the file path and line with DTrace in MacRuby probe

MacRuby ruby-noreply at macosforge.org
Sat Apr 14 02:26:09 PDT 2012


#1498: Can't retrieve the file path and line with DTrace in MacRuby probe
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  major                 |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Since MacRuby 0.6, can't retrieve the file path and line correctly with
 DTrace.

 Test case:
 {{{
 begin
   raise "test"
 rescue
 end
 }}}

 {{{
 #!/usr/sbin/dtrace -s

 #pragma D option quiet

 macruby$target:::raise
 {
     printf("*** raise!!! %s : %s : %d\n", copyinstr(arg0),
 copyinstr(arg1), arg2);
 }
 }}}

 Result:
 {{{
 $ sudo dtrace -qs method.d  -c "macruby -v test.rb"
 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 *** raise!!! RuntimeError : test.rb : 2


 $ sudo dtrace -qs method.d  -c "macruby -v test.rb"
 MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 *** raise!!! RuntimeError : core : 0
 }}}

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



More information about the macruby-tickets mailing list