Project

General

Profile

Actions

Bug #693

closed

Thread#set_trace_func seems not to work

Added by pragdave (Dave Thomas) about 16 years ago. Updated over 13 years ago.

Status:
Closed
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
Actions #1

Updated by ko1 (Koichi Sasada) about 16 years ago

  • Assignee set to ko1 (Koichi Sasada)

=begin

=end

Actions #2

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

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

Actions #4

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

Actions #5

Updated by wanabe (_ wanabe) almost 15 years ago

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

Actions #6

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

Actions #7

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0