| "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 4007838 exit 1 |
| | ================================================================= |
| | ==4007838==ERROR: AddressSanitizer: stack-use-after-return on address 0x784771fdcda8 at pc 0x78477355daac bp 0x784752bffd10 sp 0x784752bffd08 |
| | READ of size 4 at 0x784771fdcda8 thread T4 |
| | #0 0x78477355daab in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3096:13 |
| | #1 0x5c5e4f3d995e in asan_thread_start(void*) asan_interceptors.cpp.o |
| | #2 0x784773c9ca93 in start_thread nptl/pthread_create.c:447:8 |
| | #3 0x784773d29c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| | |
| | Address 0x784771fdcda8 is located in stack of thread T0 at offset 1448 in frame |
| | #0 0x78477353a98f 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: |
| | 0x784771fdcb00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdcb80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdcc00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdcc80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdcd00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | =>0x784771fdcd80: f5 f5 f5 f5 f5[f5]f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdce00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdce80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdcf00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdcf80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x784771fdd000: 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 0x5c5e4f3c1601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: d720c655856049f3bec697e06da4bbf47ec0f398) |
| | #1 0x78477355600f in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| | #2 0x78477353c11d in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:697:17 |
| | #3 0x5c5e4f42419f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| | #4 0x78477353b27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1289:20 |
| | #5 0x784773543277 in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:81:12 |
| | #6 0x5c5e4f811b4b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| | #7 0x5c5e4f811b4b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| | #8 0x5c5e4f811b4b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| | #9 0x5c5e4f8165b5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| | #10 0x5c5e4f8165b5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| | #11 0x5c5e4f7c5b75 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| | #12 0x5c5e4f7c5b75 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| | #13 0x5c5e4f56c568 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2187:5 |
| | #14 0x5c5e4f7fd907 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| | #15 0x5c5e4f7e3c3c in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| | #16 0x5c5e4f7e36f4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| | #17 0x5c5e4f7ab27c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| | #18 0x5c5e4f7ab27c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| | #19 0x5c5e4f79a497 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| | #20 0x5c5e4f42049a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| | #21 0x5c5e4f42049a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| | #22 0x5c5e4f419a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| | #23 0x5c5e4f419a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| | #24 0x784773c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #25 0x784773c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #26 0x5c5e4f33d7e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: d720c655856049f3bec697e06da4bbf47ec0f398) |
| | |
| | ==4007838==ABORTING |
| make: *** [uncommon.mk:963: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |