[ruby-core:102747] [Ruby master Bug#17672] Ractor stdio does not belong to the ractor
From:
nobu@...
Date:
2021-03-05 17:59:33 UTC
List:
ruby-core #102747
Issue #17672 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #17672: Ractor stdio does not belong to the ractor
https://bugs.ruby-lang.org/issues/17672
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED
----------------------------------------
When compiling with `RUBY_DEBUG`, the following code crashes.
```
$ ./miniruby -W0 -e 'p Ractor.new {$stdout.itself}.take'
<OBJ_INFO:rb_ractor_confirm_belonging@../debug/ractor_core.h:336> 0x000000010bec2fa0 [0 U] T_FILE (IO)
-e:1: [BUG] rb_ractor_confirm_belonging object-ractor id:1, current-ractor id:2
ruby 3.1.0dev (2021-03-05T13:03:11Z master 182cde8dfb) [x86_64-darwin19]
```
Ractor local stdio objects don't belong to the ractor.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>