[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70625] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method

From: os97673@...
Date: 2015-08-28 17:10:33 UTC
List: ruby-core #70625
Issue #11492 has been updated by Oleg Sukhodolsky.


David Rodr=C3=ADguez wrote:
> Oleg, could you link to the original report where you found this out? I'd=
 like to know what kind of bug reports to expect and maybe add a regression=
 test in byebug itself.

originally the problem has reported here (https://youtrack.jetbrains.com/is=
sue/RUBY-17051) unfortunately user was unable to provide test and I've inve=
stigated the problem using log of event reported by debase

----------------------------------------
Bug #11492: TracePoint API report extra return for defined method
https://bugs.ruby-lang.org/issues/11492#change-54031

* Author: Oleg Sukhodolsky
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
~~~ruby
class A
  define_method "method1" do
    # puts "#{method_name}(#{arg})"
    return 1
  end
end

a =3D A.new

TracePoint.new do |tp|
  printf "%8s %13s %s:%-2d\n", tp.event, tp.method_id, tp.path, tp.lineno
end.enable do
  a.method1
end
~~~



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next