General

Profile

saddestmartian (sad mart)

  • Login: saddestmartian
  • Registered on: 12/04/2026
  • Last sign in: 12/04/2026

Issues

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

Activity

Today

05:50 PM Ruby Revision d4ace345 (git): Do not drop line before separator match in middle of char
rb_str_enumerate_lines searches for the separator byte-wise. When a
match turned out to start in the middle of a character, it moved the
start of the current line past that character instead of only resuming
the search there, so the tex...
saddestmartian (sad mart)
09:18 AM Ruby Revision 2d2b34a7 (git): Fix ARGF with "-" in ARGV when $stdin is not an IO
$stdin can be any object, and ARGF forwards reads to it when it is
not an IO. When ARGV contains "-", however, argf_next_argv() set the
current file to $stdin and then used it as an IO: it called
rb_io_ascii8bit_binmode() and GetOpenFil...
saddestmartian (sad mart)

12/04/2026

05:54 AM Ruby Bug #22719: Mutex, Queue and SizedQueue lose the wakeup when the woken waiter is interrupted
A pull request for the `SizedQueue#push(timeout:)` case: https://github.com/ruby/ruby/pull/20478
saddestmartian (sad mart)
05:54 AM Ruby Bug #22719 (Open): Mutex, Queue and SizedQueue lose the wakeup when the woken waiter is interrupted
`Mutex#unlock`, `Queue#push` and `SizedQueue#pop` wake exactly one waiter. If that waiter then leaves without taking the resource, it does not pass the wakeup on, and the next waiter sleeps next to a free mutex, a queued item or a free s... saddestmartian (sad mart)
05:54 AM Ruby Bug #22721 (Open): String#slice!(regexp, capture) returns a string with a stale coderange when capture.to_int modifies the receiver
```ruby
s = "aéb"
obj = Object.new
obj.define_singleton_method(:to_int) { s.replace("éé"); 0 }
r = s.slice!(/é/, obj)
r #=> "\xA9\xC3"
r.valid_encoding? #=> true (r.b.force_encoding("UTF-8").vali...
saddestmartian (sad mart)
05:54 AM Ruby Bug #22720 (Open): Fork child crashes with `[BUG] unexpected THREAD_KILLED` when a fiber-scheduler fiber was waiting on a Mutex
Since Ruby 4.0.0, if a non-blocking fiber in another thread is waiting on a `Thread::Mutex` through a fiber scheduler when the process forks, unlocking (or locking and unlocking) that mutex in the child aborts the child.
```ruby
clas...
saddestmartian (sad mart)
05:44 AM Ruby Bug #22718 (Open): String#each_line with a broken separator returns lines with a stale valid coderange
`String#each_line` and `String#lines` with a broken separator return lines that report `valid_encoding? == true` although they are not valid:
```ruby
s = "あい"; s.valid_encoding?
s.lines("\xE3") #=> ["\xE3", "...
saddestmartian (sad mart)
05:44 AM Ruby Bug #22717 (Open): MatchData#initialize_copy keeps a stale character offsets cache
`rb_match_init_copy` overwrites the receiver's registers but copies the character offsets cache only when the original has one, so a receiver that had already computed offsets keeps them:
```ruby
m = /(b)/.match("ab"); m.offset(1) ...
saddestmartian (sad mart)
05:44 AM Ruby Bug #22716 (Closed): ARGF uses a non-IO $stdin as an IO when ARGV contains "-"
`$stdin` can be any object, and ARGF reads through it when it is not an IO. When `ARGV` contains `"-"`, however, `argf_next_argv()` sets the current file to `$stdin` and then uses it as an IO (`rb_io_ascii8bit_binmode()`, `GetOpenFile()`... saddestmartian (sad mart)
05:31 AM Ruby Bug #22715 (Open): String#each_line drops text before a separator match in the middle of a character
`String#each_line` and `String#lines` with a separator drop the text before a byte match of the separator that falls inside a multibyte character:
```ruby
s = "a\x83\x5Cb\\c".force_encoding("Shift_JIS") # "\x83\x5C" is one character...
saddestmartian (sad mart)

Also available in: Atom