* [ruby-dev:50557] [Ruby trunk Bug#14809] calc_lineno() returns wrong location
[not found] <redmine.issue-14809.20180602033030@ruby-lang.org>
@ 2018-06-02 3:30 ` kazuki
2018-06-04 3:22 ` [ruby-dev:50561] " shyouhei
1 sibling, 0 replies; 2+ messages in thread
From: kazuki @ 2018-06-02 3:30 UTC (permalink / raw)
To: ruby-dev
Issue #14809 has been reported by ktsj (Kazuki Tsujimoto).
----------------------------------------
Bug #14809: calc_lineno() returns wrong location
https://bugs.ruby-lang.org/issues/14809
* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: shyouhei (Shyouhei Urabe)
* Target version:
* ruby -v: ruby 2.6.0dev (2018-06-02 master 63545) [x86_64-linux]
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONTNEED
----------------------------------------
r62051のコミット以降
```
$ cat -n t.rb
1 class String
2 def -@
3 p caller_locations(1, 1)[0]
4 end
5 end
6
7 -""
$ ruby-trunk t.rb
"t.rb:1:in `<main>'"
$ ruby-2.5 t.rb
"t.rb:7:in `<main>'"
```
のように、位置情報が正しく取れなくなるという問題が起きています。
インストラクションの種類によってPCが変更されるタイミングが異なるようになったことが原因です。
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-dev:50561] [Ruby trunk Bug#14809] calc_lineno() returns wrong location
[not found] <redmine.issue-14809.20180602033030@ruby-lang.org>
2018-06-02 3:30 ` [ruby-dev:50557] [Ruby trunk Bug#14809] calc_lineno() returns wrong location kazuki
@ 2018-06-04 3:22 ` shyouhei
1 sibling, 0 replies; 2+ messages in thread
From: shyouhei @ 2018-06-04 3:22 UTC (permalink / raw)
To: ruby-dev
Issue #14809 has been updated by shyouhei (Shyouhei Urabe).
I'll take care of it.
----------------------------------------
Bug #14809: calc_lineno() returns wrong location
https://bugs.ruby-lang.org/issues/14809#change-72362
* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: shyouhei (Shyouhei Urabe)
* Target version:
* ruby -v: ruby 2.6.0dev (2018-06-02 master 63545) [x86_64-linux]
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONTNEED
----------------------------------------
r62051のコミット以降
```
$ cat -n t.rb
1 class String
2 def -@
3 p caller_locations(1, 1)[0]
4 end
5 end
6
7 -""
$ ruby-trunk t.rb
"t.rb:1:in `<main>'"
$ ruby-2.5 t.rb
"t.rb:7:in `<main>'"
```
のように、位置情報が正しく取れなくなるという問題が起きています。
インストラクションの種類によってPCが変更されるタイミングが異なるようになったことが原因です。
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-04 3:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-14809.20180602033030@ruby-lang.org>
2018-06-02 3:30 ` [ruby-dev:50557] [Ruby trunk Bug#14809] calc_lineno() returns wrong location kazuki
2018-06-04 3:22 ` [ruby-dev:50561] " shyouhei
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).