* [ruby-dev:50867] [Ruby master Bug#16354] Memory corruption in Enumerable#reverse_each
[not found] <redmine.issue-16354.20191119213405@ruby-lang.org>
@ 2019-11-19 21:34 ` kazuki
2019-12-15 8:28 ` [ruby-dev:50889] " nagachika00
1 sibling, 0 replies; 2+ messages in thread
From: kazuki @ 2019-11-19 21:34 UTC (permalink / raw)
To: ruby-dev
Issue #16354 has been reported by ktsj (Kazuki Tsujimoto).
----------------------------------------
Bug #16354: Memory corruption in Enumerable#reverse_each
https://bugs.ruby-lang.org/issues/16354
* Author: ktsj (Kazuki Tsujimoto)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.5: REQUIRED, 2.6: REQUIRED
----------------------------------------
Enumerable#reverse_eachのブロック呼び出し中に、対象のEnumerableをto_aしたものを捕まえてサイズを変更するとSEGVすることがあります。
```
$ ruby -e '(0...1000).reverse_each {|i| i.inspect; ObjectSpace.each_object(Array) {|a| a.clear if a.length == 1000 }}'
-e:1: [BUG] Segmentation fault at 0x0000000000005f19
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-dev:50889] [Ruby master Bug#16354] Memory corruption in Enumerable#reverse_each
[not found] <redmine.issue-16354.20191119213405@ruby-lang.org>
2019-11-19 21:34 ` [ruby-dev:50867] [Ruby master Bug#16354] Memory corruption in Enumerable#reverse_each kazuki
@ 2019-12-15 8:28 ` nagachika00
1 sibling, 0 replies; 2+ messages in thread
From: nagachika00 @ 2019-12-15 8:28 UTC (permalink / raw)
To: ruby-dev
Issue #16354 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.5: REQUIRED, 2.6: REQUIRED to 2.5: REQUIRED, 2.6: DONE
ruby_2_6 r67835 merged revision(s) ff41663403d3eb76d95f465cb94e14d2faaa04d1.
----------------------------------------
Bug #16354: Memory corruption in Enumerable#reverse_each
https://bugs.ruby-lang.org/issues/16354#change-83138
* Author: ktsj (Kazuki Tsujimoto)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.5: REQUIRED, 2.6: DONE
----------------------------------------
Enumerable#reverse_eachのブロック呼び出し中に、対象のEnumerableをto_aしたものを捕まえてサイズを変更するとSEGVすることがあります。
```
$ ruby -e '(0...1000).reverse_each {|i| i.inspect; ObjectSpace.each_object(Array) {|a| a.clear if a.length == 1000 }}'
-e:1: [BUG] Segmentation fault at 0x0000000000005f19
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-15 8:29 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-16354.20191119213405@ruby-lang.org>
2019-11-19 21:34 ` [ruby-dev:50867] [Ruby master Bug#16354] Memory corruption in Enumerable#reverse_each kazuki
2019-12-15 8:28 ` [ruby-dev:50889] " nagachika00
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 NNTP newsgroup(s).