| "make update-download -j16" exit with 0. |
| "make update-src -j16" exit with 0. |
| From https://github.com/ruby/ruby |
| c3c7300..feec48a master -> origin/master |
| "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. |
| ================================================================= |
| ==3926674==ERROR: AddressSanitizer: use-after-poison on address 0x7e4fb26e2398 at pc 0x633b942f47bb bp 0x7ffeb200bf80 sp 0x7ffeb200bf78 |
| READ of size 8 at 0x7e4fb26e2398 thread T0 |
| #0 0x633b942f47ba in RB_BUILTIN_TYPE /tmp/ruby/src/trunk_asan/include/ruby/internal/value_type.h:191:30 |
| #1 0x633b942f47ba in gc_update_references_weak_table_i /tmp/ruby/src/trunk_asan/gc/default/default.c:7116:12 |
| #2 0x633b942d20a1 in vm_weak_table_gen_ivar_foreach /tmp/ruby/src/trunk_asan/gc.c:3495:32 |
| #3 0x633b9452a5ff in apply_functor /tmp/ruby/src/trunk_asan/st.c:1633:12 |
| #4 0x633b9452a5ff in st_general_foreach /tmp/ruby/src/trunk_asan/st.c:1543:18 |
| #5 0x633b9452a5ff in rb_st_foreach /tmp/ruby/src/trunk_asan/st.c:1640:12 |
| #6 0x633b942e9345 in rb_gc_vm_weak_table_foreach /tmp/ruby/src/trunk_asan/gc.c:3575:13 |
| #7 0x633b942e9345 in gc_update_references /tmp/ruby/src/trunk_asan/gc/default/default.c:7158:9 |
| #8 0x633b942e9345 in gc_compact_finish /tmp/ruby/src/trunk_asan/gc/default/default.c:3481:5 |
| #9 0x633b942e9345 in gc_sweep_compact /tmp/ruby/src/trunk_asan/gc/default/default.c:5688:5 |
| #10 0x633b942e9345 in gc_sweep /tmp/ruby/src/trunk_asan/gc/default/default.c:4144:9 |
| #11 0x633b942f83a3 in gc_start /tmp/ruby/src/trunk_asan/gc/default/default.c:6472:13 |
| #12 0x633b942f9ad4 in garbage_collect /tmp/ruby/src/trunk_asan/gc/default/default.c:6351:15 |
| #13 0x633b942e3ff0 in newobj_slowpath /tmp/ruby/src/trunk_asan/gc/default/default.c:2479:22 |
| #14 0x633b942e3ff0 in newobj_slowpath_wb_protected /tmp/ruby/src/trunk_asan/gc/default/default.c:2501:12 |
| #15 0x633b942c39c5 in rb_gc_impl_new_obj /tmp/ruby/src/trunk_asan/gc/default/default.c:2539:11 |
| #16 0x633b942c39c5 in newobj_of /tmp/ruby/src/trunk_asan/gc.c:997:17 |
| #17 0x633b942c3e7d in rb_wb_protected_newobj_of /tmp/ruby/src/trunk_asan/gc.c:1035:12 |
| #18 0x633b9453649e in ec_str_alloc_embed /tmp/ruby/src/trunk_asan/string.c:1823:5 |
| #19 0x633b9453649e in rb_ec_str_resurrect /tmp/ruby/src/trunk_asan/string.c:1947:19 |
| #20 0x633b9462701e in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:378:11 |
| #21 0x633b9461dbd7 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2595:22 |
| #22 0x633b9469fc81 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1625:12 |
| #23 0x633b9469fc81 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1639:20 |
| #24 0x633b9464c295 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1676:12 |
| #25 0x633b9464c295 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1684:12 |
| #26 0x633b9464c295 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #27 0x633b9464c295 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #28 0x633b948003a5 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3645:30 |
| #29 0x633b946822b7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3801:11 |
| #30 0x633b94628e66 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5968:15 |
| #31 0x633b94628e66 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #32 0x633b9461dbd7 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2595:22 |
| #33 0x633b9469fc81 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1625:12 |
| #34 0x633b9469fc81 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1639:20 |
| #35 0x633b9464c295 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1676:12 |
| #36 0x633b9464c295 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1684:12 |
| #37 0x633b9464c295 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #38 0x633b9464c295 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #39 0x633b948003a5 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3645:30 |
| #40 0x633b946822b7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3801:11 |
| #41 0x633b94628e66 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5968:15 |
| #42 0x633b94628e66 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #43 0x633b9461df90 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2622:22 |
| #44 0x633b9461df90 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2601:18 |
| #45 0x633b942995da in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #46 0x633b942995da in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #47 0x633b94292b46 in rb_main /tmp/ruby/src/trunk_asan/main.c:40:12 |
| #48 0x633b94292b46 in main /tmp/ruby/src/trunk_asan/main.c:65:12 |
| #49 0x7e4fd802a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #50 0x7e4fd802a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #51 0x633b941b6924 in _start (/tmp/ruby/build/trunk_asan/ruby+0x179924) (BuildId: b45dc673189f664be8fa79f5124b06c06a5cfe3e) |
| Address 0x7e4fb26e2398 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: |
| 0x7e4fb26e2100: f7 f7 f7 00 00 00 00 00 f7 f7 f7 f7 f7 f7 f7 f7 |
| 0x7e4fb26e2180: f7 f7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7e4fb26e2200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7e4fb26e2280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7e4fb26e2300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x7e4fb26e2380: 00 00 00[f7]f7 f7 f7 f7 f7 f7 f7 f7 f7 00 00 00 |
| 0x7e4fb26e2400: 00 00 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 00 00 00 00 |
| 0x7e4fb26e2480: 00 f7 f7 f7 f7 f7 00 00 00 00 00 00 00 00 00 00 |
| 0x7e4fb26e2500: 00 00 00 00 00 f7 f7 f7 f7 f7 00 00 00 00 00 00 |
| 0x7e4fb26e2580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 f7 |
| 0x7e4fb26e2600: f7 f7 f7 f7 f7 f7 f7 f7 00 00 00 00 00 f7 f7 f7 |
| 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 |
| ==3926674==ABORTING |
| /tmp/ruby/src/trunk_asan/test/ruby/test_symbol.rb:128: [BUG] ASAN error |
| ruby 3.5.0dev (2025-01-27T15:28:36Z master feec48ae2b) +PRISM [x86_64-linux] |
| -- Control frame information ----------------------------------------------- |
| c:0017 p:0003 s:0111 e:000109 BLOCK /tmp/ruby/src/trunk_asan/test/ruby/test_symbol.rb:128 |
| c:0016 p:0024 s:0107 e:000106 METHOD /tmp/ruby/src/trunk_asan/tool/lib/envutil.rb:254 |
| c:0015 p:0046 s:0102 e:000101 METHOD /tmp/ruby/src/trunk_asan/tool/lib/envutil.rb:268 |
| c:0014 p:0019 s:0095 e:000094 METHOD /tmp/ruby/src/trunk_asan/test/ruby/test_symbol.rb:127 |
| 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:001ef0 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_symbol.rb:127:in 'test_inspect_under_gc_compact_stress' |
| /tmp/ruby/src/trunk_asan/tool/lib/envutil.rb:268:in 'under_gc_compact_stress' |
| /tmp/ruby/src/trunk_asan/tool/lib/envutil.rb:254:in 'under_gc_stress' |
| /tmp/ruby/src/trunk_asan/test/ruby/test_symbol.rb:128:in 'block in test_inspect_under_gc_compact_stress' |
| -- 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: TestSymbol#test_inspect_under_gc_compact_stress(___interceptor_backtrace+0x79) [0x633b941fcd09] |
| [0x633b94ae46e7] |
| [0x633b94a2a9f1] |
| [0x633b94a2a6cc] |
| [0x633b9427922a] |
| [0x633b94259caf] |
| [0x633b9425cd3d] |
| [0x633b9425da9c] |
| [0x633b942f47bb] |
| [0x633b942d20a2] |
| [0x633b9452a600] |
| [0x633b942e9346] |
| [0x633b942f83a4] |
| [0x633b942f9ad5] |
| [0x633b942e3ff1] |
| [0x633b942c39c6] |
| [0x633b942c3e7e] |
| [0x633b9453649f] |
| [0x633b9462701f] |
| [0x633b9461dbd8] |
| [0x633b9469fc82] |
| [0x633b9464c296] |
| [0x633b948003a6] |
| [0x633b946822b8] |
| [0x633b94628e67] |
| [0x633b9461dbd8] |
| [0x633b9469fc82] |
| [0x633b9464c296] |
| [0x633b948003a6] |
| [0x633b946822b8] |
| [0x633b94628e67] |
| [0x633b9461df91] |
| [0x633b942995db] |
| [0x633b94292b47] |
| [0x7e4fd802a1ca] |
| [0x7e4fd802a28b] |
| [0x633b941b6925] |
| -- Other runtime information ----------------------------------------------- |
| running file: /tmp/ruby/src/trunk_asan/test/ruby/test_symbol.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. |
| Children under /tmp/rubytest.wosgec: |
| * -rw------- 1 35 2025-01-27 15:33:05 +0000 autoload20250127-3926664-xw8v35.rb |
| * drwx------ 2 60 2025-01-27 15:34:58 +0000 d20250127-3926670-pd4hjw/ |
| * -rw-r--r-- 1 5 2025-01-27 15:34:58 +0000 test-script |
| make: *** [uncommon.mk:965: yes-test-all] Error 1 |
| $$$ #<Timeout::Error: execution expired> |
| ### enter analyzing mode for stuck processes |
| $$$ ps jx |
| PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND |
| 1 959 959 959 ? -1 Ss 1000 0:06 SCREEN -d -m dash -c cd build-ruby; BUILD_RUBY_WORKING_DIR=/tmp/ruby sh build-loop.sh trunk_asan --incremental --exclude-steps=test_btest |
| 959 972 972 972 pts/0 972 Ss+ 1000 0:00 dash -c cd build-ruby; BUILD_RUBY_WORKING_DIR=/tmp/ruby sh build-loop.sh trunk_asan --incremental --exclude-steps=test_btest |
| 972 973 972 972 pts/0 972 S+ 1000 0:02 sh build-loop.sh trunk_asan --incremental --exclude-steps=test_btest |
| 1 3070353 3070353 3070353 ? -1 Ss 1000 0:00 /usr/lib/systemd/systemd --user |
| 3070353 3070354 3070353 3070353 ? -1 S 1000 0:00 (sd-pam) |
| 1 3726029 3726029 3726029 ? -1 Ss 1000 0:00 ssh-agent |
| 973 3925132 972 972 pts/0 972 Sl+ 1000 0:00 ruby ./br.rb build_report trunk_asan --incremental --exclude-steps=test_btest |
| 3925132 3925135 972 972 pts/0 972 S+ 1000 0:00 sh -c ruby /home/ko1/build-ruby/build-ruby.rb --target_name=trunk_asan --logfile=/home/ko1/ruby/logs/brlog.trunk_asan.20250127-153211 --root_dir=/tmp/ruby --timeout=600 --no-timeout-error --configure_opts="'CC=clang-17' 'cflags=-fsanitize=address -fno-omit-frame-pointer -DUSE_MN_THREADS=0'" --incremental --exclude-steps=test_btest |
| 3925135 3925136 972 972 pts/0 972 Sl+ 1000 0:00 ruby /home/ko1/build-ruby/build-ruby.rb --target_name=trunk_asan --logfile=/home/ko1/ruby/logs/brlog.trunk_asan.20250127-153211 --root_dir=/tmp/ruby --timeout=600 --no-timeout-error --configure_opts='CC=clang-17' 'cflags=-fsanitize=address -fno-omit-frame-pointer -DUSE_MN_THREADS=0' --incremental --exclude-steps=test_btest |
| 3925136 3926327 972 972 pts/0 972 Z+ 1000 0:00 [sh] <defunct> |
| 1 3926886 972 972 pts/0 972 Sl+ 1000 0:00 /tmp/ruby/src/trunk_asan/tool/lib/test/unit/parallel.rb: TestAutoload#test_autoload_fork |
| 3925136 3961898 972 972 pts/0 972 R+ 1000 0:00 ps jx |
| {1=>[959, 3070353, 3726029, 3926886], 959=>[972], 972=>[973], 3070353=>[3070354], 973=>[3925132], 3925132=>[3925135], 3925135=>[3925136], 3925136=>[3926327, 3961898]} |
| $ timeout 60 gdb -p 3926327 -x /home/ko1/build-ruby/gdbscript -batch -quiet 2> /dev/null |
| Could not attach to process. If your uid matches the uid of the target |
| process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try |
| again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf |
| >>> Threads |
| No threads. |
| >>> Machine level backtrace |
| >>> Dump Ruby level backtrace (if possible) |
| $ timeout 60 gdb -p 3961898 -x /home/ko1/build-ruby/gdbscript -batch -quiet 2> /dev/null |
| >>> Threads |
| No threads. |
| >>> Machine level backtrace |
| >>> Dump Ruby level backtrace (if possible) |
| #<Errno::ESRCH: No such process> |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |