From: "wanabe (_ wanabe) via ruby-core" Date: 2026-08-16T09:17:36+00:00 Subject: [ruby-core:126402] [Ruby Bug#20419] [BUG] inconsistent freelist length with cppflags='-DRGENGC_CHECK_MODE -DUSE_RUBY_DEBUG_LOG=1' Issue #20419 has been updated by wanabe (_ wanabe). Status changed from Open to Closed `env RUBY_DEBUG=gc_stress ./miniruby -v` began working properly as of commit 50327913303d3b821720476406190cbfb6382492. The "inconsistent freelist length" issue itself had been fixed in the previous commit, a084fef9afc7713aa4f4111f7e826c7ca1a607c7 == https://bugs.ruby-lang.org/issues/21099, but a different problem had arisen. ``` $ grep cppflags\" config.status S["cppflags"]="-DRGENGC_CHECK_MODE -DUSE_RUBY_DEBUG_LOG=1" $ git checkout 50327913303d3b821720476406190cbfb6382492 && make -j miniruby > /dev/null 2>&1 && env RUBY_D EBUG=gc_stress ./miniruby -v 2>&1|head -n5 HEAD is now at 50327913303 Fix conversion of RubyVM::FrozenCore to T_ICLASS ruby 3.5.0dev (2025-01-30T15:10:48Z v3_5_0_preview1~874 5032791330) +PRISM [x86_64-linux] $ git checkout 50327913303d3b821720476406190cbfb6382492~ && make -j miniruby > /dev/null 2>&1 && env RUBY_ DEBUG=gc_stress ./miniruby -v 2>&1|head -n5 Previous HEAD position was 50327913303 Fix conversion of RubyVM::FrozenCore to T_ICLASS HEAD is now at a084fef9afc [Bug #21099] Fix GC when Ractor list not initialized [BUG] RVALUE_AGE_INC: can not increment age of OLD object src:Class. ruby 3.5.0dev (2025-01-30T15:10:48Z v3_5_0_preview1~874 5032791330) [x86_64-linux] -- Control frame information ----------------------------------------------- c:0001 p:---- s:0003 e:000002 DUMMY [FINISH] $ git checkout 50327913303d3b821720476406190cbfb6382492~~ && make -j miniruby > /dev/null 2>&1 && env RUBY _DEBUG=gc_stress ./miniruby -v 2>&1|head -n5 Previous HEAD position was a084fef9afc [Bug #21099] Fix GC when Ractor list not initialized HEAD is now at 4cfc904d970 [DOC] Fix article-noun agreement [BUG] inconsistent freelist length: expected 817 but was 0 ruby 3.5.0dev (2025-01-30T09:45:29Z v3_5_0_preview1~876 4cfc904d97) [x86_64-linux] -- Control frame information ----------------------------------------------- c:0001 p:---- s:0003 e:000002 DUMMY [FINISH] ``` ---------------------------------------- Bug #20419: [BUG] inconsistent freelist length with cppflags='-DRGENGC_CHECK_MODE -DUSE_RUBY_DEBUG_LOG=1' https://bugs.ruby-lang.org/issues/20419#change-118540 * Author: znz (Kazuhiro NISHIYAMA) * Status: Closed * ruby -v: ruby 3.4.0dev (2024-04-09T16:29:01Z master 0107954f25) [x86_64-linux] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- `TestGc#test_gc_stress_at_startup` failed on my environment, so I check which configure flags affect. How to reproduce: ``` ./configure cppflags='-DRGENGC_CHECK_MODE -DUSE_RUBY_DEBUG_LOG=1' make miniruby env RUBY_DEBUG=gc_stress ./miniruby -v ``` I can't reproduce with `cppflags='-DRGENGC_CHECK_MODE'` or `cppflags='-DUSE_RUBY_DEBUG_LOG=1'`. ---Files-------------------------------- output.txt (9.44 KB) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/