Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created September 10, 2020 17:54
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/9a7e3892dcab4f3b051226ab6714f873 to your computer and use it in GitHub Desktop.
Save MasterDuke17/9a7e3892dcab4f3b051226ab6714f873 to your computer and use it in GitHub Desktop.
[dan@alexandria rakudo]$ MVM_JIT_DISABLE=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 --stagestats --output=blib/CORE.c.setting.moarvm 'gen/moar/CORE.c.setting'
GNU gdb (GDB) 9.2
Copyright (C) 2020 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:
<http://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...
MoarVM string pretty printer registered
moar-heap registered
diff-moar-heap registered
(gdb) b MVM_panic
Function "MVM_panic" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (MVM_panic) pending.
(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 --stagestats --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 411757)]
Stage start : 0.000
Thread 1 "moar" hit Breakpoint 1, MVM_panic (exitCode=17, messageFormat=0x7ffff7a02778 "Internal error: zeroed target thread ID in work pass") at src/core/exceptions.c:844
844 MVM_NO_RETURN void MVM_panic(MVMint32 exitCode, const char *messageFormat, ...) {
(gdb) bt
#0 MVM_panic (exitCode=17, messageFormat=0x7ffff7a02778 "Internal error: zeroed target thread ID in work pass") at src/core/exceptions.c:844
#1 0x00007ffff788bdab in pass_work_item (tc=0x5555555be560, wtp=0x7fffffffc6a0, item_ptr=0x7ffff00bd738) at src/gc/collect.c:485
#2 0x00007ffff788a6d4 in process_worklist (tc=0x5555555be560, worklist=0x5555595d9170, wtp=0x7fffffffc6a0, gen=1 '\001') at src/gc/collect.c:240
#3 0x00007ffff788a567 in MVM_gc_collect (tc=0x5555555be560, what_to_do=1 '\001', gen=1 '\001') at src/gc/collect.c:163
#4 0x00007ffff7883cd7 in run_gc (tc=0x55555555aec0, what_to_do=0 '\000') at src/gc/orchestrate.c:444
#5 0x00007ffff78843ac in MVM_gc_enter_from_allocator (tc=0x55555555aec0) at src/gc/orchestrate.c:599
#6 0x00007ffff7884c2a in MVM_gc_allocate_nursery (tc=0x55555555aec0, size=144) at src/gc/allocation.c:37
#7 0x00007ffff78133c3 in fastcreate (tc=0x55555555aec0, cur_op=0x7ffff015fe08 "\001") at src/core/interp.c:84
#8 0x00007ffff7840729 in MVM_interp_run (tc=0x55555555aec0, initial_invoke=0x7ffff7991ad5 <toplevel_initial_invoke>, invoke_data=0x5555555d2ae8, outer_runloop=0x0) at src/core/interp.c:6031
#9 0x00007ffff7991c4f in MVM_vm_run_file (instance=0x55555555a2a0, filename=0x7fffffffe6e1 "rakudo.moarvm") at src/moar.c:486
#10 0x0000555555555c55 in main (argc=12, argv=0x7fffffffe258) at src/main.c:305
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment