General

Profile

luke-gru (Luke Gruber)

  • Login: luke-gru
  • Email: luke.gru@gmail.com
  • Registered on: 08/19/2011
  • Last sign in: 10/20/2026

Issues

open closed Total
Assigned issues 5 27 32
Reported issues 14 57 71

Projects

Project Roles Registered on
Ruby Committer 06/19/2025

Activity

11/18/2026

08:05 PM Ruby Bug #22532: pthread_mutex_lock: Invalid argument (EINVAL) / SEGV in rb_threadptr_join_list_wakeup when a fiber blocked in Thread#join under a Fiber scheduler is never resumed
Draft PR using the new weak references API: https://github.com/ruby/ruby/pull/19996. This attempts to fix all the known issues with thread join list/fiber/mutex/condvar/queue/io_blocking_operations, etc.
Since the bug mentioned in this ...
luke-gru (Luke Gruber)
06:29 PM Ruby Bug #22532: pthread_mutex_lock: Invalid argument (EINVAL) / SEGV in rb_threadptr_join_list_wakeup when a fiber blocked in Thread#join under a Fiber scheduler is never resumed
Here's a related Fiber Scheduler issue:
```ruby
class Scheduler
def initialize = @main = Fiber.current
def block(blocker, timeout = nil) = @main.transfer
def unblock(blocker, fiber) = nil
def kernel_sleep(duration = nil) ...
luke-gru (Luke Gruber)
05:16 PM Ruby Bug #22553: Segfault when several Ractors call Kernel#class or #frozen? on objects of many classes
Backport 4.0 PR: https://github.com/ruby/ruby/pull/19986 luke-gru (Luke Gruber)

11/16/2026

09:33 PM Ruby Bug #22555: Missing CC invalidation when changing visibility using Method object
PR [here](https://github.com/ruby/ruby/pull/19926) luke-gru (Luke Gruber)
09:29 PM Ruby Bug #22555 (Open): Missing CC invalidation when changing visibility using Method object
A Method object that is used to define another method with the same name but with a different visibility mutates the `def` of the original method. This is fine,
however it doesn't clear the CCs of the old method.
```ruby
class Warm;...
luke-gru (Luke Gruber)
09:03 PM Ruby Bug #22553: Segfault when several Ractors call Kernel#class or #frozen? on objects of many classes
Thanks for the report. I have a fix [here](https://github.com/ruby/ruby/pull/19925). It should be backported to 4.0 as well. luke-gru (Luke Gruber)

11/13/2026

08:34 PM Ruby Bug #22532: pthread_mutex_lock: Invalid argument (EINVAL) / SEGV in rb_threadptr_join_list_wakeup when a fiber blocked in Thread#join under a Fiber scheduler is never resumed
Thanks for the report. I have a couple of old PRs where I was working on fixing this issue. It isn't an issue just with `Thread#join`, but also with Mutex, ConditionVariable, etc.
https://github.com/ruby/ruby/pull/17207 - attempt to f...
luke-gru (Luke Gruber)
02:41 AM Ruby Bug #22457 (Closed): Implicit Ractor shareability for frozen objects is buggy
ko1's fix been merged as 7fe831a84b198d617455e71505e20de7635ec749 and a few follow-up commits. luke-gru (Luke Gruber)

10/20/2026

05:31 PM Ruby Bug #22453: GET_EC() may break when the native thread switches under M:N threads
I agree to make noinline the default for 4.1. Maybe we can use one of the alternatives for shared x86 builds at a later time. I think the reason `GET_EC()` is a hotspot is not only the dynamic TLS access but the compiler optimizations th... luke-gru (Luke Gruber)
02:28 PM Ruby Bug #22457 (Closed): Implicit Ractor shareability for frozen objects is buggy
## Background
To share objects between Ractors without passing them explicitly with `Ractor#send`, you can use shareable objects. Certain objects are always shareable (such as nil, true, false, Symbols, etc) but most aren't. To make a...
luke-gru (Luke Gruber)

Also available in: Atom