| "git clone --depth 1 https://github.com/ruby/ruby.git trunk_asan" exit with 0. |
| Cloning into 'trunk_asan'... |
| "./autogen.sh" exit with 0. |
| "autoconf" exit with 0. |
| "/tmp/ruby/src/trunk_asan/configure --prefix=/tmp/ruby/install/trunk_asan --disable-install-doc 'CC=clang-17' 'cflags=-fsanitize=address -fno-omit-frame-pointer -DUSE_MN_THREADS=0'" exit with 0. |
| "make update-download -j16" exit with 0. |
| Cloning into '/tmp/ruby/src/trunk_asan/gems/src/power_assert'... |
| Cloning into '/tmp/ruby/src/trunk_asan/gems/src/rbs'... |
| Cloning into '/tmp/ruby/src/trunk_asan/gems/src/typeprof'... |
| From https://github.com/ruby/power_assert |
| * branch 84e85124c5014a139af39161d484156cfe87a9ed -> FETCH_HEAD |
| HEAD is now at 84e8512 Merge pull request #48 from casperisfine/frozen-string-literals |
| From https://github.com/ruby/typeprof |
| * branch b19a6416da3a05d57fadd6ffdadb382b6d236ca5 -> FETCH_HEAD |
| HEAD is now at b19a641 Add support for future `putchilledstring` instruction |
| From https://github.com/ruby/rbs |
| * branch 97e12999b14dc36e374ed30a03fca58af62dfd90 -> FETCH_HEAD |
| HEAD is now at 97e12999 Use `File.open` instead of `IO.sysopen` |
| "make update-src -j16" exit with 0. |
| "make after-update -j16" exit with 0. |
| + cp /tmp/ruby/src/trunk_asan/enc/jis/props.h.blt /tmp/ruby/src/trunk_asan/enc/jis/props.h |
| "make miniruby -j16" exit with 0. |
| "make ruby -j16" exit with 0. |
| "make all -j16" exit with 0. |
| libffi_version: 3.4.6 |
| "make install -j16" exit with 0. |
| "make yes-btest TESTOPTS='-q -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. |
| Failed tests: |
| TestRubyOptions#test_free_at_exit_env_var: Test::Unit::AssertionFailedError: pid 2033817 exit 1 |
| 1) Failure: |
| TestRubyOptions#test_free_at_exit_env_var [/tmp/ruby/src/trunk_asan/test/ruby/test_rubyoptions.rb:1292]: |
| pid 2056284 exit 1 |
| | /tmp/ruby/build/trunk_asan/ruby: warning: Free at exit is experimental and may be unstable |
| | ================================================================= |
| | ==2056284==ERROR: AddressSanitizer: use-after-poison on address 0x7fe026140010 at pc 0x5babd79decc7 bp 0x7fff8c76f560 sp 0x7fff8c76f558 |
| | READ of size 8 at 0x7fe026140010 thread T0 |
| | #0 0x5babd79decc6 in RB_BUILTIN_TYPE /tmp/ruby/src/trunk_asan/include/ruby/internal/value_type.h:191:30 |
| | #1 0x5babd79decc6 in rb_gc_impl_shutdown_free_objects /tmp/ruby/src/trunk_asan/gc_impl.c:3208:17 |
| | #2 0x5babd7d4a62e in ruby_vm_destruct /tmp/ruby/src/trunk_asan/vm.c:3133:17 |
| | #3 0x5babd79a362f in rb_ec_cleanup /tmp/ruby/src/trunk_asan/eval.c:263:5 |
| | #4 0x5babd79a40f9 in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:12 |
| | #5 0x5babd799d5c6 in rb_main /tmp/ruby/src/trunk_asan/main.c:46:12 |
| | #6 0x5babd799d5c6 in main /tmp/ruby/src/trunk_asan/main.c:65:12 |
| | #7 0x7fe04622a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #8 0x7fe04622a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #9 0x5babd78c13a4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1733a4) (BuildId: 1559c51d32b569f4b3eba6af11d7c86f7ce4b412) |
| | |
| | 0x7fe026140010 is located 6120 bytes after 131112-byte region [0x7fe02611e800,0x7fe02613e828) |
| | freed by thread T0 here: |
| | #0 0x5babd795f5fa in free (/tmp/ruby/build/trunk_asan/ruby+0x2115fa) (BuildId: 1559c51d32b569f4b3eba6af11d7c86f7ce4b412) |
| | #1 0x5babd79e9d7b in rb_gc_impl_free /tmp/ruby/src/trunk_asan/gc_impl.c:8516:9 |
| | #2 0x5babd7ab5a1f in node_buffer_list_free /tmp/ruby/src/trunk_asan/node.c:123:9 |
| | #3 0x5babd7ab5a1f in rb_node_buffer_free /tmp/ruby/src/trunk_asan/node.c:221:5 |
| | #4 0x5babd7ab5a1f in rb_ast_dispose /tmp/ruby/src/trunk_asan/node.c:420:9 |
| | #5 0x5babd7a91fbb in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:774:13 |
| | #6 0x5babd7a8d086 in require_internal /tmp/ruby/src/trunk_asan/load.c:1287:21 |
| | #7 0x5babd7a8b33a in rb_require_string_internal /tmp/ruby/src/trunk_asan/load.c:1386:18 |
| | #8 0x5babd7a8b33a in rb_f_require_relative /tmp/ruby/src/trunk_asan/load.c:1041:12 |
| | #9 0x5babd7d68fc7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3780:11 |
| | #10 0x5babd7d1965c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5948:15 |
| | #11 0x5babd7d1965c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| | #12 0x5babd7d08357 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2567:22 |
| | #13 0x5babd7a92092 in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:781:5 |
| | #14 0x5babd7a8d086 in require_internal /tmp/ruby/src/trunk_asan/load.c:1287:21 |
| | #15 0x5babd7a8b33a in rb_require_string_internal /tmp/ruby/src/trunk_asan/load.c:1386:18 |
| | #16 0x5babd7a8b33a in rb_f_require_relative /tmp/ruby/src/trunk_asan/load.c:1041:12 |
| | #17 0x5babd7d68fc7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3780:11 |
| | #18 0x5babd7d1965c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5948:15 |
| | #19 0x5babd7d1965c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| | #20 0x5babd7d08357 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2567:22 |
| | #21 0x5babd7a92092 in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:781:5 |
| | #22 0x5babd7a8d086 in require_internal /tmp/ruby/src/trunk_asan/load.c:1287:21 |
| | #23 0x5babd7a8af6f in rb_require_string_internal /tmp/ruby/src/trunk_asan/load.c:1386:18 |
| | #24 0x5babd7a8af6f in rb_require_string /tmp/ruby/src/trunk_asan/load.c:1379:12 |
| | #25 0x5babd7a8af6f in rb_f_require /tmp/ruby/src/trunk_asan/load.c:1021:12 |
| | #26 0x5babd7d68fc7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3780:11 |
| | #27 0x5babd7d513dc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4759:16 |
| | #28 0x5babd7d56f54 in vm_call_alias /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4168:12 |
| | #29 0x5babd7d1965c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5948:15 |
| | #30 0x5babd7d1965c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| | #31 0x5babd7d08357 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2567:22 |
| | #32 0x5babd7be8c80 in ruby_init_prelude /tmp/ruby/src/trunk_asan/ruby.c:1754:5 |
| | #33 0x5babd7be8c80 in ruby_opt_init /tmp/ruby/src/trunk_asan/ruby.c:1820:5 |
| | #34 0x5babd7be41b0 in process_script /tmp/ruby/src/trunk_asan/ruby.c:2095:9 |
| | #35 0x5babd7be41b0 in process_options /tmp/ruby/src/trunk_asan/ruby.c:2477:21 |
| | #36 0x5babd7be41b0 in ruby_process_options /tmp/ruby/src/trunk_asan/ruby.c:3104:12 |
| | #37 0x5babd79a1209 in ruby_options /tmp/ruby/src/trunk_asan/eval.c:117:16 |
| | #38 0x5babd799d5be in rb_main /tmp/ruby/src/trunk_asan/main.c:46:26 |
| | #39 0x5babd799d5be in main /tmp/ruby/src/trunk_asan/main.c:65:12 |
| | #40 0x7fe04622a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #41 0x7fe04622a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #42 0x5babd78c13a4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1733a4) (BuildId: 1559c51d32b569f4b3eba6af11d7c86f7ce4b412) |
| | |
| | previously allocated by thread T0 here: |
| | #0 0x5babd795f8a2 in malloc (/tmp/ruby/build/trunk_asan/ruby+0x2118a2) (BuildId: 1559c51d32b569f4b3eba6af11d7c86f7ce4b412) |
| | #1 0x5babd79ea21c in rb_gc_impl_malloc /tmp/ruby/src/trunk_asan/gc_impl.c:8531:5 |
| | #2 0x5babd7ab4e51 in ast_newnode_in_bucket /tmp/ruby/src/trunk_asan/node.c:245:15 |
| | #3 0x5babd7ab4e51 in rb_ast_newnode /tmp/ruby/src/trunk_asan/node.c:263:12 |
| | #4 0x5babd8140fa8 in node_new_internal /tmp/ruby/build/trunk_asan/parse.y:11309:15 |
| | #5 0x5babd8140fa8 in node_newnode /tmp/ruby/build/trunk_asan/parse.y:11326:15 |
| | #6 0x5babd8140fa8 in rb_node_vcall_new /tmp/ruby/build/trunk_asan/parse.y:12159:26 |
| | #7 0x5babd80fcf99 in gettable /tmp/ruby/build/trunk_asan/parse.y:13023:16 |
| | #8 0x5babd80ce15a in ruby_yyparse /tmp/ruby/build/trunk_asan/parse.y:6288:46 |
| | #9 0x5babd810d856 in yycompile0 /tmp/ruby/build/trunk_asan/parse.y:7539:9 |
| | #10 0x5babd7d9785a in rb_suppress_tracing /tmp/ruby/src/trunk_asan/vm_trace.c:487:18 |
| | #11 0x5babd8104327 in yycompile /tmp/ruby/build/trunk_asan/parse.y:7596:5 |
| | #12 0x5babd8104327 in rb_parser_compile /tmp/ruby/build/trunk_asan/parse.y:7636:12 |
| | #13 0x5babd7bf3f88 in parser_compile /tmp/ruby/src/trunk_asan/ruby_parser.c:659:21 |
| | #14 0x5babd7bf2086 in parser_compile_file_path /tmp/ruby/src/trunk_asan/ruby_parser.c:733:12 |
| | #15 0x5babd7bf2086 in rb_parser_compile_file_path /tmp/ruby/src/trunk_asan/ruby_parser.c:783:27 |
| | #16 0x5babd7be79bd in load_file_internal /tmp/ruby/src/trunk_asan/ruby.c:2712:17 |
| | #17 0x5babd79a7e86 in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1059:18 |
| | #18 0x5babd7be1740 in load_file /tmp/ruby/src/trunk_asan/ruby.c:2848:12 |
| | #19 0x5babd7be1740 in rb_parser_load_file /tmp/ruby/src/trunk_asan/ruby.c:2874:12 |
| | #20 0x5babd7a91f24 in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:769:25 |
| | #21 0x5babd7a8d086 in require_internal /tmp/ruby/src/trunk_asan/load.c:1287:21 |
| | #22 0x5babd7a8b33a in rb_require_string_internal /tmp/ruby/src/trunk_asan/load.c:1386:18 |
| | #23 0x5babd7a8b33a in rb_f_require_relative /tmp/ruby/src/trunk_asan/load.c:1041:12 |
| | #24 0x5babd7d68fc7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3780:11 |
| | #25 0x5babd7d1965c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5948:15 |
| | #26 0x5babd7d1965c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| | #27 0x5babd7d08357 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2567:22 |
| | #28 0x5babd7a92092 in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:781:5 |
| | #29 0x5babd7a8d086 in require_internal /tmp/ruby/src/trunk_asan/load.c:1287:21 |
| | #30 0x5babd7a8b33a in rb_require_string_internal /tmp/ruby/src/trunk_asan/load.c:1386:18 |
| | #31 0x5babd7a8b33a in rb_f_require_relative /tmp/ruby/src/trunk_asan/load.c:1041:12 |
| | #32 0x5babd7d68fc7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3780:11 |
| | #33 0x5babd7d1965c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5948:15 |
| | #34 0x5babd7d1965c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| | #35 0x5babd7d08357 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2567:22 |
| | #36 0x5babd7a92092 in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:781:5 |
| | #37 0x5babd7a8d086 in require_internal /tmp/ruby/src/trunk_asan/load.c:1287:21 |
| | #38 0x5babd7a8af6f in rb_require_string_internal /tmp/ruby/src/trunk_asan/load.c:1386:18 |
| | #39 0x5babd7a8af6f in rb_require_string /tmp/ruby/src/trunk_asan/load.c:1379:12 |
| | #40 0x5babd7a8af6f in rb_f_require /tmp/ruby/src/trunk_asan/load.c:1021:12 |
| | #41 0x5babd7d68fc7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3780:11 |
| | |
| | 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: |
| | 0x7fe02613fd80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| | 0x7fe02613fe00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| | 0x7fe02613fe80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| | 0x7fe02613ff00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| | 0x7fe02613ff80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| | =>0x7fe026140000: 00 00[f7]00 00 00 00 00 00 00 00 00 00 00 00 00 |
| | 0x7fe026140080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| | 0x7fe026140100: 00 00 00 00 00 00 00 00 00 00 f7 00 00 00 00 00 |
| | 0x7fe026140180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| | 0x7fe026140200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| | 0x7fe026140280: 00 00 f7 00 00 00 00 00 00 00 00 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 |
| | ==2056284==ABORTING |
| make: *** [uncommon.mk:965: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |