Actions
Bug #693
closedThread#set_trace_func seems not to work
Description
=begin
trace_func = lambda {|a,b,c,d,e,f| p a}
Thread.current.set_trace_func trace_func
puts "here"
thr = Thread.new do
Thread.current.add_trace_func(trace_func)
puts "hello"
def one
puts "in one"
end
one
end
thr.join
If you replace Thread.set_trace_func with set_trace_func, it reports as expected.
=end
Files
Updated by yugui (Yuki Sonoda) almost 16 years ago
- Target version set to 1.9.1 Release Candidate
=begin
- This is a unsupported feature. This method will be removed from 1.9.1
please do it < ko1
=end
Updated by yugui (Yuki Sonoda) almost 16 years ago
- Due date set to 12/24/2008
- Category set to YARV
- Assignee changed from ko1 (Koichi Sasada) to yugui (Yuki Sonoda)
=begin
=end
Updated by yugui (Yuki Sonoda) almost 16 years ago
- Due date deleted (
12/24/2008) - Status changed from Open to Assigned
- Assignee changed from yugui (Yuki Sonoda) to ko1 (Koichi Sasada)
- Target version changed from 1.9.1 Release Candidate to 1.9.2
=begin
applied in r20925 in 1.9.1.
Thread#set_trace_func will be implemented for 1.9.2 again.
=end
Updated by wanabe (_ wanabe) almost 15 years ago
- File thread_trace.patch thread_trace.patch added
- ruby -v set to ruby 1.9.2dev (2010-01-13 trunk 26315) [i386-mingw32]
=begin
It seems that thread_reset_event_flags() doesn't work well.
This function should set th->event_flags, I think.
=end
Updated by wanabe (_ wanabe) over 14 years ago
=begin
Added patch should be applied, because it is so trivial.
If no one disagree with it, I'll commit it.
=end
Updated by wanabe (_ wanabe) over 14 years ago
- Status changed from Assigned to Closed
=begin
applied at r27046.
Dave, thank you to report the issue.
=end
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0