Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active August 30, 2017 13:11
Show Gist options
  • Save MasterDuke17/c9b2ad8c1fe99fa274e61b0f097d4e40 to your computer and use it in GitHub Desktop.
Save MasterDuke17/c9b2ad8c1fe99fa274e61b0f097d4e40 to your computer and use it in GitHub Desktop.
Thread 1 "moar" received signal SIGSEGV, Segmentation fault.
0x00007ffff77f509e in MVM_spesh_sim_stack_gc_mark (tc=tc@entry=0x555555758960, sims=0x7ffff00608d0, worklist=worklist@entry=0x0) at src/spesh/stats.c:716
716 MVM_gc_worklist_add(tc, worklist, &(simf->sf));
(gdb) bt
#0 0x00007ffff77f509e in MVM_spesh_sim_stack_gc_mark (tc=tc@entry=0x555555758960, sims=0x7ffff00608d0, worklist=worklist@entry=0x0) at src/spesh/stats.c:716
#1 0x00007ffff7791d7e in MVM_gc_root_add_tc_roots_to_worklist (tc=tc@entry=0x555555758960, worklist=worklist@entry=0x0, snapshot=snapshot@entry=0x7fffffffd480) at src/gc/roots.c:183
#2 0x00007ffff78309fd in process_workitems (ss=0x7fffffffd480, tc=0x555555758960) at src/profiler/heapsnapshot.c:486
#3 record_snapshot (hs=<optimized out>, col=0x555558600fb0, tc=0x555555758960) at src/profiler/heapsnapshot.c:596
#4 MVM_profile_heap_take_snapshot (tc=tc@entry=0x555555758960) at src/profiler/heapsnapshot.c:611
#5 0x00007ffff778ffa4 in finish_gc (is_coordinator=<optimized out>, gen=<optimized out>, tc=<optimized out>) at src/gc/orchestrate.c:179
#6 run_gc (tc=tc@entry=0x555555758960, what_to_do=what_to_do@entry=0 '\000') at src/gc/orchestrate.c:358
#7 0x00007ffff7790727 in MVM_gc_enter_from_allocator (tc=tc@entry=0x555555758960) at src/gc/orchestrate.c:466
#8 0x00007ffff77908d8 in MVM_gc_allocate_nursery (tc=0x555555758960, size=40) at src/gc/allocation.c:32
#9 0x00007ffff7790b1b in MVM_gc_allocate_object (tc=0x555555758960, st=<optimized out>) at src/gc/allocation.c:86
#10 0x00007ffff77a3d33 in MVM_repr_alloc_init (tc=tc@entry=0x555555758960, type=type@entry=0x555555ef3c50) at src/6model/reprconv.c:17
#11 0x00007ffff77a5899 in MVM_repr_box_str (tc=0x555555758960, type=0x555555ef3c50, val=<optimized out>) at src/6model/reprconv.c:590
#12 0x00007ffff50120e6 in p6box_s (tc=<optimized out>, cur_op=<optimized out>) at src/vm/moar/ops/perl6_ops.c:213
#13 0x00007ffff77616f7 in MVM_interp_run (tc=tc@entry=0x555555758960, initial_invoke=0x5555557d1000, invoke_data=0x82) at src/core/interp.c:5848
#14 0x00007ffff7834f42 in MVM_vm_run_file (instance=0x555555758010, filename=<optimized out>) at src/moar.c:356
#15 0x000055555555541f in main (argc=9, argv=0x7fffffffdcd8) at src/main.c:255
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7ffff7fc5700 (LWP 540) "moar" 0x00007ffff77f509e in MVM_spesh_sim_stack_gc_mark (tc=tc@entry=0x555555758960, sims=0x7ffff00608d0, worklist=worklist@entry=0x0) at src/spesh/stats.c:716
2 Thread 0x7ffff60e7700 (LWP 544) "moar" pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
(gdb) thread 2
[Switching to thread 2 (Thread 0x7ffff60e7700 (LWP 544))]
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
185 ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
(gdb) bt
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x00007ffff7855009 in uv_cond_wait () from //home/dan/Source/perl6/install/lib/libmoar.so
#2 0x00007ffff778fd2b in finish_gc (is_coordinator=<optimized out>, gen=<optimized out>, tc=<optimized out>) at src/gc/orchestrate.c:193
#3 run_gc (tc=tc@entry=0x5555557bcd20, what_to_do=what_to_do@entry=1 '\001') at src/gc/orchestrate.c:358
#4 0x00007ffff779023f in MVM_gc_enter_from_interrupt (tc=tc@entry=0x5555557bcd20) at src/gc/orchestrate.c:521
#5 0x00007ffff77f3208 in worker (tc=0x5555557bcd20, callsite=<optimized out>, args=<optimized out>) at src/spesh/worker.c:13
#6 0x00007ffff777f4a1 in thread_initial_invoke (tc=0x5555557bcd20, data=<optimized out>) at src/core/threads.c:59
#7 0x00007ffff775d40f in MVM_interp_run (tc=0x55555575813c, tc@entry=0x5555557bcd20, initial_invoke=0xfffffffffffffe00, invoke_data=0x1, invoke_data@entry=0x5555557be430) at src/core/interp.c:88
#8 0x00007ffff777f508 in start_thread (data=0x5555557be430) at src/core/threads.c:83
#9 0x00007ffff7854b07 in uv.thread_start () from //home/dan/Source/perl6/install/lib/libmoar.so
#10 0x00007ffff6cfd6da in start_thread (arg=0x7ffff60e7700) at pthread_create.c:456
#11 0x00007ffff7325d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
==395== Invalid read of size 1
==395== at 0x504B09E: MVM_spesh_sim_stack_gc_mark (stats.c:716)
==395== by 0x50869FC: process_workitems (heapsnapshot.c:486)
==395== by 0x50869FC: record_snapshot (heapsnapshot.c:596)
==395== by 0x50869FC: MVM_profile_heap_take_snapshot (heapsnapshot.c:611)
==395== by 0x4FE5FA3: finish_gc (orchestrate.c:179)
==395== by 0x4FE5FA3: run_gc (orchestrate.c:358)
==395== by 0x4FE6726: MVM_gc_enter_from_allocator (orchestrate.c:466)
==395== by 0x4FE68D7: MVM_gc_allocate_nursery (allocation.c:32)
==395== by 0x4FE6B1A: MVM_gc_allocate_object (allocation.c:86)
==395== by 0x4FF9D32: MVM_repr_alloc_init (reprconv.c:17)
==395== by 0x4FB1DE2: MVM_exception_backtrace (exceptions.c:411)
==395== by 0x4FB663A: MVM_interp_run (interp.c:3925)
==395== by 0x508AF41: MVM_vm_run_file (moar.c:356)
==395== by 0x10941E: main (main.c:255)
==395== Address 0x10 is not stack'd, malloc'd or (recently) free'd
==395==
==395==
==395== Process terminating with default action of signal 11 (SIGSEGV)
==395== Access not within mapped region at address 0x10
==395== at 0x504B09E: MVM_spesh_sim_stack_gc_mark (stats.c:716)
==395== by 0x50869FC: process_workitems (heapsnapshot.c:486)
==395== by 0x50869FC: record_snapshot (heapsnapshot.c:596)
==395== by 0x50869FC: MVM_profile_heap_take_snapshot (heapsnapshot.c:611)
==395== by 0x4FE5FA3: finish_gc (orchestrate.c:179)
==395== by 0x4FE5FA3: run_gc (orchestrate.c:358)
==395== by 0x4FE6726: MVM_gc_enter_from_allocator (orchestrate.c:466)
==395== by 0x4FE68D7: MVM_gc_allocate_nursery (allocation.c:32)
==395== by 0x4FE6B1A: MVM_gc_allocate_object (allocation.c:86)
==395== by 0x4FF9D32: MVM_repr_alloc_init (reprconv.c:17)
==395== by 0x4FB1DE2: MVM_exception_backtrace (exceptions.c:411)
==395== by 0x4FB663A: MVM_interp_run (interp.c:3925)
==395== by 0x508AF41: MVM_vm_run_file (moar.c:356)
==395== by 0x10941E: main (main.c:255)
==395== If you believe this happened as a result of a stack
==395== overflow in your program's main thread (unlikely but
==395== possible), you can try to increase the size of the
==395== main thread stack using the --main-stacksize= flag.
==395== The main thread stack size used in this run was 8388608.
==395==
==395== HEAP SUMMARY:
==395== in use at exit: 150,791,313 bytes in 738,650 blocks
==395== total heap usage: 828,913 allocs, 90,263 frees, 249,089,432 bytes allocated
==395==
==395== LEAK SUMMARY:
==395== definitely lost: 496 bytes in 40 blocks
==395== indirectly lost: 0 bytes in 0 blocks
==395== possibly lost: 25,514,936 bytes in 455,623 blocks
==395== still reachable: 125,275,881 bytes in 282,987 blocks
==395== suppressed: 0 bytes in 0 blocks
==395== Rerun with --leak-check=full to see details of leaked memory
==395==
==395== For counts of detected and suppressed errors, rerun with: -v
==395== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment