| "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 3377496 exit 1 |
| | ================================================================= |
| | ==3377496==ERROR: AddressSanitizer: stack-use-after-return on address 0x7deee4bdcda8 at pc 0x7deee617daac bp 0x7deec57ffd10 sp 0x7deec57ffd08 |
| | READ of size 4 at 0x7deee4bdcda8 thread T4 |
| | #0 0x7deee617daab in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3096:13 |
| | #1 0x5db80efbf95e in asan_thread_start(void*) asan_interceptors.cpp.o |
| | #2 0x7deee689ca93 in start_thread nptl/pthread_create.c:447:8 |
| | #3 0x7deee6929c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| | |
| | Address 0x7deee4bdcda8 is located in stack of thread T0 at offset 1448 in frame |
| | #0 0x7deee615a98f 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: |
| | 0x7deee4bdcb00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdcb80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdcc00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdcc80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdcd00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | =>0x7deee4bdcd80: f5 f5 f5 f5 f5[f5]f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdce00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdce80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdcf00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdcf80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| | 0x7deee4bdd000: 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 0x5db80efa7601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fb1d3afd705caaf30949d99dbf8a49dc8c1ae4e3) |
| | #1 0x7deee617600f in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| | #2 0x7deee615c11d in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:697:17 |
| | #3 0x5db80f00a19f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| | #4 0x7deee615b27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1289:20 |
| | #5 0x7deee6163277 in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:81:12 |
| | #6 0x5db80f3f7b4b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| | #7 0x5db80f3f7b4b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| | #8 0x5db80f3f7b4b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| | #9 0x5db80f3fc5b5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| | #10 0x5db80f3fc5b5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| | #11 0x5db80f3abb75 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| | #12 0x5db80f3abb75 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| | #13 0x5db80f152568 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2187:5 |
| | #14 0x5db80f3e3907 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| | #15 0x5db80f3c9c3c in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| | #16 0x5db80f3c96f4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| | #17 0x5db80f39127c in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| | #18 0x5db80f39127c in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| | #19 0x5db80f380497 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| | #20 0x5db80f00649a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| | #21 0x5db80f00649a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| | #22 0x5db80efffa06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| | #23 0x5db80efffa06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| | #24 0x7deee682a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| | #25 0x7deee682a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| | #26 0x5db80ef237e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fb1d3afd705caaf30949d99dbf8a49dc8c1ae4e3) |
| | |
| | ==3377496==ABORTING |
| make: *** [uncommon.mk:963: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |