| "make update-download -j16" exit with 0. |
| "make update-src -j16" exit with 0. |
| "make after-update -j16" exit with 0. |
| "make miniruby -j16" exit with 0. |
| "make ruby -j16" exit with 0. |
| "make all -j16" exit with 0. |
| "make install -j16" exit with 0. |
| "make yes-test-basic TESTS='-j16'" exit with 0. |
| "make yes-test-all TESTOPTS='--stderr-on-failure' TESTS='-j16'" exit with 512. |
| ================================================================= |
| ==81660==ERROR: AddressSanitizer: use-after-poison on address 0x7829238613b0 at pc 0x5bf45c0a27bb bp 0x7ffe9ce6b4a0 sp 0x7ffe9ce6b498 |
| READ of size 8 at 0x7829238613b0 thread T0 |
| #0 0x5bf45c0a27ba in RB_BUILTIN_TYPE /tmp/ruby/src/trunk_asan/include/ruby/internal/value_type.h:191:30 |
| #1 0x5bf45c0a27ba in gc_update_references_weak_table_i /tmp/ruby/src/trunk_asan/gc/default/default.c:7116:12 |
| #2 0x5bf45c0800a1 in vm_weak_table_gen_ivar_foreach /tmp/ruby/src/trunk_asan/gc.c:3495:32 |
| #3 0x5bf45c2d85ff in apply_functor /tmp/ruby/src/trunk_asan/st.c:1633:12 |
| #4 0x5bf45c2d85ff in st_general_foreach /tmp/ruby/src/trunk_asan/st.c:1543:18 |
| #5 0x5bf45c2d85ff in rb_st_foreach /tmp/ruby/src/trunk_asan/st.c:1640:12 |
| #6 0x5bf45c097345 in rb_gc_vm_weak_table_foreach /tmp/ruby/src/trunk_asan/gc.c:3575:13 |
| #7 0x5bf45c097345 in gc_update_references /tmp/ruby/src/trunk_asan/gc/default/default.c:7158:9 |
| #8 0x5bf45c097345 in gc_compact_finish /tmp/ruby/src/trunk_asan/gc/default/default.c:3481:5 |
| #9 0x5bf45c097345 in gc_sweep_compact /tmp/ruby/src/trunk_asan/gc/default/default.c:5688:5 |
| #10 0x5bf45c097345 in gc_sweep /tmp/ruby/src/trunk_asan/gc/default/default.c:4144:9 |
| #11 0x5bf45c0a63a3 in gc_start /tmp/ruby/src/trunk_asan/gc/default/default.c:6472:13 |
| #12 0x5bf45c0878e6 in garbage_collect /tmp/ruby/src/trunk_asan/gc/default/default.c:6351:15 |
| #13 0x5bf45c0878e6 in rb_gc_impl_start /tmp/ruby/src/trunk_asan/gc/default/default.c:6805:5 |
| #14 0x5bf45c0b2858 in gc_compact /tmp/ruby/src/trunk_asan/gc/default/default.c:9095:5 |
| #15 0x5bf45c4302b7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3801:11 |
| #16 0x5bf45c41670c in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4779:16 |
| #17 0x5bf45c4161c4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #18 0x5bf45c3dd896 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5968:15 |
| #19 0x5bf45c3dd896 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #20 0x5bf45c3cbbd7 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2595:22 |
| #21 0x5bf45c44dc81 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1625:12 |
| #22 0x5bf45c44dc81 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1639:20 |
| #23 0x5bf45c3fa295 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1676:12 |
| #24 0x5bf45c3fa295 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1684:12 |
| #25 0x5bf45c3fa295 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #26 0x5bf45c3fa295 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #27 0x5bf45c5ae3a5 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3645:30 |
| #28 0x5bf45c4302b7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3801:11 |
| #29 0x5bf45c3d6e66 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5968:15 |
| #30 0x5bf45c3d6e66 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #31 0x5bf45c3cbbd7 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2595:22 |
| #32 0x5bf45c44dc81 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1625:12 |
| #33 0x5bf45c44dc81 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1639:20 |
| #34 0x5bf45c3fa295 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1676:12 |
| #35 0x5bf45c3fa295 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1684:12 |
| #36 0x5bf45c3fa295 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #37 0x5bf45c3fa295 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #38 0x5bf45c5ae3a5 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3645:30 |
| #39 0x5bf45c4302b7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3801:11 |
| #40 0x5bf45c3d6e66 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5968:15 |
| #41 0x5bf45c3d6e66 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #42 0x5bf45c3cbf90 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2622:22 |
| #43 0x5bf45c3cbf90 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2601:18 |
| #44 0x5bf45c0475da in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #45 0x5bf45c0475da in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #46 0x5bf45c040b46 in rb_main /tmp/ruby/src/trunk_asan/main.c:40:12 |
| #47 0x5bf45c040b46 in main /tmp/ruby/src/trunk_asan/main.c:65:12 |
| #48 0x78293fa2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #49 0x78293fa2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #50 0x5bf45bf64924 in _start (/tmp/ruby/build/trunk_asan/ruby+0x179924) (BuildId: b45dc673189f664be8fa79f5124b06c06a5cfe3e) |
| Address 0x7829238613b0 is a wild pointer inside of access range of size 0x000000000008. |
| SUMMARY: AddressSanitizer: use-after-poison /tmp/ruby/src/trunk_asan/include/ruby/internal/value_type.h:191:30 in RB_BUILTIN_TYPE |
| Shadow bytes around the buggy address: |
| 0x782923861100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x782923861380: 00 00 00 00 00 00[f7]f7 f7 f7 f7 00 00 00 00 00 |
| 0x782923861400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x782923861600: 00 00 00 00 00 00 f7 f7 f7 f7 f7 00 00 00 00 00 |
| Shadow byte legend (one shadow byte represents 8 application bytes): |
| Addressable: 00 |
| Partially addressable: 01 02 03 04 05 06 07 |
| Heap left redzone: fa |
| Freed heap region: fd |
| Stack left redzone: f1 |
| Stack mid redzone: f2 |
| Stack right redzone: f3 |
| Stack after return: f5 |
| Stack use after scope: f8 |
| Global redzone: f9 |
| Global init order: f6 |
| Poisoned by user: f7 |
| Container overflow: fc |
| Array cookie: ac |
| Intra object redzone: bb |
| ASan internal: fe |
| Left alloca redzone: ca |
| Right alloca redzone: cb |
| ==81660==ABORTING |
| /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb:202: [BUG] ASAN error |
| ruby 3.5.0dev (2025-01-27T15:28:36Z master feec48ae2b) +PRISM [x86_64-linux] |
| -- Control frame information ----------------------------------------------- |
| c:0017 p:---- s:0109 e:000108 CFUNC :compact |
| c:0016 p:0004 s:0105 e:000104 BLOCK /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb:202 |
| c:0015 p:0024 s:0101 e:000100 METHOD <internal:numeric>:257 |
| c:0014 p:0025 s:0096 e:000095 METHOD /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb:201 |
| c:0013 p:0037 s:0091 e:000090 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit/testcase.rb:202 |
| c:0012 p:0052 s:0085 e:000084 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit/testcase.rb:170 |
| c:0011 p:0083 s:0076 e:000075 BLOCK /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1671 [FINISH] |
| c:0010 p:---- s:0069 e:000068 CFUNC :map |
| c:0009 p:0103 s:0065 e:000064 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1658 |
| c:0008 p:0035 s:0053 e:000052 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1362 |
| c:0007 p:0069 s:0046 E:0016a0 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:52 |
| c:0006 p:0007 s:0030 e:000029 BLOCK /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:24 [FINISH] |
| c:0005 p:---- s:0026 e:000025 CFUNC :map |
| c:0004 p:0005 s:0022 e:000021 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:23 |
| c:0003 p:0210 s:0016 e:000015 METHOD /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:122 |
| c:0002 p:0051 s:0006 e:000005 EVAL /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:220 [FINISH] |
| c:0001 p:0000 s:0003 E:001650 DUMMY [FINISH] |
| -- Ruby level backtrace information ---------------------------------------- |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:220:in '<main>' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:122:in 'run' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:23:in '_run_suites' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:23:in 'map' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:24:in 'block in _run_suites' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb:52:in '_run_suite' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1362:in '_run_suite' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1658:in '_run_suite' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1658:in 'map' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit.rb:1671:in 'block in _run_suite' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/testcase.rb:170:in 'run' |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/testcase.rb:202:in 'run_test' |
| /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb:201:in 'test_compaction' |
| <internal:numeric>:257:in 'times' |
| /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb:202:in 'block in test_compaction' |
| /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb:202:in 'compact' |
| -- Threading information --------------------------------------------------- |
| Total ractor count: 1 |
| Ruby thread count for this ractor: 4 |
| -- C level backtrace information ------------------------------------------- |
| /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb: TestWeakMap#test_compaction(___interceptor_backtrace+0x79) [0x5bf45bfaad09] |
| [0x5bf45c8926e7] |
| [0x5bf45c7d89f1] |
| [0x5bf45c7d86cc] |
| [0x5bf45c02722a] |
| [0x5bf45c007caf] |
| [0x5bf45c00ad3d] |
| [0x5bf45c00ba9c] |
| [0x5bf45c0a27bb] |
| [0x5bf45c0800a2] |
| [0x5bf45c2d8600] |
| [0x5bf45c097346] |
| [0x5bf45c0a63a4] |
| [0x5bf45c0878e7] |
| [0x5bf45c0b2859] |
| [0x5bf45c4302b8] |
| [0x5bf45c41670d] |
| [0x5bf45c4161c5] |
| [0x5bf45c3dd897] |
| [0x5bf45c3cbbd8] |
| [0x5bf45c44dc82] |
| [0x5bf45c3fa296] |
| [0x5bf45c5ae3a6] |
| [0x5bf45c4302b8] |
| [0x5bf45c3d6e67] |
| [0x5bf45c3cbbd8] |
| [0x5bf45c44dc82] |
| [0x5bf45c3fa296] |
| [0x5bf45c5ae3a6] |
| [0x5bf45c4302b8] |
| [0x5bf45c3d6e67] |
| [0x5bf45c3cbf91] |
| [0x5bf45c0475db] |
| [0x5bf45c040b47] |
| [0x78293fa2a1ca] |
| [0x78293fa2a28b] |
| [0x5bf45bf64925] |
| -- Other runtime information ----------------------------------------------- |
| running file: /tmp/ruby/src/trunk_asan/test/ruby/test_weakmap.rb |
| A test worker crashed. It might be an interpreter bug or |
| a bug in test/unit/parallel.rb. Try again without the -j |
| option. |
| make: *** [uncommon.mk:965: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |