General

Profile

viralpraxis (Iaroslav Kurbatov)

  • Login: viralpraxis
  • Registered on: 10/24/2024
  • Last sign in: 07/06/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 8 8

Activity

07/05/2026

12:46 PM Ruby Bug #22181 (Closed): SEGV in branch peephole optimization due to label/insn struct aliasing
Applied in changeset commit:git|6aedc31694f020ee37cd0668779351a714115ad0.
----------
[Bug #22181] Fix branch-peephole-optimization label & insn ID collisions
viralpraxis (Iaroslav Kurbatov)
10:39 AM Ruby Bug #22181 (Closed): SEGV in branch peephole optimization due to label/insn struct aliasing
Both `iseq_label_data` and `iseq_insn_data` share the same layout prefix; in some cases `iseq_label_data->label_no` might collide with `iseq_insn_data->insn_id` (e.g. when there are many (monotonically increasing) label IDs allocated and... viralpraxis (Iaroslav Kurbatov)
12:46 PM Ruby Revision 6aedc316 (git): [Bug #22181] Fix branch-peephole-optimization label & insn ID collisions
viralpraxis (Iaroslav Kurbatov)

06/26/2026

09:34 PM Ruby Revision e4c52b41 (git): [Bug #22126] Fix partial DCE with loop back-edges
The old `remove_unreachable_chunk` walked the dead code once and tried
to do two things at the same time -- count label references inside that
chunk and figure out what exactly to delete.
That breaks for loops -- the loop label comes be...
viralpraxis (Iaroslav Kurbatov)

06/24/2026

03:41 AM Ruby Bug #22126 (Closed): Stack underflow for partial DCE and loops
Applied in changeset commit:git|1f473ed633a364f8c89b69a76adfb22a4bf21f96.
----------
[Bug #22126] Fix partial DCE with loop back-edges
The old `remove_unreachable_chunk` walked the dead code once and tried
to do two things at the same ...
viralpraxis (Iaroslav Kurbatov)
03:40 AM Ruby Revision 1f473ed6 (git): [Bug #22126] Fix partial DCE with loop back-edges
The old `remove_unreachable_chunk` walked the dead code once and tried
to do two things at the same time -- count label references inside that
chunk and figure out what exactly to delete.
That breaks for loops -- the loop label comes be...
viralpraxis (Iaroslav Kurbatov)

06/23/2026

04:06 PM Ruby Bug #22126 (Closed): Stack underflow for partial DCE and loops
``` ruby
ruby --parser prism -e 'if []; else; a => [*, 42, *]; end'
-- raw disasm--------
trace: 1
0000 putnil ( 1)
0001 leave ...
viralpraxis (Iaroslav Kurbatov)

11/07/2025

08:32 AM Ruby Misc #21647: DevMeeting-2025-11-13
* [Feature #21637] tracepoint: add support for global variables read/write events (viralpraxis)
* There seems to be no straightforward way to trace gvar reads/writes in runtime
* `Kernel.trace_var` only works when gvar name is know...
viralpraxis (Iaroslav Kurbatov)

10/20/2025

04:24 PM Ruby Revision 5d2a244b (git): [Bug #21644] compile.c: fix `newrange` INSN peephole optimization for chilled string
ref: https://bugs.ruby-lang.org/issues/21644
```shell
$ ruby -v -e '("a" || "b").."c"'
ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [x86_64-linux]
-e:1: warning: possibly useless use of .. in void context
-e:1: [BUG] Stack consist...
viralpraxis (Iaroslav Kurbatov)
05:17 AM Ruby Bug #21644 (Closed): Stack consistency error for the `newrange` INSN peephole optimization with chilled string
Applied in changeset commit:git|7587e92910e7604a4c66f2b804bfa2076339c6ff.
----------
[Bug #21644] compile.c: fix `newrange` INSN peephole optimization for chilled string
ref: https://bugs.ruby-lang.org/issues/21644
```shell
$ ruby -v ...
viralpraxis (Iaroslav Kurbatov)

Also available in: Atom