Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created August 31, 2021 07:39
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 MasterDuke17/8d2287308381ec82c6d33ec51e00bbad to your computer and use it in GitHub Desktop.
Save MasterDuke17/8d2287308381ec82c6d33ec51e00bbad to your computer and use it in GitHub Desktop.
[dan@alexandria rakudo]$ MVM_JIT_PERF_MAP=1 gdb --args '/home/dan/Source/perl6/install/bin/moar' --libpath='/home/dan/Source/perl6/rakudo/blib' --libpath='/home/dan/Source/perl6/install/share/nqp/lib' rakudo.moarvm --rakudo-home='/home/dan/Source/perl6/rakudo/gen/build_rakudo_home' --setting=NULL.c --ll-exception --optimize=3 --target=mbc --output=blib/CORE.c.setting.moarvm 'gen/moar/CORE.c.setting'
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/dan/Source/perl6/install/bin/moar...
(gdb) r
Starting program: /home/dan/Source/perl6/install/bin/moar --libpath=/home/dan/Source/perl6/rakudo/blib --libpath=/home/dan/Source/perl6/install/share/nqp/lib rakudo.moarvm --rakudo-home=/home/dan/Source/perl6/rakudo/gen/build_rakudo_home --setting=NULL.c --ll-exception --optimize=3 --target=mbc --output=blib/CORE.c.setting.moarvm gen/moar/CORE.c.setting
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff6d91640 (LWP 1305044)]
Thread 2 "spesh optimizer" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff6d91640 (LWP 1305044)]
0x00007ffff79b0d4a in MVM_jit_compile_graph (tc=tc@entry=0x5555556160d0, jg=jg@entry=0x7ffff0a0c688) at src/jit/compile.c:146
146 fprintf(tc->instance->jit_perf_map, "%lx %lx %s\n",
(gdb) bt
#0 0x00007ffff79b0d4a in MVM_jit_compile_graph (tc=tc@entry=0x5555556160d0, jg=jg@entry=0x7ffff0a0c688) at src/jit/compile.c:146
#1 0x00007ffff794aac9 in MVM_spesh_candidate_add (tc=0x5555556160d0, p=0x7ffff0930fa0) at src/6model/reprs/MVMSpeshCandidate.c:312
#2 0x00007ffff7942495 in worker (tc=0x5555556160d0, arg_info=...) at src/spesh/worker.c:29
#3 0x00007ffff789f3cd in thread_initial_invoke (tc=0x5555556160d0, data=<optimized out>) at src/core/threads.c:68
#4 0x00007ffff787419b in MVM_interp_run (tc=0x7ffff6d9041a, tc@entry=0x5555556160d0, initial_invoke=0x7ffff7d726ae, initial_invoke@entry=0x7ffff789f370 <thread_initial_invoke>, invoke_data=0x7ffff7d726ae,
invoke_data@entry=0x7ffff789f370 <thread_initial_invoke>, outer_runloop=outer_runloop@entry=0x0) at src/core/interp.c:180
#5 0x00007ffff789f499 in start_thread (data=0x5555555f19c0) at src/core/threads.c:101
#6 0x00007ffff7304259 in start_thread () from /usr/lib/libpthread.so.0
#7 0x00007ffff755e5e3 in clone () from /usr/lib/libc.so.6
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment