Skip to content

Instantly share code, notes, and snippets.

@jnthn
Last active September 28, 2016 16:13
Show Gist options
  • Save jnthn/7d2cefda9d88151fb91ba5a62e6c7b4f to your computer and use it in GitHub Desktop.
Save jnthn/7d2cefda9d88151fb91ba5a62e6c7b4f to your computer and use it in GitHub Desktop.
==25844== Thread 4:
==25844== Invalid free() / delete / delete[] / realloc()
==25844== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25844== by 0x4F907C1: MVM_args_proc_cleanup_for_cache (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4F907F0: MVM_args_proc_cleanup (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FB0EEB: MVM_frame_destroy (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FD0C6C: MVM_gc_collect_free_nursery_uncopied (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FCCBF6: run_gc (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FAB820: MVM_interp_run (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FBA1CD: start_thread (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5B95183: start_thread (pthread_create.c:312)
==25844== by 0x55BC37C: clone (clone.S:111)
==25844== Address 0x1abb1f10 is 0 bytes inside a block of size 6 free'd
==25844== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25844== by 0x4F907C1: MVM_args_proc_cleanup_for_cache (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FB66DA: MVM_frame_try_return (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FAA0D8: MVM_interp_run (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FBA1CD: start_thread (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5B95183: start_thread (pthread_create.c:312)
==25844== by 0x55BC37C: clone (clone.S:111)
==25844==
==25844== Invalid free() / delete / delete[] / realloc()
==25844== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25844== by 0x4F907D2: MVM_args_proc_cleanup_for_cache (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4F907F0: MVM_args_proc_cleanup (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FB0EEB: MVM_frame_destroy (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FD0C6C: MVM_gc_collect_free_nursery_uncopied (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FCCBF6: run_gc (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FAB820: MVM_interp_run (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FBA1CD: start_thread (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5B95183: start_thread (pthread_create.c:312)
==25844== by 0x55BC37C: clone (clone.S:111)
==25844== Address 0x6450af0 is 0 bytes inside a block of size 96 free'd
==25844== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25844== by 0x4F907D2: MVM_args_proc_cleanup_for_cache (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FB66DA: MVM_frame_try_return (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FAA0D8: MVM_interp_run (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x4FBA1CD: start_thread (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==25844== by 0x5B95183: start_thread (pthread_create.c:312)
==25844== by 0x55BC37C: clone (clone.S:111)
==25844==
==2123== Thread 9:
==2123== Invalid read of size 1
==2123== at 0x4FCF627: MVM_gc_root_add_frame_registers_to_worklist (roots.c:421)
==2123== by 0x4FCF92A: MVM_gc_root_add_frame_roots_to_worklist (roots.c:374)
==2123== by 0x4FCF326: MVM_gc_root_add_gen2s_to_worklist (roots.c:287)
==2123== by 0x4FD0AD0: MVM_gc_collect (collect.c:127)
==2123== by 0x4FCC9B5: run_gc (orchestrate.c:304)
==2123== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (orchestrate.c:486)
==2123== by 0x188690F5: ???
==2123== by 0x5038A38: MVM_jit_enter_code (compile.c:136)
==2123== by 0x4F9E1A2: MVM_interp_run (interp.c:5535)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== Address 0x200f1690 is 0 bytes inside a block of size 6 free'd
==2123== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2123== by 0x4F907C1: MVM_free (alloc.h:29)
==2123== by 0x4F907C1: MVM_args_proc_cleanup_for_cache (args.c:36)
==2123== by 0x4FB66DA: remove_one_frame (frame.c:797)
==2123== by 0x4FB66DA: MVM_frame_try_return (frame.c:903)
==2123== by 0x4FAA0D8: MVM_interp_run (interp.c:431)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== by 0x55BC37C: clone (clone.S:111)
==2123==
==2123== Invalid read of size 8
==2123== at 0x4FCF67D: MVM_gc_root_add_frame_registers_to_worklist (roots.c:427)
==2123== by 0x4FCF92A: MVM_gc_root_add_frame_roots_to_worklist (roots.c:374)
==2123== by 0x4FCF326: MVM_gc_root_add_gen2s_to_worklist (roots.c:287)
==2123== by 0x4FD0AD0: MVM_gc_collect (collect.c:127)
==2123== by 0x4FCC9B5: run_gc (orchestrate.c:304)
==2123== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (orchestrate.c:486)
==2123== by 0x188690F5: ???
==2123== by 0x5038A38: MVM_jit_enter_code (compile.c:136)
==2123== by 0x4F9E1A2: MVM_interp_run (interp.c:5535)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== Address 0xa561df0 is 0 bytes inside a block of size 96 free'd
==2123== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2123== by 0x4F907D2: MVM_free (alloc.h:29)
==2123== by 0x4F907D2: MVM_args_proc_cleanup_for_cache (args.c:40)
==2123== by 0x4FB66DA: remove_one_frame (frame.c:797)
==2123== by 0x4FB66DA: MVM_frame_try_return (frame.c:903)
==2123== by 0x4FAA0D8: MVM_interp_run (interp.c:431)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== by 0x55BC37C: clone (clone.S:111)
==2123==
==2123== Invalid read of size 8
==2123== at 0x4FCF63A: MVM_gc_root_add_frame_registers_to_worklist (roots.c:423)
==2123== by 0x4FCF92A: MVM_gc_root_add_frame_roots_to_worklist (roots.c:374)
==2123== by 0x4FCF326: MVM_gc_root_add_gen2s_to_worklist (roots.c:287)
==2123== by 0x4FD0AD0: MVM_gc_collect (collect.c:127)
==2123== by 0x4FCC9B5: run_gc (orchestrate.c:304)
==2123== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (orchestrate.c:486)
==2123== by 0x188690F5: ???
==2123== by 0x5038A38: MVM_jit_enter_code (compile.c:136)
==2123== by 0x4F9E1A2: MVM_interp_run (interp.c:5535)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== Address 0xa561e00 is 16 bytes inside a block of size 96 free'd
==2123== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2123== by 0x4F907D2: MVM_free (alloc.h:29)
==2123== by 0x4F907D2: MVM_args_proc_cleanup_for_cache (args.c:40)
==2123== by 0x4FB66DA: remove_one_frame (frame.c:797)
==2123== by 0x4FB66DA: MVM_frame_try_return (frame.c:903)
==2123== by 0x4FAA0D8: MVM_interp_run (interp.c:431)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== by 0x55BC37C: clone (clone.S:111)
==2123==
==2123== Invalid read of size 1
==2123== at 0x4FCF68B: MVM_gc_root_add_frame_registers_to_worklist (roots.c:427)
==2123== by 0x4FCF92A: MVM_gc_root_add_frame_roots_to_worklist (roots.c:374)
==2123== by 0x4FCF326: MVM_gc_root_add_gen2s_to_worklist (roots.c:287)
==2123== by 0x4FD0AD0: MVM_gc_collect (collect.c:127)
==2123== by 0x4FCC9B5: run_gc (orchestrate.c:304)
==2123== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (orchestrate.c:486)
==2123== by 0x1883E119: ???
==2123== by 0x5038A38: MVM_jit_enter_code (compile.c:136)
==2123== by 0x4F9E1A2: MVM_interp_run (interp.c:5535)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
==2123== Address 0x10000000c is not stack'd, malloc'd or (recently) free'd
==2123==
==2123==
==2123== Process terminating with default action of signal 11 (SIGSEGV)
==2123== Access not within mapped region at address 0x10000000C
==2123== at 0x4FCF68B: MVM_gc_root_add_frame_registers_to_worklist (roots.c:427)
==2123== by 0x4FCF92A: MVM_gc_root_add_frame_roots_to_worklist (roots.c:374)
==2123== by 0x4FCF326: MVM_gc_root_add_gen2s_to_worklist (roots.c:287)
==2123== by 0x4FD0AD0: MVM_gc_collect (collect.c:127)
==2123== by 0x4FCC9B5: run_gc (orchestrate.c:304)
==2123== by 0x4FCCEE2: MVM_gc_enter_from_interrupt (orchestrate.c:486)
==2123== by 0x1883E119: ???
==2123== by 0x5038A38: MVM_jit_enter_code (compile.c:136)
==2123== by 0x4F9E1A2: MVM_interp_run (interp.c:5535)
==2123== by 0x4FBA1CD: start_thread (threads.c:77)
==2123== by 0x5081316: uv__thread_start (in /home/jnthn/dev/MoarVM/install/lib/libmoar.so)
==2123== by 0x5B95183: start_thread (pthread_create.c:312)
Thread 5 (Thread 0x7fffee7fb700 (LWP 2943)):
#0 __memcmp_sse4_1 () at ../sysdeps/x86_64/multiarch/memcmp-sse4.S:1212
#1 0x00007ffff7957446 in MVM_string_substrings_equal_nocheck (tc=0x31ffd20, a=<optimized out>, starta=<optimized out>, length=6, b=<optimized out>, startb=0) at src/strings/ops.c:138
#2 0x00007ffff78afcff in MVM_interp_run (tc=0x7fffe81bdbe8, tc@entry=0x31ffd20, initial_invoke=0xce7cd0, invoke_data=0x18, invoke_data@entry=0x31bb170) at src/core/interp.c:1403
#3 0x00007ffff78d21ce in start_thread (data=0x31bb170) at src/core/threads.c:77
#4 0x00007ffff7999317 in uv.thread_start () from //home/jnthn/dev/MoarVM/install/lib/libmoar.so
#5 0x00007ffff6e6e184 in start_thread (arg=0x7fffee7fb700) at pthread_create.c:312
#6 0x00007ffff748437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 4 (Thread 0x7fffef3fd700 (LWP 2942)):
#0 0x00007ffff790445c in gc_free (tc=0x31deac0, obj=0x7fffef5bd658) at src/6model/reprs/MVMHash.c:62
#1 0x00007ffff78e8c94 in MVM_gc_collect_free_nursery_uncopied (tc=0x31deac0, limit=0x7fffef5dbc28) at src/gc/collect.c:580
#2 0x00007ffff78e4bf7 in run_gc (tc=tc@entry=0x31deac0, what_to_do=what_to_do@entry=1 '\001') at src/gc/orchestrate.c:328
#3 0x00007ffff78e4ee3 in MVM_gc_enter_from_interrupt (tc=0x31deac0) at src/gc/orchestrate.c:486
#4 0x00007ffff51d62df in ?? ()
#5 0x0000000000000008 in ?? ()
#6 0x00007ffff78c9904 in MVM_frame_invoke (tc=<optimized out>, static_frame=<optimized out>, callsite=<optimized out>, args=0x7fffef3fcc10, outer=<optimized out>, code_ref=<optimized out>, spesh_cand=-1) at src/core/frame.c:580
#7 0x00007ffff7950a39 in MVM_jit_enter_code (tc=<optimized out>, cu=<optimized out>, code=<optimized out>) at src/jit/compile.c:136
#8 0x00007ffff78b61a3 in MVM_interp_run (tc=tc@entry=0x31deac0, initial_invoke=0x0, invoke_data=0x7ffff7904440 <gc_free>, invoke_data@entry=0x31b6790) at src/core/interp.c:5535
#9 0x00007ffff78d21ce in start_thread (data=0x31b6790) at src/core/threads.c:77
#10 0x00007ffff7999317 in uv.thread_start () from //home/jnthn/dev/MoarVM/install/lib/libmoar.so
#11 0x00007ffff6e6e184 in start_thread (arg=0x7fffef3fd700) at pthread_create.c:312
#12 0x00007ffff748437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 3 (Thread 0x7fffeffff700 (LWP 2941)):
#0 0x00007ffff73c0c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff73c4028 in __GI_abort () at abort.c:89
#2 0x00007ffff73fd2a4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff750b6b0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff740955e in malloc_printerr (ptr=<optimized out>, str=0x7ffff750b7e0 "double free or corruption (out)", action=1) at malloc.c:4996
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5 0x00007ffff78e8c94 in MVM_gc_collect_free_nursery_uncopied (tc=0x31ba7a0, limit=0x7ffff4453e58) at src/gc/collect.c:580
#6 0x00007ffff78e4bf7 in run_gc (tc=tc@entry=0x31ba7a0, what_to_do=what_to_do@entry=1 '\001') at src/gc/orchestrate.c:328
#7 0x00007ffff78e4ee3 in MVM_gc_enter_from_interrupt (tc=0x31ba7a0) at src/gc/orchestrate.c:486
#8 0x00007ffff78e58c5 in MVM_gc_allocate_nursery (tc=tc@entry=0x31ba7a0, size=48) at src/gc/allocation.c:18
#9 0x00007ffff78e58fc in MVM_gc_allocate (size=<optimized out>, tc=tc@entry=0x31ba7a0) at src/gc/allocation.h:13
#10 MVM_gc_allocate_zeroed (tc=tc@entry=0x31ba7a0, size=<optimized out>) at src/gc/allocation.c:49
#11 0x00007ffff78e5af8 in MVM_gc_allocate_object (tc=0x31ba7a0, st=<optimized out>) at src/gc/allocation.c:86
#12 0x00007ffff795e102 in MVM_string_chr (tc=0x31ba7a0, cp=99) at src/strings/ops.c:1780
#13 0x00007ffff78bbb8f in MVM_interp_run (tc=0xb7b, tc@entry=0x31ba7a0, initial_invoke=0x0, invoke_data=0x6, invoke_data@entry=0x31b6390) at src/core/interp.c:1572
#14 0x00007ffff78d21ce in start_thread (data=0x31b6390) at src/core/threads.c:77
#15 0x00007ffff7999317 in uv.thread_start () from //home/jnthn/dev/MoarVM/install/lib/libmoar.so
#16 0x00007ffff6e6e184 in start_thread (arg=0x7fffeffff700) at pthread_create.c:312
#17 0x00007ffff748437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 2 (Thread 0x7ffff4dc2700 (LWP 2940)):
#0 MVM_interp_run (tc=tc@entry=0x31923e0, initial_invoke=0x7fffe820a1d0, invoke_data=0x7fffe81d7f10, invoke_data@entry=0x31b36f0) at src/core/interp.c:5307
#1 0x00007ffff78d21ce in start_thread (data=0x31b36f0) at src/core/threads.c:77
#2 0x00007ffff7999317 in uv.thread_start () from //home/jnthn/dev/MoarVM/install/lib/libmoar.so
#3 0x00007ffff6e6e184 in start_thread (arg=0x7ffff4dc2700) at pthread_create.c:312
#4 0x00007ffff748437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 1 (Thread 0x7ffff7fd8740 (LWP 2939)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x00007ffff7999809 in uv_cond_wait () from //home/jnthn/dev/MoarVM/install/lib/libmoar.so
#2 0x00007ffff791a698 in MVM_conditionvariable_wait (tc=0x6037c0, cv=<optimized out>) at src/6model/reprs/ConditionVariable.c:135
#3 0x00007ffff78b1e0f in MVM_interp_run (tc=0x32777b4, tc@entry=0x6037c0, initial_invoke=0xfffffffffffffe00, invoke_data=0x1) at src/core/interp.c:4043
#4 0x00007ffff797b049 in MVM_vm_run_file (instance=0x603010, filename=0x7fffffffe160 "/home/jnthn/dev/rakudo/perl6.moarvm") at src/moar.c:304
#5 0x0000000000401037 in main (argc=7, argv=0x7fffffffdce8) at src/main.c:191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment