| "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 4117102 exit 1 |
| | ================================================================= |
| | ==4117102==ERROR: AddressSanitizer: stack-use-after-return on address 0x7d0a319dd5a8 at pc 0x7d0a3315daac bp 0x7d0a125ffd10 sp 0x7d0a125ffd08 |
| | READ of size 4 at 0x7d0a319dd5a8 thread T4 |
| | #0 0x7d0a3315daab in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3096:13 |
| | #1 0x5e38d1c2595e in asan_thread_start(void*) asan_interceptors.cpp.o |
| | #2 0x7d0a3369ca93 in start_thread nptl/pthread_create.c:447:8 |
| | #3 0x7d0a33729c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| | |
| | Address 0x7d0a319dd5a8 is located in stack of thread T0 at offset 1448 in frame |
| | #0 0x7d0a3313a98f 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: |
| | 0x7d0a319dd300: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd380: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd400: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd480: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd500: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | =>0x7d0a319dd580: f5 f5 f5 f5 f5[f5]f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd600: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd680: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd700: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd780: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7d0a319dd800: 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 0x5e38d1c0d601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: 6e4b1da55271dd97bdad01ccc920faf134b422c4) |
| | #1 0x7d0a3315600f in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| | #2 0x7d0a3313c11d in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:697:17 |
| | #3 0x5e38d1c7019f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| | #4 0x7d0a3313b27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1289:20 |
| | #5 0x7d0a33143277 in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:81:12 |
| | #6 0x5e38d205db4b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| | #7 0x5e38d205db4b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| | #8 0x5e38d205db4b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| | #9 0x5e38d20625b5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| | #10 0x5e38d20625b5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| | #11 0x5e38d2011b75 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| | #12 0x5e38d2011b75 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| | #13 0x5e38d1db8568 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2187:5 |
| | #14 0x5e38d2049907 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| | #15 0x5e38d202fc3c in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| | #16 0x5e38d202f6f4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| | #17 0x5e38d1ff727c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| | #18 0x5e38d1ff727c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| | #19 0x5e38d1fe6497 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| | #20 0x5e38d1c6c49a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| | #21 0x5e38d1c6c49a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| | #22 0x5e38d1c65a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| | #23 0x5e38d1c65a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| | #24 0x7d0a3362a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #25 0x7d0a3362a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #26 0x5e38d1b897e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: 6e4b1da55271dd97bdad01ccc920faf134b422c4) |
| | |
| | ==4117102==ABORTING |
| make: *** [uncommon.mk:963: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |