Skip to content

Instantly share code, notes, and snippets.

@timo
Created October 11, 2016 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/a586bda6065285dc2ff8725370b66d8c to your computer and use it in GitHub Desktop.
Save timo/a586bda6065285dc2ff8725370b66d8c to your computer and use it in GitHub Desktop.
==27366==ERROR: AddressSanitizer: heap-use-after-free on address 0x60300056a3b0 at pc 0x7f594dc9012d bp 0x7f5943981440 sp 0x7f5943981430
READ of size 4 at 0x60300056a3b0 thread T6
#0 0x7f594dc9012c in build_cfg src/spesh/graph.c:453
#1 0x7f594dc9391e in MVM_spesh_graph_create src/spesh/graph.c:1133
#2 0x7f594dd57df6 in add_instrumentation src/instrument/crossthreadwrite.c:106
#3 0x7f594dd57df6 in MVM_cross_thread_write_instrument src/instrument/crossthreadwrite.c:126
#4 0x7f594db2f95f in MVM_frame_invoke src/core/frame.c:317
#5 0x7f594dbf98b2 in invoke_handler src/6model/reprs/MVMCode.c:10
#6 0x7f594daf048d in MVM_interp_run src/core/interp.c:894
#7 0x7f594db4a3d4 in start_thread src/core/threads.c:77
#8 0x7f594dd82e16 in uv__thread_start 3rdparty/libuv/src/unix/thread.c:49
#9 0x7f594d092619 in start_thread (/lib64/libpthread.so.0+0x7619)
#10 0x7f594d3ab5fc in clone (/lib64/libc.so.6+0x1025fc)
0x60300056a3b0 is located 16 bytes inside of 24-byte region [0x60300056a3a0,0x60300056a3b8)
freed by thread T10 here:
#0 0x7f594e6d567a in __interceptor_free (/lib64/libasan.so.2+0x9867a)
#1 0x7f594dc8d528 in MVM_free src/core/alloc.h:29
#2 0x7f594dc8d528 in MVM_spesh_graph_destroy src/spesh/graph.c:1229
#3 0x7f594dd58dae in add_instrumentation src/instrument/crossthreadwrite.c:117
#4 0x7f594dd58dae in MVM_cross_thread_write_instrument src/instrument/crossthreadwrite.c:126
#5 0x7f594db2f95f in MVM_frame_invoke src/core/frame.c:317
#6 0x7f594dbf98b2 in invoke_handler src/6model/reprs/MVMCode.c:10
#7 0x7f594daf048d in MVM_interp_run src/core/interp.c:894
#8 0x7f594db4a3d4 in start_thread src/core/threads.c:77
#9 0x7f594dd82e16 in uv__thread_start 3rdparty/libuv/src/unix/thread.c:49
previously allocated by thread T6 here:
#0 0x7f594e6d597a in malloc (/lib64/libasan.so.2+0x9897a)
#1 0x7f594db22e96 in MVM_malloc src/core/alloc.h:2
#2 0x7f594db22e96 in MVM_bytecode_finish_frame src/core/bytecode.c:638
#3 0x7f594db2cca7 in prepare_and_verify_static_frame src/core/frame.c:23
#4 0x7f594db2cca7 in instrumentation_level_barrier src/core/frame.c:74
#5 0x7f594db2f95f in MVM_frame_invoke src/core/frame.c:317
#6 0x7f594dbf98b2 in invoke_handler src/6model/reprs/MVMCode.c:10
#7 0x7f594daf048d in MVM_interp_run src/core/interp.c:894
#8 0x7f594db4a3d4 in start_thread src/core/threads.c:77
#9 0x7f594dd82e16 in uv__thread_start 3rdparty/libuv/src/unix/thread.c:49
Thread T6 created by T0 here:
#0 0x7f594e673673 in pthread_create (/lib64/libasan.so.2+0x36673)
#1 0x7f594dd82e5f in uv_thread_create 3rdparty/libuv/src/unix/thread.c:66
Thread T10 created by T0 here:
#0 0x7f594e673673 in pthread_create (/lib64/libasan.so.2+0x36673)
#1 0x7f594dd82e5f in uv_thread_create 3rdparty/libuv/src/unix/thread.c:66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment