ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:70608] [Ruby trunk - Bug #11492] [Open] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
@ 2015-08-27 19:44 ` os97673
  2015-08-27 19:48 ` [ruby-core:70609] [Ruby trunk - Bug #11492] " os97673
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: os97673 @ 2015-08-27 19:44 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been reported by Oleg Sukhodolsky.

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

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

a = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:70609] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
  2015-08-27 19:44 ` [ruby-core:70608] [Ruby trunk - Bug #11492] [Open] TracePoint API report extra return for defined method os97673
@ 2015-08-27 19:48 ` os97673
  2015-08-28  0:53 ` [ruby-core:70614] [Ruby trunk - Bug #11492] [Assigned] " nagachika00
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: os97673 @ 2015-08-27 19:48 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Oleg Sukhodolsky.


MRI 2.2.3 introduced problem with TracePoint events.
For the provided test it reports extra return event for method1

~~~
  b_call               ruby-17051.rb:14
    line               ruby-17051.rb:15
    call       method1 ruby-17051.rb:2 
  b_call       method1 ruby-17051.rb:2 
    line       method1 ruby-17051.rb:4 
b_return       method1 ruby-17051.rb:4 
  return       method1 ruby-17051.rb:4 
  return       method1 ruby-17051.rb:15
b_return               ruby-17051.rb:16
~~~

while 2.2.2 reports

~~~
  b_call               ruby-17051.rb:14
    line               ruby-17051.rb:15
    call       method1 ruby-17051.rb:2 
  b_call       method1 ruby-17051.rb:2 
    line       method1 ruby-17051.rb:4 
b_return       method1 ruby-17051.rb:4 
  return       method1 ruby-17051.rb:15
b_return               ruby-17051.rb:16
~~~

This breaks calculation of frame stack's size which is used in debase and byebug

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

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

a = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:70614] [Ruby trunk - Bug #11492] [Assigned] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
  2015-08-27 19:44 ` [ruby-core:70608] [Ruby trunk - Bug #11492] [Open] TracePoint API report extra return for defined method os97673
  2015-08-27 19:48 ` [ruby-core:70609] [Ruby trunk - Bug #11492] " os97673
@ 2015-08-28  0:53 ` nagachika00
  2015-08-28 16:46 ` [ruby-core:70624] [Ruby trunk - Bug #11492] " deivid.rodriguez
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: nagachika00 @ 2015-08-28  0:53 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Tomoyuki Chikanaga.

Status changed from Open to Assigned
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED

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

* Author: Oleg Sukhodolsky
* Status: Assigned
* 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 = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:70624] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-08-28  0:53 ` [ruby-core:70614] [Ruby trunk - Bug #11492] [Assigned] " nagachika00
@ 2015-08-28 16:46 ` deivid.rodriguez
  2015-08-28 17:10 ` [ruby-core:70625] " os97673
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: deivid.rodriguez @ 2015-08-28 16:46 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by David Rodríguez.


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.

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

* 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 = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:70625] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-08-28 16:46 ` [ruby-core:70624] [Ruby trunk - Bug #11492] " deivid.rodriguez
@ 2015-08-28 17:10 ` os97673
  2015-08-29 10:24 ` [ruby-core:70628] " deivid.rodriguez
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: os97673 @ 2015-08-28 17:10 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Oleg Sukhodolsky.


David Rodríguez 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/issue/RUBY-17051) unfortunately user was unable to provide test and I've investigated 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 = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:70628] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2015-08-28 17:10 ` [ruby-core:70625] " os97673
@ 2015-08-29 10:24 ` deivid.rodriguez
  2015-08-29 12:33 ` [ruby-core:70629] " os97673
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: deivid.rodriguez @ 2015-08-29 10:24 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by David Rodríguez.


Thanks!

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

* 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 = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:70629] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2015-08-29 10:24 ` [ruby-core:70628] " deivid.rodriguez
@ 2015-08-29 12:33 ` os97673
  2015-10-27 15:23 ` [ruby-core:71225] " nagachika00
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: os97673 @ 2015-08-29 12:33 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Oleg Sukhodolsky.


Reporter of original bug confirmed that ruby-head does fix the problem.

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

* 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 = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:71225] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2015-08-29 12:33 ` [ruby-core:70629] " os97673
@ 2015-10-27 15:23 ` nagachika00
  2015-10-29  9:24 ` [ruby-core:71259] " deivid.rodriguez
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: nagachika00 @ 2015-10-27 15:23 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

Backported into `ruby_2_2` branch at r52308.

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

* 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: DONE
----------------------------------------
~~~ruby
class A
  define_method "method1" do
    # puts "#{method_name}(#{arg})"
    return 1
  end
end

a = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:71259] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2015-10-27 15:23 ` [ruby-core:71225] " nagachika00
@ 2015-10-29  9:24 ` deivid.rodriguez
  2015-11-03  0:47 ` [ruby-core:71303] " usa
  2015-11-18 11:17 ` [ruby-core:71547] " usa
  10 siblings, 0 replies; 11+ messages in thread
From: deivid.rodriguez @ 2015-10-29  9:24 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by David Rodríguez.


Hi, this is indeed a regression in 2.2.3, but also a bug present in 2.1.7. Could we get it backported to 2.1 as well? Thanks!

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

* 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: DONE
----------------------------------------
~~~ruby
class A
  define_method "method1" do
    # puts "#{method_name}(#{arg})"
    return 1
  end
end

a = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:71303] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2015-10-29  9:24 ` [ruby-core:71259] " deivid.rodriguez
@ 2015-11-03  0:47 ` usa
  2015-11-18 11:17 ` [ruby-core:71547] " usa
  10 siblings, 0 replies; 11+ messages in thread
From: usa @ 2015-11-03  0:47 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE to 2.0.0: DONTNEED, 2.1: REQUIRED, 2.2: DONE

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

* 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: REQUIRED, 2.2: DONE
----------------------------------------
~~~ruby
class A
  define_method "method1" do
    # puts "#{method_name}(#{arg})"
    return 1
  end
end

a = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:71547] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method
       [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
                   ` (9 preceding siblings ...)
  2015-11-03  0:47 ` [ruby-core:71303] " usa
@ 2015-11-18 11:17 ` usa
  10 siblings, 0 replies; 11+ messages in thread
From: usa @ 2015-11-18 11:17 UTC (permalink / raw
  To: ruby-core

Issue #11492 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONTNEED, 2.1: DONE, 2.2: DONE

ruby_2_1 r52639 merged revision(s) 51713.

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

* 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: DONE, 2.2: DONE
----------------------------------------
~~~ruby
class A
  define_method "method1" do
    # puts "#{method_name}(#{arg})"
    return 1
  end
end

a = 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
~~~



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-11-18 10:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-11492.20150827194448@ruby-lang.org>
2015-08-27 19:44 ` [ruby-core:70608] [Ruby trunk - Bug #11492] [Open] TracePoint API report extra return for defined method os97673
2015-08-27 19:48 ` [ruby-core:70609] [Ruby trunk - Bug #11492] " os97673
2015-08-28  0:53 ` [ruby-core:70614] [Ruby trunk - Bug #11492] [Assigned] " nagachika00
2015-08-28 16:46 ` [ruby-core:70624] [Ruby trunk - Bug #11492] " deivid.rodriguez
2015-08-28 17:10 ` [ruby-core:70625] " os97673
2015-08-29 10:24 ` [ruby-core:70628] " deivid.rodriguez
2015-08-29 12:33 ` [ruby-core:70629] " os97673
2015-10-27 15:23 ` [ruby-core:71225] " nagachika00
2015-10-29  9:24 ` [ruby-core:71259] " deivid.rodriguez
2015-11-03  0:47 ` [ruby-core:71303] " usa
2015-11-18 11:17 ` [ruby-core:71547] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).