Actions
Bug #20419
closed[BUG] inconsistent freelist length with cppflags='-DRGENGC_CHECK_MODE -DUSE_RUBY_DEBUG_LOG=1'
Bug #20419:
[BUG] inconsistent freelist length with cppflags='-DRGENGC_CHECK_MODE -DUSE_RUBY_DEBUG_LOG=1'
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.0dev (2024-04-09T16:29:01Z master 0107954f25) [x86_64-linux]
Description
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
Updated by znz (Kazuhiro NISHIYAMA) over 2 years ago
- ruby -v set to ruby 3.4.0dev (2024-04-09T16:29:01Z master 0107954f25) [x86_64-linux]
Updated by wanabe (_ wanabe) 4 days ago
- 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]
Actions