ruby/ext/io
Alan Wu c41af37ee6 [ruby/io-console] Read errno before calling rb_io_path()
Possible fix for recent crashes seen on CI.

     [BUG] rb_sys_fail_str(<STDIN>) - errno == 0

rb_io_path() calls rb_obj_dup(), which could call initialize_dup in Ruby
and clobber errno before rb_sys_fail_str() gets to read errno. So
save it out first.

(Using separate statements because order of evaluation in function call
list is unspecified, and order is important here.)

0ba400b5e7
2024-11-27 03:19:39 +00:00
..
console [ruby/io-console] Read errno before calling rb_io_path() 2024-11-27 03:19:39 +00:00
nonblock [ruby/io-nonblock] mark extension as ractor safe 2024-11-16 04:18:14 +00:00
wait ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00