[BUG] Segmentation fault in set_trace_func

Issue #3921 has been updated by Gopal Patel.

The same issue exists in 1.9.2-p290. Any chance of a backport to 1.9.2?

Bug #3921: [BUG] Segmentation fault in set_trace_func

Author: Tomoyuki C.
Status: Closed
Priority: Normal
Target version:
ruby -v: ruby 1.9.3dev (2010-10-07 trunk 29420) [i686-linux]

以下のようにすると Segmentation fault が発生します。

$ ruby -e’
func = lambda{|e, f, l, i, b, k|


-e:7: [BUG] Segmentation fault
ruby 1.9.3dev (2010-10-07 trunk 29420) [i686-linux]

– control frame ----------
c:0003 p:0024 s:0007 b:0007 l:0003f4 d:0006c8 EVAL -e:7
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0003f4 d:0003f4 TOP

– Ruby level backtrace information

-e:7:in `’

– C level backtrace information

ruby [0x816e422]
ruby [0x81af141]
ruby(rb_bug+0x28) [0x81af1d8]
ruby [0x80fbd35]
ruby [0x8160fc3]
ruby [0x816255c]
ruby [0x8167e2c]
ruby(rb_iseq_eval_main+0x1da) [0x816818a]
ruby [0x805b2c2]
ruby(ruby_run_node+0x32) [0x805cce2]
ruby [0x805a6a0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb75cb775]
ruby [0x805a5a1]

You may have encountered a bug in the Ruby interpreter or extension
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html