| "make update-download -j16" exit with 0. |
| "make update-src -j16" exit with 0. |
| From https://github.com/ruby/ruby |
| c6a0d03..9c5e9d2 master -> origin/master |
| "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-btest TESTOPTS='-q -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. |
| ================================================================= |
| ==3936954==ERROR: AddressSanitizer: heap-use-after-free on address 0x502000014fb0 at pc 0x5ec49574ab31 bp 0x7fff9bff4e80 sp 0x7fff9bff4e78 |
| READ of size 8 at 0x502000014fb0 thread T0 |
| #0 0x5ec49574ab30 in ruby_sip_hash13 /tmp/ruby/src/trunk_asan/siphash.c:424:17 |
| #1 0x5ec49583f5ed in str_do_hash /tmp/ruby/src/trunk_asan/string.c:359:20 |
| #2 0x5ec495825f0d in do_hash /tmp/ruby/src/trunk_asan/st.c:321:33 |
| #3 0x5ec495825f0d in st_general_delete /tmp/ruby/src/trunk_asan/st.c:1334:12 |
| #4 0x5ec495834cec in rb_str_free /tmp/ruby/src/trunk_asan/string.c:1626:13 |
| #5 0x5ec49560ab93 in obj_free /tmp/ruby/src/trunk_asan/gc.c:3330:9 |
| #6 0x5ec49560a314 in gc_sweep_plane /tmp/ruby/src/trunk_asan/gc.c:5338:21 |
| #7 0x5ec49560469e in gc_sweep_page /tmp/ruby/src/trunk_asan/gc.c:5423:13 |
| #8 0x5ec49560469e in gc_sweep_step /tmp/ruby/src/trunk_asan/gc.c:5702:9 |
| #9 0x5ec4956002e2 in gc_sweep /tmp/ruby/src/trunk_asan/gc.c:5927:13 |
| #10 0x5ec495610c91 in gc_start /tmp/ruby/src/trunk_asan/gc.c:9098:13 |
| #11 0x5ec4955fb471 in heap_prepare /tmp/ruby/src/trunk_asan/gc.c:2532:13 |
| #12 0x5ec4955fb471 in heap_next_free_page /tmp/ruby/src/trunk_asan/gc.c:2772:9 |
| #13 0x5ec4955f93f6 in newobj_alloc /tmp/ruby/src/trunk_asan/gc.c:2849:42 |
| #14 0x5ec4955d9cd7 in newobj_of /tmp/ruby/src/trunk_asan/gc.c:2952:15 |
| #15 0x5ec4955d9cd7 in rb_wb_protected_newobj_of /tmp/ruby/src/trunk_asan/gc.c:2977:12 |
| #16 0x5ec495830e54 in str_alloc_embed /tmp/ruby/src/trunk_asan/string.c:912:5 |
| #17 0x5ec495830e54 in str_new0 /tmp/ruby/src/trunk_asan/string.c:949:15 |
| #18 0x5ec4958338ca in str_new_frozen_buffer /tmp/ruby/src/trunk_asan/string.c:1523:15 |
| #19 0x5ec495816413 in rb_str_format /tmp/ruby/src/trunk_asan/sprintf.c:265:11 |
| #20 0x5ec49597e397 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3770:11 |
| #21 0x5ec4959667fc in vm_call_method_each_type /tmp/ruby/src/trunk_asan/vm_insnhelper.c:4749:16 |
| #22 0x5ec4959662b4 in vm_call_method /tmp/ruby/src/trunk_asan/vm_insnhelper.c |
| #23 0x5ec49592dcdc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5938:15 |
| #24 0x5ec49592dcdc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| #25 0x5ec49591ca07 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2567:22 |
| #26 0x5ec49599b6b1 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c |
| #27 0x5ec49599b6b1 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1612:20 |
| #28 0x5ec495949a85 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1649:12 |
| #29 0x5ec495949a85 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1657:12 |
| #30 0x5ec495949a85 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1351:12 |
| #31 0x5ec495949a85 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #32 0x5ec495ad2b05 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3652:30 |
| #33 0x5ec49597e397 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3770:11 |
| #34 0x5ec49592540e in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5938:15 |
| #35 0x5ec49592540e in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:871:11 |
| #36 0x5ec49591cdc0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2594:22 |
| #37 0x5ec49591cdc0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2573:18 |
| #38 0x5ec49599b6b1 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c |
| #39 0x5ec49599b6b1 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1612:20 |
| #40 0x5ec495949a85 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1649:12 |
| #41 0x5ec495949a85 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1657:12 |
| #42 0x5ec495949a85 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1351:12 |
| #43 0x5ec495949a85 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #44 0x5ec495ad2b05 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3652:30 |
| #45 0x5ec49597e397 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3770:11 |
| #46 0x5ec49592540e in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5938:15 |
| #47 0x5ec49592540e in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:871:11 |
| #48 0x5ec49591cdc0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2594:22 |
| #49 0x5ec49591cdc0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2573:18 |
| #50 0x5ec4955b126a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #51 0x5ec4955b126a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #52 0x5ec4955aa716 in rb_main /tmp/ruby/src/trunk_asan/main.c:45:12 |
| #53 0x5ec4955aa716 in main /tmp/ruby/src/trunk_asan/main.c:64:12 |
| #54 0x77a2f4a2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #55 0x77a2f4a2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #56 0x5ec4954ce4f4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1714f4) (BuildId: e9f3fb199b70a25386c66545c2e0444d6fccbc74) |
| 0x502000014fb0 is located 0 bytes inside of 9-byte region [0x502000014fb0,0x502000014fb9) |
| freed by thread T0 here: |
| #0 0x5ec49556c74a in free (/tmp/ruby/build/trunk_asan/ruby+0x20f74a) (BuildId: e9f3fb199b70a25386c66545c2e0444d6fccbc74) |
| #1 0x5ec4955dde6d in objspace_xfree /tmp/ruby/src/trunk_asan/gc.c:12170:9 |
| #2 0x5ec4955dde6d in ruby_sized_xfree /tmp/ruby/src/trunk_asan/gc.c:12274:13 |
| #3 0x5ec4955dde6d in ruby_xfree /tmp/ruby/src/trunk_asan/gc.c:12285:5 |
| #4 0x5ec495cb14da in enc_set_default_encoding /tmp/ruby/src/trunk_asan/encoding.c:1560:17 |
| #5 0x5ec495cb2f6c in rb_enc_set_default_internal /tmp/ruby/src/trunk_asan/encoding.c:1721:5 |
| #6 0x5ec495cb2f6c in set_default_internal /tmp/ruby/src/trunk_asan/encoding.c:1742:5 |
| #7 0x5ec49597e397 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3770:11 |
| #8 0x5ec49592dcdc in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5938:15 |
| #9 0x5ec49592dcdc in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:918:11 |
| #10 0x5ec49591cdc0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2594:22 |
| #11 0x5ec49591cdc0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2573:18 |
| #12 0x5ec49599b6b1 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c |
| #13 0x5ec49599b6b1 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1612:20 |
| #14 0x5ec495949a85 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1649:12 |
| #15 0x5ec495949a85 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1657:12 |
| #16 0x5ec495949a85 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1351:12 |
| #17 0x5ec495949a85 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #18 0x5ec495ad2b05 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3652:30 |
| #19 0x5ec49597e397 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3770:11 |
| #20 0x5ec49592540e in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5938:15 |
| #21 0x5ec49592540e in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:871:11 |
| #22 0x5ec49591cdc0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2594:22 |
| #23 0x5ec49591cdc0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2573:18 |
| #24 0x5ec49599b6b1 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c |
| #25 0x5ec49599b6b1 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1612:20 |
| #26 0x5ec495949a85 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1649:12 |
| #27 0x5ec495949a85 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1657:12 |
| #28 0x5ec495949a85 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1351:12 |
| #29 0x5ec495949a85 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #30 0x5ec495ad2b05 in rb_ary_collect /tmp/ruby/src/trunk_asan/array.c:3652:30 |
| #31 0x5ec49597e397 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3770:11 |
| #32 0x5ec49592540e in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5938:15 |
| #33 0x5ec49592540e in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:871:11 |
| #34 0x5ec49591cdc0 in vm_exec_loop /tmp/ruby/src/trunk_asan/vm.c:2594:22 |
| #35 0x5ec49591cdc0 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2573:18 |
| #36 0x5ec4955b126a in rb_ec_exec_node /tmp/ruby/src/trunk_asan/eval.c:281:9 |
| #37 0x5ec4955b126a in ruby_run_node /tmp/ruby/src/trunk_asan/eval.c:319:30 |
| #38 0x5ec4955aa716 in rb_main /tmp/ruby/src/trunk_asan/main.c:45:12 |
| #39 0x5ec4955aa716 in main /tmp/ruby/src/trunk_asan/main.c:64:12 |
| #40 0x77a2f4a2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #41 0x77a2f4a2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #42 0x5ec4954ce4f4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1714f4) (BuildId: e9f3fb199b70a25386c66545c2e0444d6fccbc74) |
| previously allocated by thread T0 here: |
| #0 0x5ec49556c9f2 in malloc (/tmp/ruby/build/trunk_asan/ruby+0x20f9f2) (BuildId: e9f3fb199b70a25386c66545c2e0444d6fccbc74) |
| #1 0x5ec4955efb94 in objspace_xmalloc0 /tmp/ruby/src/trunk_asan/gc.c:11955:5 |
| #2 0x5ec4958f206d in ruby_strdup /tmp/ruby/src/trunk_asan/util.c:541:11 |
| #3 0x5ec495cb1489 in enc_set_default_encoding /tmp/ruby/src/trunk_asan/encoding.c:1556:30 |
| #4 0x5ec4957f9abc in process_options /tmp/ruby/src/trunk_asan/ruby.c |
| #5 0x5ec4957f9abc in ruby_process_options /tmp/ruby/src/trunk_asan/ruby.c:3104:12 |
| #6 0x5ec4955ae359 in ruby_options /tmp/ruby/src/trunk_asan/eval.c:117:16 |
| #7 0x5ec4955aa70e in rb_main /tmp/ruby/src/trunk_asan/main.c:45:26 |
| #8 0x5ec4955aa70e in main /tmp/ruby/src/trunk_asan/main.c:64:12 |
| #9 0x77a2f4a2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #10 0x77a2f4a2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #11 0x5ec4954ce4f4 in _start (/tmp/ruby/build/trunk_asan/ruby+0x1714f4) (BuildId: e9f3fb199b70a25386c66545c2e0444d6fccbc74) |
| SUMMARY: AddressSanitizer: heap-use-after-free /tmp/ruby/src/trunk_asan/siphash.c:424:17 in ruby_sip_hash13 |
| Shadow bytes around the buggy address: |
| 0x502000014d00: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa |
| 0x502000014d80: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fd fd |
| 0x502000014e00: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa |
| 0x502000014e80: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa |
| 0x502000014f00: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa |
| =>0x502000014f80: fa fa fd fa fa fa[fd]fd fa fa 00 00 fa fa 00 fa |
| 0x502000015000: fa fa 00 fa fa fa 00 00 fa fa 00 00 fa fa 00 fa |
| 0x502000015080: fa fa 00 00 fa fa 00 fa fa fa fd fd fa fa 00 00 |
| 0x502000015100: fa fa fd fd fa fa 00 fa fa fa 00 fa fa fa 00 00 |
| 0x502000015180: fa fa 00 00 fa fa 00 00 fa fa 00 fa fa fa 00 00 |
| 0x502000015200: fa fa 01 fa fa fa 00 00 fa fa 00 00 fa fa 01 fa |
| 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 |
| ==3936954==ABORTING |
| running file: /tmp/ruby/src/trunk_asan/test/ruby/test_sprintf.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:964: yes-test-all] Error 1 |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |