| "make update-download -j16" exit with 0. |
| "make update-src -j16" exit with 0. |
| "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. |
| 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 3900516 exit 1 |
| | ================================================================= |
| | ==3900516==ERROR: AddressSanitizer: stack-use-after-return on address 0x733bb1bdcda8 at pc 0x733bb2f8daac bp 0x733b927ffd10 sp 0x733b927ffd08 |
| | READ of size 4 at 0x733bb1bdcda8 thread T4 |
| | #0 0x733bb2f8daab in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3096:13 |
| | #1 0x581e4dcf995e in asan_thread_start(void*) asan_interceptors.cpp.o |
| | #2 0x733bb389ca93 in start_thread nptl/pthread_create.c:447:8 |
| | #3 0x733bb3929c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| | |
| | Address 0x733bb1bdcda8 is located in stack of thread T0 at offset 1448 in frame |
| | #0 0x733bb2f6a98f 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: |
| | 0x733bb1bdcb00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdcb80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdcc00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdcc80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdcd00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | =>0x733bb1bdcd80: f5 f5 f5 f5 f5[f5]f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdce00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdce80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdcf00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdcf80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x733bb1bdd000: 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 0x581e4dce1601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: 46b16682a6b6671fdac0b800cd2803b5160fe4db) |
| | #1 0x733bb2f8600f in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| | #2 0x733bb2f6c11d in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:697:17 |
| | #3 0x581e4dd4419f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| | #4 0x733bb2f6b27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1289:20 |
| | #5 0x733bb2f73277 in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:81:12 |
| | #6 0x581e4e131b4b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| | #7 0x581e4e131b4b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| | #8 0x581e4e131b4b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| | #9 0x581e4e1365b5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| | #10 0x581e4e1365b5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| | #11 0x581e4e0e5b75 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| | #12 0x581e4e0e5b75 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| | #13 0x581e4de8c568 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2187:5 |
| | #14 0x581e4e11d907 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| | #15 0x581e4e103c3c in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| | #16 0x581e4e1036f4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| | #17 0x581e4e0cb27c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| | #18 0x581e4e0cb27c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| | #19 0x581e4e0ba497 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| | #20 0x581e4dd4049a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| | #21 0x581e4dd4049a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| | #22 0x581e4dd39a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| | #23 0x581e4dd39a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| | #24 0x733bb382a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #25 0x733bb382a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #26 0x581e4dc5d7e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: 46b16682a6b6671fdac0b800cd2803b5160fe4db) |
| | |
| | ==3900516==ABORTING |
| make: *** [uncommon.mk:963: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |