From: Andrew Grimm Date: 2010-11-15T20:49:32+09:00 Subject: [ruby-core:33193] [Ruby 1.9-Bug#4059][Open] String#unpack can segfault when passed a block Bug #4059: String#unpack can segfault when passed a block http://redmine.ruby-lang.org/issues/show/4059 Author: Andrew Grimm Status: Open, Priority: Normal ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.2.0] Various calls to String#unpack (not just those involving "d") can cause segfaults when passed a block ruby -e ' "".unpack("d") { true } ' -e:1: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.2.0] -- control frame ---------- c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :unpack c:0003 p:0012 s:0006 b:0006 l:001588 d:002478 EVAL -e:1 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:001588 d:001588 TOP --------------------------- -- Ruby level backtrace information ---------------------------------------- -e:1:in `
' -e:1:in `unpack' -- C level backtrace information ------------------------------------------- [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Abort trap ---------------------------------------- http://redmine.ruby-lang.org