Project

General

Profile

Actions

Bug #7180

closed

set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc

Added by garysweaver (Gary Weaver) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
Backport:
[ruby-core:48053]

Description

Causes 100% cpu usage and cannot ctrl-C to exit (have to kill proc):

set_trace_func proc {|event, file, line, id, binding, classname| raise "error"}

Understand that set_trace_func plays by different rules, but this isn't expected.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0