Project

General

Profile

Actions

Bug #21565

open

YJIT has panicked in rails

Added by eiskrenkov (Egor Iskrenkov) 3 days ago. Updated 1 day ago.

Status:
Assigned
Assignee:
Target version:
-
ruby -v:
ruby 3.4.5 (2025-07-16 revision 20cda200d3) +PRISM [arm64-darwin24]
[ruby-core:123189]

Description

I've got YJIT has panicked crash in rails app locally on my M1 Pro Mac Book pro for 2 times for last 2 weeks

Started GET "/api/admin/environments/13/edit" for ::1 at 2025-09-08 18:32:17 +0200
Processing by Api::Admin::EnvironmentsController#edit as JSON
  Parameters: {"id" => "13", "environment" => {}}
ruby: YJIT has panicked. More info to follow...

thread '<unnamed>' panicked at ./yjit/src/codegen.rs:5031:9:
assertion failed: !val_type.is_imm()
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: yjit::codegen::jit_guard_known_klass
   4: yjit::codegen::gen_equality_specialized
   5: yjit::codegen::gen_opt_eq
   6: yjit::codegen::gen_single_block
   7: yjit::core::gen_block_series
   8: yjit::core::branch_stub_hit_body
   9: yjit::stats::with_compile_time
  10: yjit::cruby::with_vm_lock
  11: yjit::core::branch_stub_hit
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
/Users/eiskrenkov/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/actionpack-8.0.2.1/lib/action_dispatch/request/session.rb:118: [BUG] YJIT: panicked at ./yjit/src/codegen.rs:5031:9:
assertion failed: !val_type.is_imm()
ruby 3.4.5 (2025-07-16 revision 20cda200d3) +YJIT +PRISM [arm64-darwin24]

It happens randomly, I couldn't find reproduction steps sadly


Files

ruby-2025-09-08-183231.ips (45.3 KB) ruby-2025-09-08-183231.ips eiskrenkov (Egor Iskrenkov), 09/08/2025 05:00 PM
ruby-2025-09-09-184849.ips (71.7 KB) ruby-2025-09-09-184849.ips eiskrenkov (Egor Iskrenkov), 09/10/2025 12:32 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like1Like1Like0