wanabe (_ wanabe)
- Login: wanabe
- Email: s.wanabe@gmail.com
- Registered on: 07/23/2008
- Last sign in: 10/11/2025
Issues
open | closed | Total | |
---|---|---|---|
Assigned issues | 0 | 23 | 23 |
Reported issues | 2 | 54 | 56 |
Projects
Project | Roles | Registered on |
---|---|---|
Ruby | Committer | 11/05/2009 |
Activity
02/19/2025
-
11:05 PM Ruby Bug #21149 (Rejected): Strange behavior of ObjectSpace.each_object after Ractor.new
- Thank you. I forgot to search existing issues before opening the ticket. Now I can see many related tickets:
- [Feature #17270] ObjectSpace.each_object should be restricted on multi-Ractors
- [Bug #17360] Objects disappear from Objec... -
09:42 AM Ruby Bug #21149 (Rejected): Strange behavior of ObjectSpace.each_object after Ractor.new
- I found the strange behavior of `ObjectSpace.each_object`.
It misses some objects after `Ractor.new`.
```
$ ruby -ve 'class Foo; end; foo = Foo.new; Ractor.new do buz = Foo.new end.take; bar = Foo.new; p [ObjectSpace.each_object(Foo...
02/02/2025
-
01:18 PM Ruby Feature #21109 (Closed): Want to clarify how $/ is handled in Ractor
- I am often in trouble because `$/` is inaccessible in Ractor.
For example, `IO#readline` can't be called from non-main Ractor.
```
$ echo "foo"|ruby -e 'Ractor.new do p $stdin.readline end.take'
-e:1: warning: Ractor is experimenta...
01/26/2025
-
03:21 PM Ruby Bug #21090 (Closed): SEGV from require in Thread in Ractor
- When ruby calls 'require' in Thread in non-main Ractor, it can cause SEGV sometimes.
```
$ ruby -e '1000.times { Ractor.new { th = Thread.new { require "rbconfig" }; Thread.pass }.take }' > segv.log 2>&1
Segmentation fault (core dum...
01/21/2025
-
03:32 AM Ruby Revision e5f81e51 (git): [ruby/error_highlight] Use `$stderr` instead of STDERR for Ractor
- https://github.com/ruby/error_highlight/commit/a221a4b0eb
01/15/2025
-
04:07 AM Ruby Revision 96b5cde2 (git): [ruby/erb] Make `ERB::NOT_GIVEN` ractor-shareable
- https://github.com/ruby/erb/commit/348777b5bf
-
04:07 AM Ruby Revision 272a8c3c (git): [ruby/erb] Make `@scanner_map` of `ERB::Compiler::Scanner` ractor-shareable
- - Freeze on assignment
- Recreate Hash on registration
https://github.com/ruby/erb/commit/12d69fc2b3
12/08/2024
-
04:37 AM Ruby Bug #20934: `UnboundMethod#bind_call` may cause "double free or corruption" with Ractor
- Thanks for your comment. It looks like a race condition between `rb_method_definition_release()` and `method_definition_addref()`.
Applying the following patch suppressed the problem.
```patch
diff --git a/vm_method.c b/vm_method.c
...
12/07/2024
-
09:58 AM Ruby Bug #20934 (Closed): `UnboundMethod#bind_call` may cause "double free or corruption" with Ractor
- When I call `UnboundMethod#bind_call` on both main Ractor and child Ractor, probable errors can be encountered.
Here is an issue reproduce script `ractor_issue.rb`.
```
def foo
10000.times do
Object.instance_method(:object_id)...
11/12/2023
-
02:34 PM Ruby Bug #19922: ObjectSpace.dump_all in multiple threads in parallel causes SEGV
- Thank you. https://github.com/ruby/ruby/pull/8858 resolves my issue.