| "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 0. |
| ================================================================= |
| ==3791463==ERROR: AddressSanitizer: heap-use-after-free on address 0x516000000700 at pc 0x58ac7790b652 bp 0x7aa6b44fbf60 sp 0x7aa6b44fbf58 |
| READ of size 8 at 0x516000000700 thread T0 |
| #0 0x58ac7790b651 in rb_fiber_threadptr /tmp/ruby/src/trunk_asan/cont.c:976:33 |
| #1 0x58ac774fcc77 in mutex_free /tmp/ruby/src/trunk_asan/thread_sync.c:132:53 |
| #2 0x58ac77227db9 in rb_data_free /tmp/ruby/src/trunk_asan/gc.c:1060:17 |
| #3 0x58ac77227db9 in rb_gc_obj_free /tmp/ruby/src/trunk_asan/gc.c:1203:14 |
| #4 0x58ac77251005 in gc_sweep_plane /tmp/ruby/src/trunk_asan/gc/default.c:3740:21 |
| #5 0x58ac7724ad8e in gc_sweep_page /tmp/ruby/src/trunk_asan/gc/default.c:3828:13 |
| #6 0x58ac7724ad8e in gc_sweep_step /tmp/ruby/src/trunk_asan/gc/default.c:4122:9 |
| #7 0x58ac77243871 in gc_sweep_continue /tmp/ruby/src/trunk_asan/gc/default.c:4194:14 |
| #8 0x58ac77243871 in gc_continue /tmp/ruby/src/trunk_asan/gc/default.c:2276:9 |
| #9 0x58ac772424d5 in heap_prepare /tmp/ruby/src/trunk_asan/gc/default.c:2288:5 |
| #10 0x58ac772424d5 in heap_next_free_page /tmp/ruby/src/trunk_asan/gc/default.c:2502:9 |
| #11 0x58ac772424d5 in newobj_cache_miss /tmp/ruby/src/trunk_asan/gc/default.c:2611:38 |
| #12 0x58ac772265ca in newobj_alloc /tmp/ruby/src/trunk_asan/gc/default.c:2635:15 |
| #13 0x58ac772265ca in rb_gc_impl_new_obj /tmp/ruby/src/trunk_asan/gc/default.c:2718:15 |
| #14 0x58ac772265ca in newobj_of /tmp/ruby/src/trunk_asan/gc.c:890:17 |
| #15 0x58ac7722670d in rb_wb_protected_newobj_of /tmp/ruby/src/trunk_asan/gc.c:917:12 |
| #16 0x58ac775efa8c in vm_make_env_each /tmp/ruby/src/trunk_asan/vm.c:991:21 |
| #17 0x58ac775aa4db in vm_make_env_object /tmp/ruby/src/trunk_asan/vm.c:1028:20 |
| #18 0x58ac775aa4db in rb_vm_make_proc_lambda /tmp/ruby/src/trunk_asan/vm.c:1399:9 |
| #19 0x58ac7791212f in rb_fiber_initialize_kw /tmp/ruby/src/trunk_asan/cont.c:2230:35 |
| #20 0x58ac7791212f in rb_fiber_initialize /tmp/ruby/src/trunk_asan/cont.c:2285:12 |
| #21 0x58ac775e7e7b in vm_call0_cfunc_with_frame /tmp/ruby/src/trunk_asan/vm_eval.c:164:15 |
| #22 0x58ac775e7e7b in vm_call0_cfunc /tmp/ruby/src/trunk_asan/vm_eval.c:178:12 |
| #23 0x58ac775e7e7b in vm_call0_body /tmp/ruby/src/trunk_asan/vm_eval.c:229:15 |
| #24 0x58ac775ec8e5 in vm_call0_cc /tmp/ruby/src/trunk_asan/vm_eval.c:101:12 |
| #25 0x58ac775ec8e5 in rb_call0 /tmp/ruby/src/trunk_asan/vm_eval.c:554:12 |
| #26 0x58ac7759bdd5 in rb_call /tmp/ruby/src/trunk_asan/vm_eval.c:873:12 |
| #27 0x58ac7759bdd5 in rb_funcallv_kw /tmp/ruby/src/trunk_asan/vm_eval.c:1070:12 |
| #28 0x58ac77344e54 in rb_class_new_instance_pass_kw /tmp/ruby/src/trunk_asan/object.c:2173:5 |
| #29 0x58ac775d3bf7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3788:11 |
| #30 0x58ac7757b102 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5955:15 |
| #31 0x58ac7757b102 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #32 0x58ac77570997 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2564:22 |
| #33 0x58ac775f11a1 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1595:12 |
| #34 0x58ac775f11a1 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1609:20 |
| #35 0x58ac7759dae5 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1646:12 |
| #36 0x58ac7759dae5 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1654:12 |
| #37 0x58ac7759dae5 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #38 0x58ac7759dae5 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #39 0x58ac771fe8f9 in rb_protect /tmp/ruby/src/trunk_asan/eval.c:1033:18 |
| #40 0x58ac7737798a in rb_f_fork /tmp/ruby/src/trunk_asan/process.c:4370:13 |
| #41 0x58ac775d3bf7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3788:11 |
| #42 0x58ac7757b102 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5955:15 |
| #43 0x58ac7757b102 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #44 0x58ac77570997 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2564:22 |
| #45 0x58ac775ad8ea in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1595:12 |
| #46 0x58ac775ad8ea in invoke_block_from_c_proc /tmp/ruby/src/trunk_asan/vm.c:1689:16 |
| #47 0x58ac775ad8ea in vm_invoke_proc /tmp/ruby/src/trunk_asan/vm.c:1719:12 |
| #48 0x58ac775abb75 in rb_vm_invoke_proc /tmp/ruby/src/trunk_asan/vm.c:1740:16 |
| #49 0x58ac7790ca0f in rb_fiber_start /tmp/ruby/src/trunk_asan/cont.c:2446:23 |
| #50 0x58ac77914aa7 in fiber_entry /tmp/ruby/src/trunk_asan/cont.c:849:5 |
| 0x516000000700 is located 128 bytes inside of 624-byte region [0x516000000680,0x5160000008f0) |
| freed by thread T0 here: |
| #0 0x58ac771b68ba in free (/tmp/ruby/build/trunk_asan/ruby+0x2128ba) (BuildId: 7117677c77d414f7890de93f3111b5fd4e40cc1a) |
| #1 0x58ac772288ed in rb_gc_impl_free /tmp/ruby/src/trunk_asan/gc/default.c:8521:9 |
| #2 0x58ac772288ed in ruby_sized_xfree /tmp/ruby/src/trunk_asan/gc.c:4190:13 |
| #3 0x58ac772288ed in ruby_xfree /tmp/ruby/src/trunk_asan/gc.c:4201:5 |
| #4 0x58ac77227db9 in rb_data_free /tmp/ruby/src/trunk_asan/gc.c:1060:17 |
| #5 0x58ac77227db9 in rb_gc_obj_free /tmp/ruby/src/trunk_asan/gc.c:1203:14 |
| #6 0x58ac77251005 in gc_sweep_plane /tmp/ruby/src/trunk_asan/gc/default.c:3740:21 |
| #7 0x58ac7724ad8e in gc_sweep_page /tmp/ruby/src/trunk_asan/gc/default.c:3828:13 |
| #8 0x58ac7724ad8e in gc_sweep_step /tmp/ruby/src/trunk_asan/gc/default.c:4122:9 |
| #9 0x58ac77246935 in gc_sweep /tmp/ruby/src/trunk_asan/gc/default.c:4376:13 |
| #10 0x58ac77255413 in gc_start /tmp/ruby/src/trunk_asan/gc/default.c:6715:13 |
| #11 0x58ac77242538 in heap_prepare /tmp/ruby/src/trunk_asan/gc/default.c:2295:13 |
| #12 0x58ac77242538 in heap_next_free_page /tmp/ruby/src/trunk_asan/gc/default.c:2502:9 |
| #13 0x58ac77242538 in newobj_cache_miss /tmp/ruby/src/trunk_asan/gc/default.c:2611:38 |
| #14 0x58ac77242174 in newobj_alloc /tmp/ruby/src/trunk_asan/gc/default.c:2635:15 |
| #15 0x58ac77242174 in newobj_slowpath /tmp/ruby/src/trunk_asan/gc/default.c:2671:15 |
| #16 0x58ac77242174 in newobj_slowpath_wb_unprotected /tmp/ruby/src/trunk_asan/gc/default.c:2693:12 |
| #17 0x58ac772263fb in rb_gc_impl_new_obj /tmp/ruby/src/trunk_asan/gc/default.c:2726:11 |
| #18 0x58ac772263fb in newobj_of /tmp/ruby/src/trunk_asan/gc.c:890:17 |
| #19 0x58ac77226d72 in typed_data_alloc /tmp/ruby/src/trunk_asan/gc.c:955:12 |
| #20 0x58ac77226d72 in rb_data_typed_object_wrap /tmp/ruby/src/trunk_asan/gc.c:965:12 |
| #21 0x58ac7734e800 in class_call_alloc_func /tmp/ruby/src/trunk_asan/object.c:2141:11 |
| #22 0x58ac77344e37 in rb_class_new_instance_pass_kw /tmp/ruby/src/trunk_asan/object.c:2172:11 |
| #23 0x58ac775d3bf7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3788:11 |
| #24 0x58ac7757b102 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5955:15 |
| #25 0x58ac7757b102 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #26 0x58ac77570997 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2564:22 |
| #27 0x58ac775f11a1 in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1595:12 |
| #28 0x58ac775f11a1 in invoke_block_from_c_bh /tmp/ruby/src/trunk_asan/vm.c:1609:20 |
| #29 0x58ac7759dae5 in vm_yield_with_cref /tmp/ruby/src/trunk_asan/vm.c:1646:12 |
| #30 0x58ac7759dae5 in vm_yield /tmp/ruby/src/trunk_asan/vm.c:1654:12 |
| #31 0x58ac7759dae5 in rb_yield_0 /tmp/ruby/src/trunk_asan/vm_eval.c:1344:12 |
| #32 0x58ac7759dae5 in rb_yield /tmp/ruby/src/trunk_asan/vm_eval.c |
| #33 0x58ac771fe8f9 in rb_protect /tmp/ruby/src/trunk_asan/eval.c:1033:18 |
| #34 0x58ac7737798a in rb_f_fork /tmp/ruby/src/trunk_asan/process.c:4370:13 |
| #35 0x58ac775d3bf7 in vm_call_cfunc_with_frame_ /tmp/ruby/src/trunk_asan/vm_insnhelper.c:3788:11 |
| #36 0x58ac7757b102 in vm_sendish /tmp/ruby/src/trunk_asan/vm_insnhelper.c:5955:15 |
| #37 0x58ac7757b102 in vm_exec_core /tmp/ruby/build/trunk_asan/../../src/trunk_asan/insns.def:851:11 |
| #38 0x58ac77570997 in rb_vm_exec /tmp/ruby/src/trunk_asan/vm.c:2564:22 |
| #39 0x58ac775ad8ea in invoke_iseq_block_from_c /tmp/ruby/src/trunk_asan/vm.c:1595:12 |
| #40 0x58ac775ad8ea in invoke_block_from_c_proc /tmp/ruby/src/trunk_asan/vm.c:1689:16 |
| #41 0x58ac775ad8ea in vm_invoke_proc /tmp/ruby/src/trunk_asan/vm.c:1719:12 |
| #42 0x58ac775abb75 in rb_vm_invoke_proc /tmp/ruby/src/trunk_asan/vm.c:1740:16 |
| #43 0x58ac7790ca0f in rb_fiber_start /tmp/ruby/src/trunk_asan/cont.c:2446:23 |
| #44 0x58ac77914aa7 in fiber_entry /tmp/ruby/src/trunk_asan/cont.c:849:5 |
| previously allocated by thread T0 here: |
| #0 0x58ac771b6d5c in calloc (/tmp/ruby/build/trunk_asan/ruby+0x212d5c) (BuildId: 7117677c77d414f7890de93f3111b5fd4e40cc1a) |
| #1 0x58ac7790d6fc in rb_threadptr_root_fiber_setup /tmp/ruby/src/trunk_asan/cont.c:2478:25 |
| #2 0x58ac775b432d in th_init /tmp/ruby/src/trunk_asan/vm.c:3599:5 |
| #3 0x58ac775b74be in Init_BareVM /tmp/ruby/src/trunk_asan/vm.c:4274:5 |
| #4 0x58ac771f78dc in ruby_setup /tmp/ruby/src/trunk_asan/eval.c:80:5 |
| #5 0x58ac771f7fc0 in ruby_init /tmp/ruby/src/trunk_asan/eval.c:98:17 |
| #6 0x58ac771f4873 in rb_main /tmp/ruby/src/trunk_asan/main.c:42:5 |
| #7 0x58ac771f4873 in main /tmp/ruby/src/trunk_asan/main.c:62:12 |
| #8 0x7aa6d1e2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 |
| #9 0x7aa6d1e2a28a in __libc_start_main csu/../csu/libc-start.c:360:3 |
| #10 0x58ac77118664 in _start (/tmp/ruby/build/trunk_asan/ruby+0x174664) (BuildId: 7117677c77d414f7890de93f3111b5fd4e40cc1a) |
| SUMMARY: AddressSanitizer: heap-use-after-free /tmp/ruby/src/trunk_asan/cont.c:976:33 in rb_fiber_threadptr |
| Shadow bytes around the buggy address: |
| 0x516000000480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x516000000500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| 0x516000000580: 00 fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| 0x516000000600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| 0x516000000680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd |
| =>0x516000000700:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd |
| 0x516000000780: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd |
| 0x516000000800: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd |
| 0x516000000880: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa |
| 0x516000000900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa |
| 0x516000000980: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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 |
| ==3791463==ABORTING |
| Failed tests: |
| TestFiber#test_fork_from_fiber: Test::Unit::AssertionFailedError: [ruby-core:41456]. |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j16'" exit with 0. |