| "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/typeprof'... |
| Cloning into '/tmp/ruby/src/trunk_asan/gems/src/debug'... |
| From https://github.com/ruby/typeprof |
| * branch 167263ca3a634b61df0445f1a6b3e259a5d47f94 -> FETCH_HEAD |
| HEAD is now at 167263c Add typeprof.gemspec |
| "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-test-basic TESTS='-j16'" exit with 0. |
| "make yes-test-all TESTOPTS='--stderr-on-failure' TESTS='-j16'" exit with 512. |
| Failed tests: |
| TestSocket_TCPSocket#test_initialize_v6_hostname_resolved_later_and_v6_server_is_not_listening: Test::Unit::AssertionFailedError: assert_separately failed with error message |
| 1) Failure: |
| TestSocket_TCPSocket#test_initialize_v6_hostname_resolved_later_and_v6_server_is_not_listening [/tmp/ruby/src/trunk_asan/test/socket/test_tcp.rb:255]: |
| assert_separately failed with error message |
| pid 3953471 exit 1 |
| | ================================================================= |
| | ==3953471==ERROR: AddressSanitizer: stack-use-after-return on address 0x7300f99dcda8 at pc 0x7300fafcdaac bp 0x7300da5ffd10 sp 0x7300da5ffd08 |
| | READ of size 4 at 0x7300f99dcda8 thread T4 |
| | #0 0x7300fafcdaab in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3096:13 |
| | #1 0x61153645a95e in asan_thread_start(void*) asan_interceptors.cpp.o |
| | #2 0x7300fb69ca93 in start_thread nptl/pthread_create.c:447:8 |
| | #3 0x7300fb729c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| | |
| | Address 0x7300f99dcda8 is located in stack of thread T0 at offset 1448 in frame |
| | #0 0x7300fafaa98f in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1216 |
| | |
| | This frame has 7 object(s): |
| | [32, 36) 'ipv4addr.i' (line 205) |
| | [48, 64) 'ipv6addr.i' (line 206) |
| | [80, 1105) 'hbuf' (line 1220) |
| | [1248, 1280) 'pbuf' (line 1220) |
| | [1312, 1316) 'additional_flags' (line 1221) |
| | [1328, 1512) 'fast_fallback_arg' (line 1258) <== Memory access at offset 1448 is inside this variable |
| | [1584, 1672) 'arg' (line 1294) |
| | HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork |
| | (longjmp and C++ exceptions *are* supported) |
| | SUMMARY: AddressSanitizer: stack-use-after-return /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3096:13 in do_fast_fallback_getaddrinfo |
| | Shadow bytes around the buggy address: |
| | 0x7300f99dcb00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dcb80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dcc00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dcc80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dcd00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | =>0x7300f99dcd80: f5 f5 f5 f5 f5[f5]f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dce00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dce80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dcf00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dcf80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7300f99dd000: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 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 |
| | Thread T4 created by T0 here: |
| | #0 0x611536442601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: d720c655856049f3bec697e06da4bbf47ec0f398) |
| | #1 0x7300fafc600f in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| | #2 0x7300fafac11d in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:697:17 |
| | #3 0x6115364a519f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| | #4 0x7300fafab27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1289:20 |
| | #5 0x7300fafb3277 in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:81:12 |
| | #6 0x611536892b4b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| | #7 0x611536892b4b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| | #8 0x611536892b4b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| | #9 0x6115368975b5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| | #10 0x6115368975b5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| | #11 0x611536846b75 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| | #12 0x611536846b75 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| | #13 0x6115365ed568 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2187:5 |
| | #14 0x61153687e907 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| | #15 0x611536864c3c in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| | #16 0x6115368646f4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| | #17 0x61153682c27c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| | #18 0x61153682c27c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| | #19 0x61153681b497 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| | #20 0x6115364a149a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| | #21 0x6115364a149a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| | #22 0x61153649aa06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| | #23 0x61153649aa06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| | #24 0x7300fb62a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #25 0x7300fb62a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #26 0x6115363be7e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: d720c655856049f3bec697e06da4bbf47ec0f398) |
| | |
| | ==3953471==ABORTING |
| make: *** [uncommon.mk:963: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |