Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active April 13, 2019 01:25
Show Gist options
  • Save MasterDuke17/de7c683b4f503b03628f14a2a1cb0235 to your computer and use it in GitHub Desktop.
Save MasterDuke17/de7c683b4f503b03628f14a2a1cb0235 to your computer and use it in GitHub Desktop.
[dan@alexandria p6]$ LD_PRELOAD=/usr/lib/libasan.so ./install/bin/perl6-m -e ''
=================================================================
==22719==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7ff7832a9231 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:95
#1 0x7ff77d01818e in MVM_calloc /home/dan/Source/perl6/install/include/moar/core/alloc.h:11
#2 0x7ff77d018ed5 in rakudo_scalar_set_container_spec src/vm/moar/ops/container.c:174
#3 0x7ff7822456b8 in deserialize_stable src/6model/serialization.c:2651
#4 0x7ff782241e59 in work_loop src/6model/serialization.c:2792
#5 0x7ff7822418a4 in MVM_serialization_demand_object src/6model/serialization.c:2831
#6 0x7ff78222ff10 in MVM_sc_get_object src/6model/sc.c:206
#7 0x7ff78208072b in MVM_interp_run src/core/interp.c
#8 0x7ff7823976b3 in MVM_vm_run_file src/moar.c:444
#9 0x55a0377a8fdc in main src/vm/moar/runner/main.c:343
#10 0x7ff781543222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)
SUMMARY: AddressSanitizer: 32 byte(s) leaked in 1 allocation(s).
[dan@alexandria p6]$ MVM_JIT_DISABLE=1 LD_PRELOAD=/usr/lib/libasan.so ./install/bin/perl6-m 9.p6 >master-asan.log
=================================================================
==19906==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 40656 byte(s) in 154 object(s) allocated from:
#0 0x7fe9babd9019 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:86
#1 0x7fe9b9a8dcfd in MVM_malloc src/core/alloc.h:2
#2 0x7fe9b9a8dcfd in spawn_setup src/io/procops.c:663
#3 0x7fe9b9a7bae1 in setup_work src/io/eventloop.c:18
#4 0x7fe9b9a7bae1 in async_handler src/io/eventloop.c:76
#5 0x7fe9b9d50f26 in uv__async_io 3rdparty/libuv/src/unix/async.c:118
Direct leak of 5544 byte(s) in 21 object(s) allocated from:
#0 0x7fe9babd9019 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:86
#1 0x7fe9b9a8ddab in MVM_malloc src/core/alloc.h:2
#2 0x7fe9b9a8ddab in spawn_setup src/io/procops.c:668
#3 0x7fe9b9a7bae1 in setup_work src/io/eventloop.c:18
#4 0x7fe9b9a7bae1 in async_handler src/io/eventloop.c:76
#5 0x7fe9b9d50f26 in uv__async_io 3rdparty/libuv/src/unix/async.c:118
Direct leak of 4200 byte(s) in 175 object(s) allocated from:
#0 0x7fe9babd9231 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:95
#1 0x7fe9b9a88f2d in MVM_calloc src/core/alloc.h:11
#2 0x7fe9b9a88f2d in MVM_proc_spawn_async src/io/procops.c:960
#3 0x7fe9b99b3b48 in MVM_interp_run src/core/interp.c:4339
#4 0x7fe9b9cc76b3 in MVM_vm_run_file src/moar.c:444
#5 0x563505429fdc in main src/vm/moar/runner/main.c:343
#6 0x7fe9b8e73222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)
Direct leak of 768 byte(s) in 1 object(s) allocated from:
#0 0x7fe9babd9491 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:105
#1 0x7fe9b9bf7fa5 in MVM_realloc src/core/alloc.h:20
#2 0x7fe9b9bf7fa5 in add_sim_call_type_info src/spesh/stats.c:291
#3 0x7fe9b9bf7fa5 in incorporate_stats src/spesh/stats.c:378
#4 0x7fe9b9bf950f in sim_stack_pop src/spesh/stats.c:409
#5 0x7fe9b9bf950f in sim_stack_find src/spesh/stats.c:427
#6 0x7fe9b9bf950f in MVM_spesh_stats_update src/spesh/stats.c:601
#7 0x7fe9b9bf3793 in worker src/spesh/worker.c:16
#8 0x7fe9b9acd567 in invoke_handler src/6model/reprs/MVMCFunction.c:9
#9 0x7fe9b99ff98d in thread_initial_invoke src/core/threads.c:59
#10 0x7fe9b99aeb97 in MVM_interp_run src/core/interp.c:128
#11 0x7fe9b99fe8e3 in start_thread src/core/threads.c:87
#12 0x7fe9b8e26a9c in start_thread (/usr/lib/../lib/libpthread.so.0+0x7a9c)
Direct leak of 256 byte(s) in 1 object(s) allocated from:
#0 0x7fe9babd9491 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:105
#1 0x7fe9b9bf966c in MVM_realloc src/core/alloc.h:20
#2 0x7fe9b9bf966c in MVM_spesh_stats_update src/spesh/stats.c:605
#3 0x7fe9b9bf3793 in worker src/spesh/worker.c:16
#4 0x7fe9b9acd567 in invoke_handler src/6model/reprs/MVMCFunction.c:9
#5 0x7fe9b99ff98d in thread_initial_invoke src/core/threads.c:59
#6 0x7fe9b99aeb97 in MVM_interp_run src/core/interp.c:128
#7 0x7fe9b99fe8e3 in start_thread src/core/threads.c:87
#8 0x7fe9b8e26a9c in start_thread (/usr/lib/../lib/libpthread.so.0+0x7a9c)
Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7fe9babd9231 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:95
#1 0x7fe9b494718e in MVM_calloc /home/dan/Source/perl6/install/include/moar/core/alloc.h:11
#2 0x7fe9b4947ed5 in rakudo_scalar_set_container_spec src/vm/moar/ops/container.c:174
#3 0x7fe9b9b756b8 in deserialize_stable src/6model/serialization.c:2651
#4 0x7fe9b9b71e59 in work_loop src/6model/serialization.c:2792
#5 0x7fe9b9b718a4 in MVM_serialization_demand_object src/6model/serialization.c:2831
#6 0x7fe9b9b5ff10 in MVM_sc_get_object src/6model/sc.c:206
#7 0x7fe9b99b072b in MVM_interp_run src/core/interp.c
#8 0x7fe9b9cc76b3 in MVM_vm_run_file src/moar.c:444
#9 0x563505429fdc in main src/vm/moar/runner/main.c:343
#10 0x7fe9b8e73222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)
Indirect leak of 40656 byte(s) in 154 object(s) allocated from:
#0 0x7fe9babd9019 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:86
#1 0x7fe9b9a8ddab in MVM_malloc src/core/alloc.h:2
#2 0x7fe9b9a8ddab in spawn_setup src/io/procops.c:668
#3 0x7fe9b9a7bae1 in setup_work src/io/eventloop.c:18
#4 0x7fe9b9a7bae1 in async_handler src/io/eventloop.c:76
#5 0x7fe9b9d50f26 in uv__async_io 3rdparty/libuv/src/unix/async.c:118
Indirect leak of 5544 byte(s) in 21 object(s) allocated from:
#0 0x7fe9babd9019 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:86
#1 0x7fe9b9a8dcfd in MVM_malloc src/core/alloc.h:2
#2 0x7fe9b9a8dcfd in spawn_setup src/io/procops.c:663
#3 0x7fe9b9a7bae1 in setup_work src/io/eventloop.c:18
#4 0x7fe9b9a7bae1 in async_handler src/io/eventloop.c:76
#5 0x7fe9b9d50f26 in uv__async_io 3rdparty/libuv/src/unix/async.c:118
SUMMARY: AddressSanitizer: 97656 byte(s) leaked in 528 allocation(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment