Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created April 24, 2018 19:55
Show Gist options
  • Save dogbert17/55d8106e0a9b6612a6212eff6f44cf00 to your computer and use it in GitHub Desktop.
Save dogbert17/55d8106e0a9b6612a6212eff6f44cf00 to your computer and use it in GitHub Desktop.
Fail in t/06-telemetry/01-basic.t
=================================================================
==2278==ERROR: AddressSanitizer: heap-use-after-free on address 0x6140000efc50 at pc 0x7f070d927e99 bp 0x7f0709cfd630 sp 0x7f0709cfd620
READ of size 8 at 0x6140000efc50 thread T1
#0 0x7f070d927e98 in optimize_gethow src/spesh/optimize.c:222
#1 0x7f070d927e98 in optimize_bb_switch src/spesh/optimize.c:2155
#2 0x7f070d92894e in optimize_bb src/spesh/optimize.c:2323
#3 0x7f070d92894e in optimize_bb src/spesh/optimize.c:2335
#4 0x7f070d929a90 in optimize_bb src/spesh/optimize.c:2335
#5 0x7f070d929a90 in MVM_spesh_optimize src/spesh/optimize.c:2584
#6 0x7f070d90b676 in MVM_spesh_candidate_add src/spesh/candidate.c:62
#7 0x7f070d93cc65 in worker src/spesh/worker.c:16
#8 0x7f070d79aff9 in thread_initial_invoke src/core/threads.c:59
#9 0x7f070d73c792 in MVM_interp_run src/core/interp.c:93
#10 0x7f070d79b1a5 in start_thread src/core/threads.c:87
#11 0x7f070cb026b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
#12 0x7f070ce1f41c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
0x6140000efc50 is located 16 bytes inside of 400-byte region [0x6140000efc40,0x6140000efdd0)
freed by thread T8 here:
#0 0x7f070e8542ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x7f070d7f86f8 in MVM_free src/core/alloc.h:40
#2 0x7f070d7f86f8 in MVM_gc_gen2_destroy src/gc/gen2.c:131
#3 0x7f070d7707d5 in MVM_tc_destroy src/core/threadcontext.c:86
#4 0x7f070d7e7a0c in finish_gc src/gc/orchestrate.c:219
#5 0x7f070d7e7a0c in run_gc src/gc/orchestrate.c:411
#6 0x7f070d7e99fc in MVM_gc_enter_from_allocator src/gc/orchestrate.c:524
#7 0x7f070d7ea11f in MVM_gc_allocate_nursery src/gc/allocation.c:32
#8 0x7f070d7ea81e in MVM_gc_allocate_object src/gc/allocation.c:86
#9 0x7f070d82e673 in MVM_repr_alloc_init src/6model/reprconv.c:17
#10 0x7f0708bf0519 in p6scalarfromdesc (dynext/libperl6_ops_moar.so+0x2519)
previously allocated by thread T7 here:
#0 0x7f070e854602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7f070d7f7f69 in MVM_malloc src/core/alloc.h:2
#2 0x7f070d7f7f69 in MVM_gc_gen2_allocate src/gc/gen2.c:93
#3 0x7f070d7f850f in MVM_gc_gen2_allocate_zeroed src/gc/gen2.c:111
#4 0x7f070d7ea81e in MVM_gc_allocate_object src/gc/allocation.c:86
#5 0x7f070d8d9600 in stub_object src/6model/serialization.c:2200
#6 0x7f070d8d9600 in MVM_serialization_demand_object src/6model/serialization.c:2757
#7 0x7f070d8ca052 in MVM_sc_get_object src/6model/sc.c:204
#8 0x7f070d8b7745 in MVM_6model_get_how src/6model/6model.c:7
#9 0x7f070d7484cf in MVM_interp_run src/core/interp.c:1908
#10 0x7f070d79b1a5 in start_thread src/core/threads.c:87
#11 0x7f070cb026b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment