[ruby-core:123314] [Ruby Bug#21613] TestGc#test_exception_in_finalizer_procs and TestGc#test_exception_in_finalizer_method fail with ASAN
From:
"Eregon (Benoit Daloze) via ruby-core" <ruby-core@...>
Date:
2025-09-21 15:30:47 UTC
List:
ruby-core #123314
Issue #21613 has been reported by Eregon (Benoit Daloze).
----------------------------------------
Bug #21613: TestGc#test_exception_in_finalizer_procs and TestGc#test_exception_in_finalizer_method fail with ASAN
https://bugs.ruby-lang.org/issues/21613
* Author: Eregon (Benoit Daloze)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
See https://github.com/ruby/ruby-dev-builder/actions/runs/17883721287/job/50854696068
```
1) Failure:
TestGc#test_exception_in_finalizer_procs [/home/runner/work/ruby-dev-builder/ruby-dev-builder/test/ruby/test_gc.rb:828]:
pid 40237 exit 0.
1. [1/2] Assertion for "stdout"
| <["c1", "c2"]> expected but was
| <["c1"]>.
2) Failure:
TestGc#test_exception_in_finalizer_method [/home/runner/work/ruby-dev-builder/ruby-dev-builder/test/ruby/test_gc.rb:848]:
pid 40260 exit 0.
1. [1/2] Assertion for "stdout"
| <["c1", "c2"]> expected but was
| <["c1"]>.
Finished tests in 630.155129s, 46.2553 tests/s, 9737.2404 assertions/s.
29148 tests, 6135972 assertions, 2 failures, 0 errors, 178 skips
```
Oddly enough https://ci.rvm.jp/results/trunk_asan@ruby-sp1 doesn't fail.
This is not the first time, it's been many times that job found issues not caught in ruby/ruby CI, so I would like to request adding a ASAN GHA job doing the same as https://github.com/ruby/ruby-dev-builder in ruby/ruby so such failures are found earlier and do not block ruby-dev-builder and setup-ruby.
If not, I will be forced to drop ASAN support in setup-ruby.
For now I will exclude these tests on ASAN to unblock, but it's a bit hacky because there seems to be no predicate to detect ASAN, except `Thread.asan?` with `require '-test-/stack'` (= hacky).
--
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/