| "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. |
| ================================================================= |
| ==2793515==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x70e994b09041 at pc 0x5e8424530ded bp 0x70e9a0bffcf0 sp 0x70e9a0bff4b8 |
| READ of size 2 at 0x70e994b09041 thread T3419 |
| #0 0x5e8424530dec in strlen (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x70e9ac9cd8dd in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3105:55 |
| #2 0x5e84245b595e in asan_thread_start(void*) asan_interceptors.cpp.o |
| #3 0x70e9c949ca93 in start_thread nptl/pthread_create.c:447:8 |
| #4 0x70e9c9529c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| Address 0x70e994b09041 is located in stack of thread T3419 at offset 65 in frame |
| #0 0x70e9ac9cd4df in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3056 |
| This frame has 2 object(s): |
| [32, 48) 'sleep_ts' (line 3076) |
| [64, 65) 'notification' (line 3102) <== Memory access at offset 65 overflows this variable |
| 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) |
| Thread T3419 created by T0 here: |
| #0 0x5e842459d601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x70e9ac9c60bf in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| #2 0x70e9ac9ac15c in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:698:17 |
| #3 0x5e842460019f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| #4 0x70e9ac9ab27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1290:20 |
| #5 0x70e9ac9b331d in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:84:12 |
| #6 0x5e84249edf8b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #7 0x5e84249edf8b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #8 0x5e84249edf8b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #9 0x5e84249f29f5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #10 0x5e84249f29f5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #11 0x5e84249a1cf5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #12 0x5e84249a1cf5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #13 0x5e84247481b8 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2185:5 |
| #14 0x5e84249d9d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #15 0x5e84249bfdfc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| #16 0x5e84249bf8b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #17 0x5e84249873fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #18 0x5e84249873fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #19 0x5e8424976617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #20 0x5e84249f7301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #21 0x5e84249f7301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #22 0x5e84249a3a05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #23 0x5e84249a3a05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #24 0x5e84249a3a05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #25 0x5e84249a3a05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #26 0x5e8424b54d35 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3651:30 |
| #27 0x5e84249d9d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #28 0x5e842497e99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #29 0x5e842497e99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #30 0x5e8424976617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #31 0x5e84249f7301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #32 0x5e84249f7301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #33 0x5e84249a3a05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #34 0x5e84249a3a05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #35 0x5e84249a3a05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #36 0x5e84249a3a05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #37 0x5e8424b54d35 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3651:30 |
| #38 0x5e84249d9d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #39 0x5e842497e99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #40 0x5e842497e99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #41 0x5e84249769d0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2611:22 |
| #42 0x5e84249769d0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2590:18 |
| #43 0x5e84245fc49a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #44 0x5e84245fc49a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #45 0x5e84245f5a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| #46 0x5e84245f5a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #47 0x70e9c942a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #48 0x70e9c942a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #49 0x5e84245197e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| SUMMARY: AddressSanitizer: stack-buffer-overflow (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) in strlen |
| Shadow bytes around the buggy address: |
| 0x70e994b08d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b08e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b08e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b08f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b08f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x70e994b09000: f1 f1 f1 f1 f8 f8 f2 f2[01]f3 f3 f3 00 00 00 00 |
| 0x70e994b09080: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| 0x70e994b09100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b09180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b09200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x70e994b09280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 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 |
| ==2793515==ABORTING |
| running file: /tmp/ruby/src/trunk_asan/test/socket/test_socket.rb |
| A test worker crashed. It might be an interpreter bug or |
| a bug in test/unit/parallel.rb. Try again without the -j |
| option. |
| make: *** [uncommon.mk:963: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 512. |
| ================================================================= |
| ==2802329==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x76bd0ef09041 at pc 0x5b83be76bded bp 0x76bd117ffcf0 sp 0x76bd117ff4b8 |
| READ of size 2 at 0x76bd0ef09041 thread T77 |
| ================================================================= |
| ==2802318==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x703c22d09041 at pc 0x573ea1159ded bp 0x703c23fffcf0 sp 0x703c23fff4b8 |
| READ of size 2 at 0x703c22d09041 thread T60 |
| ================================================================= |
| ==2802315==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x75cbcb109041 at pc 0x5c2f1156cded bp 0x75cbcc3ffcf0 sp 0x75cbcc3ff4b8 |
| READ of size 2 at 0x75cbcb109041 thread T231 |
| ================================================================= |
| ==2802326==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x77d0eaf09041 at pc 0x61398437aded bp 0x77d0ecdffcf0 sp 0x77d0ecdff4b8 |
| READ of size 2 at 0x77d0eaf09041 thread T132 |
| #0 0x5b83be76bdec in strlen (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x76bd1a29d8dd in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3105:55 |
| #2 0x5b83be7f095e in asan_thread_start(void*) asan_interceptors.cpp.o |
| #3 0x76bd39e9ca93 in start_thread nptl/pthread_create.c:447:8 |
| #4 0x76bd39f29c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| Address 0x76bd0ef09041 is located in stack of thread T77 at offset 65 in frame |
| #0 0x76bd1a29d4df in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3056 |
| This frame has 2 object(s): |
| [32, 48) 'sleep_ts' (line 3076) |
| [64, 65) 'notification' (line 3102) <== Memory access at offset 65 overflows this variable |
| 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) |
| Thread T77 created by T0 here: |
| #0 0x573ea1159dec in strlen (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x703c3938d8dd in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3105:55 |
| #2 0x573ea11de95e in asan_thread_start(void*) asan_interceptors.cpp.o |
| #3 0x703c56a9ca93 in start_thread nptl/pthread_create.c:447:8 |
| #4 0x703c56b29c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| Address 0x703c22d09041 is located in stack of thread T60 at offset 65 in frame |
| #0 0x703c3938d4df in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3056 |
| This frame has 2 object(s): |
| [32, 48) 'sleep_ts' (line 3076) |
| [64, 65) 'notification' (line 3102) <== Memory access at offset 65 overflows this variable |
| 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) |
| Thread T60 created by T0 here: |
| #0 0x5b83be7d8601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x76bd1a2960bf in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| #2 0x76bd1a27c15c in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:698:17 |
| #3 0x5b83be83b19f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| #4 0x76bd1a27b27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1290:20 |
| #5 0x76bd1a28331d in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:84:12 |
| #6 0x5b83bec28f8b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #7 0x5b83bec28f8b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #8 0x5b83bec28f8b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #9 0x5b83bec2d9f5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #10 0x5b83bec2d9f5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #11 0x5b83bebdccf5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #12 0x5b83bebdccf5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #13 0x5b83be9831b8 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2185:5 |
| #14 0x5b83be8d2ddc in rb_io_s_open /tmp/ruby/src/trunk_asan/io.c:8126:16 |
| #15 0x5b83bec14d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #16 0x5b83bebfadfc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| #17 0x5b83bebfa8b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #18 0x5b83bebc23fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #19 0x5b83bebc23fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #20 0x5b83bebb1617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #21 0x5b83bec32301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #22 0x5b83bec32301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #23 0x5b83bebe539a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #24 0x5b83bebe539a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #25 0x5b83bec14d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #26 0x5b83bebb999a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #27 0x5b83bebb999a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #28 0x5b83bebb1617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #29 0x5b83bec32301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #30 0x5b83bec32301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #31 0x5b83bebdea05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #32 0x5b83bebdea05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #33 0x5b83bebdea05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #34 0x5b83bebdea05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #35 0x5b83bed9d81d in rb_ary_all_p /tmp/ruby/src/trunk_asan/array.c:7872:24 |
| #36 0x5b83bec14d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #37 0x5b83bebb999a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #38 0x5b83bebb999a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #39 0x5b83bebb1617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #40 0x5b83bec32301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #41 0x5b83bec32301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #42 0x5b83bebdea05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #43 0x5b83bebdea05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #44 0x5b83bebdea05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #45 0x5b83bebdea05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #46 0x5b83bed82fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #47 0x5b83bec14d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #48 0x5b83bebb999a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #49 0x5b83bebb999a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #50 0x5b83bebb1617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #51 0x5b83be93417b in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:789:5 |
| #52 0x5b83be92c2af in rb_load_internal /tmp/ruby/src/trunk_asan/load.c:850:9 |
| #53 0x5b83be931889 in rb_f_load /tmp/ruby/src/trunk_asan/load.c:924:5 |
| #54 0x5b83bec14d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #55 0x5b83bebc23fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #56 0x5b83bebc23fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #57 0x5b83bebb1617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #58 0x5b83bec32301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #59 0x5b83bec32301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #60 0x5b83bebe539a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #61 0x5b83bebe539a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #62 0x5b83bec14d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #63 0x5b83bebb999a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #64 0x5b83bebb999a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #65 0x5b83bebb19d0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2611:22 |
| #66 0x5b83bebb19d0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2590:18 |
| #67 0x5b83be83749a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #68 0x5b83be83749a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #69 0x5b83be830a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| #70 0x5b83be830a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #71 0x76bd39e2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #72 0x76bd39e2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #73 0x5b83be7547e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| SUMMARY: AddressSanitizer: stack-buffer-overflow (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) in strlen |
| Shadow bytes around the buggy address: |
| 0x76bd0ef08d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef08e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef08e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef08f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef08f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x76bd0ef09000: f1 f1 f1 f1 f8 f8 f2 f2[01]f3 f3 f3 00 00 00 00 |
| 0x76bd0ef09080: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| 0x76bd0ef09100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef09180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef09200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x76bd0ef09280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 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 |
| ==2802329==ABORTING |
| #0 0x61398437adec in strlen (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x77d0f7fcd8dd in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3105:55 |
| #2 0x6139843ff95e in asan_thread_start(void*) asan_interceptors.cpp.o |
| #3 0x77d118c9ca93 in start_thread nptl/pthread_create.c:447:8 |
| #4 0x77d118d29c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| Address 0x77d0eaf09041 is located in stack of thread T132 at offset 65 in frame |
| #0 0x5c2f1156cdec in strlen (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x75cbe6d298dd in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3105:55 |
| #2 0x5c2f115f195e in asan_thread_start(void*) asan_interceptors.cpp.o |
| #3 0x75cc0849ca93 in start_thread nptl/pthread_create.c:447:8 |
| #4 0x75cc08529c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| #0 0x77d0f7fcd4df in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3056 |
| This frame has 2 object(s): |
| Address 0x75cbcb109041 is located in stack of thread T231 at offset 65 in frame |
| [32, 48) 'sleep_ts' (line 3076) |
| [64, 65) 'notification' (line 3102) <== Memory access at offset 65 overflows this variable |
| 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) |
| Thread T132 created by T0 here: |
| #0 0x75cbe6d294df in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3056 |
| This frame has 2 object(s): |
| [32, 48) 'sleep_ts' (line 3076) |
| [64, 65) 'notification' (line 3102) <== Memory access at offset 65 overflows this variable |
| 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) |
| Thread T231 created by T0 here: |
| #0 0x573ea11c6601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x703c393860bf in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| #2 0x703c3936c15c in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:698:17 |
| #3 0x573ea122919f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| #4 0x703c3936b27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1290:20 |
| #5 0x703c3937331d in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:84:12 |
| #6 0x573ea1616f8b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #7 0x573ea1616f8b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #8 0x573ea1616f8b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #9 0x573ea161b9f5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #10 0x573ea161b9f5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #11 0x573ea15cacf5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #12 0x573ea15cacf5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #13 0x573ea13711b8 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2185:5 |
| #14 0x573ea12c0ddc in rb_io_s_open /tmp/ruby/src/trunk_asan/io.c:8126:16 |
| #15 0x573ea1602d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #16 0x573ea15e8dfc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| #17 0x573ea15e88b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #18 0x573ea15b03fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #19 0x573ea15b03fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #20 0x573ea159f617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #21 0x573ea1620301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #22 0x573ea1620301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #23 0x573ea15d339a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #24 0x573ea15d339a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #25 0x573ea1602d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #26 0x573ea15a799a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #27 0x573ea15a799a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #28 0x573ea159f617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #29 0x573ea1620301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #30 0x573ea1620301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #31 0x573ea15cca05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #32 0x573ea15cca05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #33 0x573ea15cca05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #34 0x573ea15cca05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #35 0x573ea178b81d in rb_ary_all_p /tmp/ruby/src/trunk_asan/array.c:7872:24 |
| #36 0x573ea1602d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #37 0x573ea15a799a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #38 0x573ea15a799a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #39 0x573ea159f617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #40 0x573ea1620301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #41 0x573ea1620301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #42 0x573ea15cca05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #43 0x573ea15cca05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #44 0x573ea15cca05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #45 0x573ea15cca05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #46 0x573ea1770fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #47 0x573ea1602d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #48 0x573ea15a799a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #49 0x573ea15a799a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #50 0x573ea159f617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #51 0x573ea132217b in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:789:5 |
| #52 0x573ea131a2af in rb_load_internal /tmp/ruby/src/trunk_asan/load.c:850:9 |
| #53 0x573ea131f889 in rb_f_load /tmp/ruby/src/trunk_asan/load.c:924:5 |
| #54 0x573ea1602d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #55 0x573ea15b03fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #56 0x573ea15b03fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #57 0x573ea159f617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #58 0x573ea1620301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #59 0x573ea1620301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #60 0x573ea15d339a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #61 0x573ea15d339a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #62 0x573ea1602d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #63 0x573ea15a799a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #64 0x573ea15a799a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #65 0x573ea159f9d0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2611:22 |
| #66 0x573ea159f9d0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2590:18 |
| #67 0x573ea122549a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #68 0x573ea122549a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #69 0x573ea121ea06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| #70 0x573ea121ea06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #71 0x703c56a2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #72 0x703c56a2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #73 0x573ea11427e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| SUMMARY: AddressSanitizer: stack-buffer-overflow (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) in strlen |
| Shadow bytes around the buggy address: |
| 0x703c22d08d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d08e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d08e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d08f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d08f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x703c22d09000: f1 f1 f1 f1 f8 f8 f2 f2[01]f3 f3 f3 00 00 00 00 |
| 0x703c22d09080: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| 0x703c22d09100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d09180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d09200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x703c22d09280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 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 |
| ==2802318==ABORTING |
| ================================================================= |
| ==2802325==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7506e9109041 at pc 0x64fe7cd60ded bp 0x7506ea3ffcf0 sp 0x7506ea3ff4b8 |
| READ of size 2 at 0x7506e9109041 thread T35 |
| #0 0x5c2f115d9601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x75cbe6d220bf in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| #2 0x75cbe6d0815c in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:698:17 |
| #3 0x5c2f1163c19f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| #4 0x75cbe6d0727d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1290:20 |
| #5 0x75cbe6d0f31d in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:84:12 |
| #6 0x5c2f11a29f8b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #7 0x5c2f11a29f8b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #8 0x5c2f11a29f8b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #9 0x5c2f11a2e9f5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #10 0x5c2f11a2e9f5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #11 0x5c2f119ddcf5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #12 0x5c2f119ddcf5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #13 0x5c2f117841b8 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2185:5 |
| #14 0x5c2f116d3ddc in rb_io_s_open /tmp/ruby/src/trunk_asan/io.c:8126:16 |
| #15 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #16 0x5c2f119fbdfc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| #17 0x5c2f119fb8b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #18 0x5c2f119c33fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #19 0x5c2f119c33fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #20 0x5c2f119b2617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #21 0x5c2f11a33301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #22 0x5c2f11a33301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #23 0x5c2f119e639a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #24 0x5c2f119e639a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #25 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #26 0x5c2f119ba99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #27 0x5c2f119ba99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #28 0x5c2f119b2617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #29 0x5c2f11a33301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #30 0x5c2f11a33301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #31 0x5c2f119dfa05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #32 0x5c2f119dfa05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #33 0x5c2f119dfa05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #34 0x5c2f119dfa05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #35 0x5c2f11b9e81d in rb_ary_all_p /tmp/ruby/src/trunk_asan/array.c:7872:24 |
| #36 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #37 0x5c2f119ba99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #38 0x5c2f119ba99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #39 0x5c2f119b2617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #40 0x5c2f11a33301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #41 0x5c2f11a33301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #42 0x5c2f119dfa05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #43 0x5c2f119dfa05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #44 0x5c2f119dfa05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #45 0x5c2f119dfa05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #46 0x5c2f11b83fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #47 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #48 0x5c2f119ba99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #49 0x5c2f119ba99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #50 0x5c2f119b2617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #51 0x5c2f11a33301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #52 0x5c2f11a33301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #53 0x5c2f119dfa05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #54 0x5c2f119dfa05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #55 0x5c2f119dfa05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #56 0x5c2f119dfa05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #57 0x5c2f11b83fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #58 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #59 0x5c2f119ba99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #60 0x5c2f119ba99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #61 0x5c2f119b2617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #62 0x5c2f1173517b in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:789:5 |
| #63 0x5c2f1172d2af in rb_load_internal /tmp/ruby/src/trunk_asan/load.c:850:9 |
| #64 0x5c2f11732889 in rb_f_load /tmp/ruby/src/trunk_asan/load.c:924:5 |
| #65 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #66 0x5c2f119c33fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #67 0x5c2f119c33fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #68 0x5c2f119b2617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #69 0x5c2f11a33301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #70 0x5c2f11a33301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #71 0x5c2f119e639a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #72 0x5c2f119e639a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #73 0x5c2f11a15d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #74 0x5c2f119ba99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #75 0x5c2f119ba99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #76 0x5c2f119b29d0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2611:22 |
| #77 0x5c2f119b29d0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2590:18 |
| #78 0x5c2f1163849a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #79 0x5c2f1163849a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #80 0x5c2f11631a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| #81 0x5c2f11631a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #82 0x75cc0842a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #83 0x75cc0842a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #84 0x5c2f115557e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #0 0x6139843e7601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x77d0f7fc60bf in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| #2 0x77d0f7fac15c in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:698:17 |
| #3 0x61398444a19f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| #4 0x77d0f7fab27d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1290:20 |
| #5 0x77d0f7fb331d in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:84:12 |
| #6 0x613984837f8b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #7 0x613984837f8b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #8 0x613984837f8b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #9 0x61398483c9f5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #10 0x61398483c9f5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #11 0x6139847ebcf5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #12 0x6139847ebcf5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #13 0x6139845921b8 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2185:5 |
| #14 0x6139844e1ddc in rb_io_s_open /tmp/ruby/src/trunk_asan/io.c:8126:16 |
| #15 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #16 0x613984809dfc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| #17 0x6139848098b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #18 0x6139847d13fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #19 0x6139847d13fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #20 0x6139847c0617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #21 0x613984841301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #22 0x613984841301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #23 0x6139847f439a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #24 0x6139847f439a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #25 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #26 0x6139847c899a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #27 0x6139847c899a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #28 0x6139847c0617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #29 0x613984841301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #30 0x613984841301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #31 0x6139847eda05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #32 0x6139847eda05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #33 0x6139847eda05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #34 0x6139847eda05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #35 0x6139849ac81d in rb_ary_all_p /tmp/ruby/src/trunk_asan/array.c:7872:24 |
| #36 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #37 0x6139847c899a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #38 0x6139847c899a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #39 0x6139847c0617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #40 0x613984841301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #41 0x613984841301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #42 0x6139847eda05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #43 0x6139847eda05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #44 0x6139847eda05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #45 0x6139847eda05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #46 0x613984991fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #47 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #48 0x6139847c899a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #49 0x6139847c899a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #50 0x6139847c0617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #51 0x613984841301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #52 0x613984841301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #53 0x6139847eda05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #54 0x6139847eda05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #55 0x6139847eda05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #56 0x6139847eda05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #57 0x613984991fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #58 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #59 0x6139847c899a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #60 0x6139847c899a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #61 0x6139847c0617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #62 0x61398454317b in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:789:5 |
| #63 0x61398453b2af in rb_load_internal /tmp/ruby/src/trunk_asan/load.c:850:9 |
| #64 0x613984540889 in rb_f_load /tmp/ruby/src/trunk_asan/load.c:924:5 |
| #65 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #66 0x6139847d13fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #67 0x6139847d13fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #68 0x6139847c0617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #69 0x613984841301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #70 0x613984841301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #71 0x6139847f439a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #72 0x6139847f439a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #73 0x613984823d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #74 0x6139847c899a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #75 0x6139847c899a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #76 0x6139847c09d0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2611:22 |
| #77 0x6139847c09d0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2590:18 |
| #78 0x61398444649a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #79 0x61398444649a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #80 0x61398443fa06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| #81 0x61398443fa06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #82 0x77d118c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #83 0x77d118c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #84 0x6139843637e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| SUMMARY: AddressSanitizer: stack-buffer-overflow (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) in strlen |
| Shadow bytes around the buggy address: |
| 0x77d0eaf08d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf08e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf08e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf08f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf08f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x77d0eaf09000: f1 f1 f1 f1 f8 f8 f2 f2[01]f3 f3 f3 00 00 00 00 |
| 0x77d0eaf09080: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| 0x77d0eaf09100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf09180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf09200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x77d0eaf09280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 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 |
| ==2802326==ABORTING |
| SUMMARY: AddressSanitizer: stack-buffer-overflow (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) in strlen |
| Shadow bytes around the buggy address: |
| 0x75cbcb108d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb108e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb108e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb108f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb108f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x75cbcb109000: f1 f1 f1 f1 f8 f8 f2 f2[01]f3 f3 f3 00 00 00 00 |
| 0x75cbcb109080: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| 0x75cbcb109100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb109180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb109200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x75cbcb109280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 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 |
| ==2802315==ABORTING |
| A child mspec-run process died unexpectedly while running /tmp/ruby/src/trunk_asan/spec/ruby/library/net-http/http/copy_spec.rb |
| #0 0x64fe7cd60dec in strlen (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x7506f34cb8dd in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3105:55 |
| #2 0x64fe7cde595e in asan_thread_start(void*) asan_interceptors.cpp.o |
| #3 0x75071009ca93 in start_thread nptl/pthread_create.c:447:8 |
| #4 0x750710129c3b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 |
| Address 0x7506e9109041 is located in stack of thread T35 at offset 65 in frame |
| #0 0x7506f34cb4df in do_fast_fallback_getaddrinfo /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:3056 |
| This frame has 2 object(s): |
| [32, 48) 'sleep_ts' (line 3076) |
| [64, 65) 'notification' (line 3102) <== Memory access at offset 65 overflows this variable |
| 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) |
| Thread T35 created by T0 here: |
| #0 0x64fe7cdcd601 in pthread_create (/tmp/ruby/build/trunk_asan/ruby+0x1fb601) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| #1 0x7506f34c40bf in raddrinfo_pthread_create /tmp/ruby/src/trunk_asan/ext/socket/raddrinfo.c:481:15 |
| #2 0x7506f34aa15c in init_fast_fallback_inetsock_internal /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:698:17 |
| #3 0x64fe7ce3019f in rb_ensure /tmp/ruby/src/trunk_asan/eval.c:1053:18 |
| #4 0x7506f34a927d in rsock_init_inetsock /tmp/ruby/src/trunk_asan/ext/socket/ipsocket.c:1290:20 |
| #5 0x7506f34b131d in tcp_init /tmp/ruby/src/trunk_asan/ext/socket/tcpsocket.c:84:12 |
| #6 0x64fe7d21df8b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #7 0x64fe7d21df8b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #8 0x64fe7d21df8b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #9 0x64fe7d2229f5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #10 0x64fe7d2229f5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #11 0x64fe7d1d1cf5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #12 0x64fe7d1d1cf5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #13 0x64fe7cf781b8 in rb_class_new_instance_kw /tmp/ruby/src/trunk_asan/object.c:2185:5 |
| #14 0x64fe7cec7ddc in rb_io_s_open /tmp/ruby/src/trunk_asan/io.c:8126:16 |
| #15 0x64fe7d209d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #16 0x64fe7d1efdfc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4773:16 |
| #17 0x64fe7d1ef8b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #18 0x64fe7d1b73fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #19 0x64fe7d1b73fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #20 0x64fe7d1a6617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #21 0x64fe7d227301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #22 0x64fe7d227301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #23 0x64fe7d1da39a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #24 0x64fe7d1da39a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #25 0x64fe7d209d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #26 0x64fe7d1ae99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #27 0x64fe7d1ae99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #28 0x64fe7d1a6617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #29 0x64fe7d227301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #30 0x64fe7d227301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #31 0x64fe7d1d3a05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #32 0x64fe7d1d3a05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #33 0x64fe7d1d3a05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #34 0x64fe7d1d3a05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #35 0x64fe7d39281d in rb_ary_all_p /tmp/ruby/src/trunk_asan/array.c:7872:24 |
| #36 0x64fe7d209d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #37 0x64fe7d1ae99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #38 0x64fe7d1ae99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #39 0x64fe7d1a6617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #40 0x64fe7d227301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #41 0x64fe7d227301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #42 0x64fe7d1d3a05 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #43 0x64fe7d1d3a05 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1674:12 |
| #44 0x64fe7d1d3a05 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #45 0x64fe7d1d3a05 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #46 0x64fe7d377fb9 in rb_ary_each /tmp/ruby/src/trunk_asan/array.c:2647:9 |
| #47 0x64fe7d209d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #48 0x64fe7d1ae99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #49 0x64fe7d1ae99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #50 0x64fe7d1a6617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #51 0x64fe7cf2917b in load_iseq_eval /tmp/ruby/src/trunk_asan/load.c:789:5 |
| #52 0x64fe7cf212af in rb_load_internal /tmp/ruby/src/trunk_asan/load.c:850:9 |
| #53 0x64fe7cf26889 in rb_f_load /tmp/ruby/src/trunk_asan/load.c:924:5 |
| #54 0x64fe7d209d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #55 0x64fe7d1b73fc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #56 0x64fe7d1b73fc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:898:11 |
| #57 0x64fe7d1a6617 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2584:22 |
| #58 0x64fe7d227301 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1615:12 |
| #59 0x64fe7d227301 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1629:20 |
| #60 0x64fe7d1da39a in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1666:12 |
| #61 0x64fe7d1da39a in yield_under /tmp/ruby/src/trunk_asan/vm_eval.c:2109:12 |
| #62 0x64fe7d209d07 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3795:11 |
| #63 0x64fe7d1ae99a in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5962:15 |
| #64 0x64fe7d1ae99a in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #65 0x64fe7d1a69d0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2611:22 |
| #66 0x64fe7d1a69d0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2590:18 |
| #67 0x64fe7ce2c49a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #68 0x64fe7ce2c49a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #69 0x64fe7ce25a06 in rb_main /tmp/ruby/src/trunk_asan/main.c:43:12 |
| #70 0x64fe7ce25a06 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #71 0x75071002a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #72 0x75071002a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #73 0x64fe7cd497e4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1777e4) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) |
| SUMMARY: AddressSanitizer: stack-buffer-overflow (/tmp/ruby/build/trunk_asan/ruby+0x18edec) (BuildId: fe7567313eef15d1668c66819134093aa2e5ee93) in strlen |
| Shadow bytes around the buggy address: |
| 0x7506e9108d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9108e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9108e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9108f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9108f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| =>0x7506e9109000: f1 f1 f1 f1 f8 f8 f2 f2[01]f3 f3 f3 00 00 00 00 |
| 0x7506e9109080: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 |
| 0x7506e9109100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9109180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9109200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x7506e9109280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 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 |
| ==2802325==ABORTING |
| make: *** [uncommon.mk:1013: yes-test-spec] Error 1 |