General

Profile

paddor (Patrik Wenger)

  • Login: paddor
  • Email: paddor@gmail.com
  • Registered on: 11/12/2008
  • Last sign in: 05/04/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 6 7

Activity

01/18/2024

05:38 PM Ruby Bug #20155: Using value of rb_fiber_scheduler_current() crashes Ruby
Unfortunately I still get the same error in the non-test project (not fiber_blocker). I've included `<ruby/fiber/scheduler.h>`. No compiler warnings regarding `rb_fiber_scheduler_*` but it still crashes when `rb_fiber_scheduler_unblock(s... paddor (Patrik Wenger)

01/17/2024

08:28 AM Ruby Bug #20155: Using value of rb_fiber_scheduler_current() crashes Ruby
I knew it's something embarrassing like that. Adding `#include <ruby/fiber/scheduler.h>` actually helped. Thanks a lot. paddor (Patrik Wenger)
12:32 AM Ruby Bug #20155: Using value of rb_fiber_scheduler_current() crashes Ruby
You're right. It was line 28, the one with `rb_fiber_scheduler_block(scheduler, blocker, timeout)`.
I just ran it again with the commit I just pushed (which enables the bad line in the test `#test_fiber_blocking_in_ext` on line 44):
...
paddor (Patrik Wenger)

01/16/2024

11:01 PM Ruby Bug #20155: Using value of rb_fiber_scheduler_current() crashes Ruby
Thanks for looking into this. I'm pretty sure it was that one (initial) commit in the fiber_blocker repo. My extension (a PR for the rbnng gem [1]) would ideally block/unblock fibers using NNG's `nng_aio_*()` functions [2]. That's how I ... paddor (Patrik Wenger)
08:46 PM Ruby Bug #20155: Using value of rb_fiber_scheduler_current() crashes Ruby
@ioquatix Could you have a look at this? I have a feeling I'm missing something obvious. paddor (Patrik Wenger)

01/05/2024

10:14 PM Ruby Bug #20155 (Assigned): Using value of rb_fiber_scheduler_current() crashes Ruby
While trying to manually block/unblock fibers from an extension using the Fiber Scheduler,
I noticed that using the return value of `rb_fiber_scheduler_current()` crashes Ruby.
I've created a minimal extension gem called "fiber_block...
paddor (Patrik Wenger)

12/31/2023

01:20 AM Ruby Misc #17815: Snapcraft Ruby plugin
This can be closed. I've implemented a Ruby build plugin on v1 and v2. paddor (Patrik Wenger)

12/27/2023

12:10 PM Ruby Bug #20084: Breaking change with Regexp.new on 3.3.0
hsbt (Hiroshi SHIBATA) wrote in #note-2:
> It's intentional changes. see https://bugs.ruby-lang.org/issues/18797
Thanks.
nobu (Nobuyoshi Nakada) wrote in #note-3:
> ...
Yeah that would be nice.
paddor (Patrik Wenger)

12/25/2023

12:19 PM Ruby Bug #20084 (Closed): Breaking change with Regexp.new on 3.3.0
Regexp.new used to take up to 3 arguments, but now only 1..2 are allowed:
```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
ArgumentError: wrong number of arguments (given 3, expected 1..2)
from (pry):1:in `initialize'
```
On 3.2...
paddor (Patrik Wenger)

04/20/2021

07:59 PM Ruby Misc #17815: Snapcraft Ruby plugin
Wow, I just figured out something. It's the env variable `GEM_PATH` from my system that leaks into the process being run (duh). For some reason I thought that snap processes were more isolated. If I `env -i` (ignore environment) first, i... paddor (Patrik Wenger)

Also available in: Atom