Project

General

Profile

Actions

Bug #19546

closed

IO::Buffer is incorrectly invoking fiber scheduler interface.

Added by ioquatix (Samuel Williams) about 1 year ago. Updated 10 months ago.


Description

(Original bug report: https://github.com/socketry/async/issues/224)

The IO::Buffer implementation incorrectly calls rb_fiber_scheduler_io_write with the size_ts converted to VALUEs: https://github.com/ruby/ruby/blob/400ccb16eefe4e21c4e3eacab4fd0f208fc5e151/io_buffer.c#L2607

But that function expects size_ts: https://github.com/ruby/ruby/blob/400ccb16eefe4e21c4e3eacab4fd0f208fc5e151/scheduler.c#L542

(And probably the same for the other scheduler methods + data types.)

Fixed by https://github.com/ruby/ruby/pull/7593.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0