Bug #1856
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
=begin I have a 120 line pure ruby application that bombs out in 1.9.1p129 after 1-2 seconds with a [BUG] Segmentation fault & [BUG] object allocation during garbage collection phase. I'm using a piece of code that I got from Ruby Treasures which has worked fine in 1.8.X for a long time. I'm going through the process of porting to 1.9.1. I've inlined this code, and my little app that uses it is at the bottom. The error output I see is: seg-fault.rb:115: [BUG] Segmentation fault ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux] -- control frame ---------- c:0008 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :readlines c:0007 p:0011 s:0037 b:0037 l:00157c d:000036 BLOCK seg-fault.rb:115 c:0006 p:0014 s:0032 b:0032 l:000014 d:000031 BLOCK seg-fault.rb:95 c:0005 p:0272 s:0026 b:0026 l:000025 d:000025 METHOD seg-fault.rb:78 c:0004 p:0024 s:0015 b:0015 l:000014 d:000014 METHOD seg-fault.rb:94 c:0003 p:0045 s:0006 b:0006 l:00157c d:001f8c EVAL seg-fault.rb:114 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:00157c d:00157c TOP <main>:17 --------------------------- seg-fault.rb:115: [BUG] object allocation during garbage collection phase ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux] -- control frame ---------- c:0008 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :readlines c:0007 p:0011 s:0037 b:0037 l:00157c d:000036 BLOCK seg-fault.rb:115 c:0006 p:0014 s:0032 b:0032 l:000014 d:000031 BLOCK seg-fault.rb:95 c:0005 p:0272 s:0026 b:0026 l:000025 d:000025 METHOD seg-fault.rb:78 c:0004 p:0024 s:0015 b:0015 l:000014 d:000014 METHOD seg-fault.rb:94 c:0003 p:0045 s:0006 b:0006 l:00157c d:001f8c EVAL seg-fault.rb:114 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:00157c d:00157c TOP <main>:17 --------------------------- -- Ruby level backtrace information----------------------------------------- seg-fault.rb:115:in `readlines' seg-fault.rb:115:in `block in <main>' seg-fault.rb:95:in `block in popen3' seg-fault.rb:78:in `popen3_with_pid' seg-fault.rb:94:in `popen3' seg-fault.rb:114:in `<main>' -- C level backtrace information ------------------------------------------- [NOTE] You may encounter a bug of Ruby interpreter. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Aborted =end