Project

General

Profile

Actions

Backport #3921

closed

[BUG] Segmentation fault in set_trace_func

Added by nagachika (Tomoyuki Chikanaga) over 13 years ago. Updated almost 8 years ago.

Status:
Rejected
[ruby-dev:42350]

Description

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

$ ruby -e'
func = lambda{|e, f, l, i, b, k|
set_trace_func(nil)
b.eval("self")
}

set_trace_func(func)
'
-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]
[0xb77a9410]
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]

[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
=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29429.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Updated by nixme (Gopal Patel) over 12 years ago

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

Actions #3

Updated by kosaki (Motohiro KOSAKI) over 12 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport192
  • Status changed from Closed to Assigned
  • Assignee set to yugui (Yuki Sonoda)
Actions #4

Updated by naruse (Yui NARUSE) almost 8 years ago

  • Status changed from Assigned to Rejected
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0