General

Profile

rmosolgo (Robert Mosolgo)

  • Login: rmosolgo
  • Email: rdmosolgo@gmail.com
  • Registered on: 11/08/2014
  • Last sign in: 07/25/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 4 6

Activity

06/09/2025

03:29 PM Ruby Bug #21401 (Rejected): ObjectSpace can't count Fibers after using a Ractor
Hi, thanks for all your great work, Ruby crew!
I have a test in my project that uses `ObjectSpace.each_object(Fiber).count` to see how many Fibers have been started by my code. This test started failing when I added other tests using ...
rmosolgo (Robert Mosolgo)

12/28/2023

03:57 PM Ruby Bug #20089: Fiber#kill transfers to root fiber
That definitely makes sense for a Fiber killing _itself_, but would you say that killing a _different_ Fiber should cause a fiber to transfer away? In my first script above, calling `worker.kill` causes the `manager` fiber to transfer.
...
rmosolgo (Robert Mosolgo)

12/27/2023

10:20 PM Ruby Bug #20081: Transfered Fiber doesn't return to Fiber that started it
Thanks for taking a look! I was going from the example in the docs (https://docs.ruby-lang.org/en/master/Fiber.html#method-i-transfer), where the return value of `.transfer` is used by the caller.
And `.transfer` _does_ return to the...
rmosolgo (Robert Mosolgo)

12/26/2023

04:46 PM Ruby Bug #20089 (Assigned): Fiber#kill transfers to root fiber
I was hoping to use `Fiber#kill` to clean up formerly `.transfer`-d Fibers and work around https://bugs.ruby-lang.org/issues/20081, but I found that `Fiber#kill` has a similar control flow jump behavior. Is this on purpose, or a bug?
...
rmosolgo (Robert Mosolgo)

12/23/2023

05:57 PM Ruby Bug #20081: Transfered Fiber doesn't return to Fiber that started it
I see that Ruby 3.3 has `Fiber#kill` coming (https://github.com/ruby/ruby/pull/7823), which I _think_ will solve my problem: I can manually `.kill` Fibers instead of running them until they return. But still, I'm interested to learn whet... rmosolgo (Robert Mosolgo)
05:44 PM Ruby Bug #20081 (Open): Transfered Fiber doesn't return to Fiber that started it
Hi! I'm trying to figure out how to make sure that Fibers started with `.transfer` end up _terminated_, not just suspended. (If they're suspended, Rails thinks they're still alive, and they continue to hold onto database connections, see... rmosolgo (Robert Mosolgo)

08/28/2023

04:06 PM Ruby Bug #19853 (Closed): Segfault when calling `system` from a non-blocking fiber
Hi! I'm trying to improve my Ruby library to support transfer-based fibers (https://github.com/rmosolgo/graphql-ruby/pull/4322). To test parallel I/O, I'm using `system("sleep #{duration}")`, but this causes a segfault sometimes. I'd lov... rmosolgo (Robert Mosolgo)

01/31/2022

02:47 PM Ruby Bug #17263: Fiber context switch degrades with number of fibers, limit on number of fibers
I heard someone ran into this error in a GraphQL-Ruby context, so I thought I'd check out this script on the latest Ruby. It didn't crash as-written, so I added a couple more orders of magnitude. It still finished fine locally, but slowe... rmosolgo (Robert Mosolgo)

05/21/2021

02:36 PM Ruby Bug #17875: Segfault when reusing a closed Fiber scheduler inside a Thread
Oh, thanks! I installed 3.1.0-dev and it worked fine for me, too. (That is, it failed with a nice error message and backtrace.) I thought I was on the latest version, but I guess I overlooked the `-dev` version.
I can't figure out how ...
rmosolgo (Robert Mosolgo)

05/20/2021

08:46 PM Ruby Bug #17875: Segfault when reusing a closed Fiber scheduler inside a Thread
Ah, yes, thanks for linking back to that. It sure looks like the same thing. I searched for "fiber scheduler segfault" and didn't find it, but I see it calls it "segv" instead.
Please feel free to close this one if it's not useful (I...
rmosolgo (Robert Mosolgo)

Also available in: Atom