[MacRuby-devel] [MacRuby] #234: Backticks segfaults occasionally

MacRuby ruby-noreply at macosforge.org
Wed Mar 18 13:29:38 PDT 2009


#234: Backticks segfaults occasionally
--------------------------------+-------------------------------------------
 Reporter:  brad@…              |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  blocker             |   Milestone:                       
Component:  MacRuby             |    Keywords:                       
--------------------------------+-------------------------------------------
 Hi, I have a script that is running an external command using backticks ``
 every 5 seconds or so. It seems to work for a few hours, then segfault.
 The error report is below. From what I can tell, the string passed into
 the backticks is not null - i can print it out using NSLog just fine.

 I haven't been able to provide a quick way to replicate this problem - it
 seems to take time.

 This is on the latest svn of MacRuby.


 {{{
 /Users/brad/projects/gately/Gately.app/Contents/Resources/lib/panel.rb:65:
 [BUG] Segmentation fault
 MacRuby version 0.4 (ruby 1.9.1) [universal-darwin9.0, x86_64]

 -- stack frame ------------
 0000 (0xc083a0060): 00000004
 0001 (0xc083a0068): 00000000
 0002 (0xc083a0070): 00000004
 0003 (0xc083a0078): 80035dae8
 0004 (0xc083a0080): 00000004
 0005 (0xc083a0088): 8006843e0
 0006 (0xc083a0090): 00000004
 0007 (0xc083a0098): 00000000
 0008 (0xc083a00a0): 8000d1ac0
 0009 (0xc083a00a8): 00000004
 0010 (0xc083a00b0): c0849fec8
 0011 (0xc083a00b8): 8000d24a0
 0012 (0xc083a00c0): 00000004
 0013 (0xc083a00c8): c083a0098 (= 7)
 0014 (0xc083a00d0): 8006843e0
 0015 (0xc083a00d8): 00000004
 0016 (0xc083a00e0): 80067d6c0
 0017 (0xc083a00e8): 00000004
 0018 (0xc083a00f0): 00000000 <- lfp <- dfp
 -- control frame ----------
 c:0008 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC  :`
 c:0007 p:0036 s:0015 b:0014 l:000007 d:000013 BLOCK
 /Users/brad/projects/gately/Gately.app/Contents/Resources/lib/panel.rb:65
 c:0006 p:---- s:0013 b:0013 l:000012 d:000012 FINISH :nil?
 c:0005 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :each
 c:0004 p:0012 s:0008 b:0008 l:000007 d:000007 METHOD
 /Users/brad/projects/gately/Gately.app/Contents/Resources/lib/panel.rb:63
 c:0003 p:0011 s:0004 b:0004 l:001e88 d:000003 BLOCK
 /Users/brad/projects/gately/Gately.app/Contents/Resources/lib/panel.rb:47
 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
 c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
 ---------------------------

 }}}

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



More information about the MacRuby-devel mailing list