Project

General

Profile

Bug #693

Thread#set_trace_func seems not to work

Added by pragdave (Dave Thomas) about 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2010-01-13 trunk 26315) [i386-mingw32]
Backport:
[ruby-core:19581]

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

thread_trace.patch (261 Bytes) thread_trace.patch wanabe (_ wanabe), 01/13/2010 07:54 PM

History

#1

Updated by ko1 (Koichi Sasada) almost 11 years ago

  • Assignee set to ko1 (Koichi Sasada)

=begin

=end

#2

Updated by yugui (Yuki Sonoda) almost 11 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
#3

Updated by yugui (Yuki Sonoda) almost 11 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

#4

Updated by yugui (Yuki Sonoda) almost 11 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

#5

Updated by wanabe (_ wanabe) almost 10 years ago

=begin
It seems that thread_reset_event_flags() doesn't work well.
This function should set th->event_flags, I think.
=end

#6

Updated by wanabe (_ wanabe) over 9 years ago

=begin
Added patch should be applied, because it is so trivial.
If no one disagree with it, I'll commit it.
=end

#7

Updated by wanabe (_ wanabe) over 9 years ago

  • Status changed from Assigned to Closed

=begin
applied at r27046.
Dave, thank you to report the issue.
=end

Also available in: Atom PDF