Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created November 23, 2016 15:24
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 dogbert17/6dbc29f58673115a37fd92a89d1166da to your computer and use it in GitHub Desktop.
Save dogbert17/6dbc29f58673115a37fd92a89d1166da to your computer and use it in GitHub Desktop.
Panic
dogbert@dogbert-VirtualBox ~/repos/rakudo $ gdb --args /home/dogbert/repos/rakudo/install/bin/moar --libpath="/home/dogbert/repos/rakudo/install/share/nqp/lib" --libpath="." /home/dogbert/repos/rakudo/perl6.moarvm -I lib t/spec/S04-declarations/constant.rakudo.moar
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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 "i686-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/dogbert/repos/rakudo/install/bin/moar...done.
(gdb) break 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/dogbert/repos/rakudo/install/bin/moar --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm -I lib t/spec/S04-declarations/constant.rakudo.moar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Breakpoint 1, MVM_panic (exitCode=17, messageFormat=0xb7df82f8 "Internal error: invalid thread ID %d in GC work pass") at src/core/exceptions.c:781
781 fprintf(stderr, "MoarVM panic: ");
(gdb) bt
#0 MVM_panic (exitCode=17, messageFormat=0xb7df82f8 "Internal error: invalid thread ID %d in GC work pass") at src/core/exceptions.c:781
#1 0xb7d232e0 in push_work_to_thread_in_tray (tc=0x804c450, target=3, work=0xd2821a8) at src/gc/collect.c:422
#2 0xb7d234ed in pass_leftover_work (tc=0x804c450, wtp=0xbfffdce8) at src/gc/collect.c:484
#3 0xb7d22180 in MVM_gc_collect (tc=0x804c450, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:149
#4 0xb7d1e24c in run_gc (tc=0x804c450, what_to_do=0 '\000') at src/gc/orchestrate.c:304
#5 0xb7d1e68b in MVM_gc_enter_from_allocator (tc=0x804c450) at src/gc/orchestrate.c:438
#6 0xb7d1e9a8 in MVM_gc_allocate_nursery (tc=0x804c450, size=20) at src/gc/allocation.c:32
#7 0xb7d1e8bd in MVM_gc_allocate (tc=0x804c450, size=20) at src/gc/allocation.h:13
#8 0xb7d1ea0c in MVM_gc_allocate_zeroed (tc=0x804c450, size=20) at src/gc/allocation.c:49
#9 0xb7d1ebb6 in MVM_gc_allocate_object (tc=0x804c450, st=0x806dbe8) at src/gc/allocation.c:86
#10 0xb7cce0c3 in MVM_args_set_result_str (tc=0x804c450, result=0x81a3ce8, frameless=0) at src/core/args.c:497
#11 0xb7cd4e20 in MVM_interp_run (tc=0x804c450, initial_invoke=0xb7dcca23 <toplevel_initial_invoke>, invoke_data=0x80b5a40) at src/core/interp.c:422
#12 0xb7dccb52 in MVM_vm_run_file (instance=0x804c008, filename=0xbffff2d5 "/home/dogbert/repos/rakudo/perl6.moarvm") at src/moar.c:309
#13 0x08048ea6 in main (argc=7, argv=0xbffff084) at src/main.c:192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment