Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created January 5, 2018 17:01
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/a7cb8eaf81dddebd31973efc2dc29c5f to your computer and use it in GitHub Desktop.
Save dogbert17/a7cb8eaf81dddebd31973efc2dc29c5f to your computer and use it in GitHub Desktop.
Panic when running t/04-nativecall/11-cpp.t
(gdb) r
Starting program: /home/dilbert/repos/rakudo/install/bin/moar --execname=./perl6-gdb-m --libpath=. --libpath=blib --libpath=/home/dilbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dilbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dilbert/repos/rakudo/install/share/nqp/lib /home/dilbert/repos/rakudo/perl6.moarvm --nqp-lib=blib t/04-nativecall/11-cpp.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6773700 (LWP 3269)]
Thread 1 "moar" hit Breakpoint 1, MVM_panic (exitCode=1, messageFormat=0x7ffff77ee188 "Adding pointer %p to past fromspace to GC worklist") at src/core/exceptions.c:820
820 void MVM_panic(MVMint32 exitCode, const char *messageFormat, ...) {
(gdb) bt
#0 MVM_panic (exitCode=1, messageFormat=0x7ffff77ee188 "Adding pointer %p to past fromspace to GC worklist") at src/core/exceptions.c:820
#1 0x00007ffff7705eee in gc_mark_repr_data (tc=0x6049f0, st=0x33906c8, worklist=0x474ef60) at src/6model/reprs/CPPStruct.c:633
#2 0x00007ffff76a87ba in MVM_gc_mark_collectable (tc=0x6049f0, worklist=0x474ef60, new_addr=0x33906c8) at src/gc/collect.c:408
#3 0x00007ffff76a3afe in MVM_gc_root_add_gen2s_to_worklist (tc=0x6049f0, worklist=0x474ef60) at src/gc/roots.c:302
#4 0x00007ffff76a5e81 in MVM_gc_collect (tc=0x6049f0, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:155
#5 0x00007ffff769dbb5 in run_gc (tc=0x6049f0, what_to_do=0 '\000') at src/gc/orchestrate.c:369
#6 0x00007ffff769e01f in MVM_gc_enter_from_allocator (tc=0x6049f0) at src/gc/orchestrate.c:486
#7 0x00007ffff769e4ea in MVM_gc_allocate_nursery (tc=0x6049f0, size=64) at src/gc/allocation.c:32
#8 0x00007ffff769e3ed in MVM_gc_allocate (tc=0x6049f0, size=64) at src/gc/allocation.h:13
#9 0x00007ffff769e56a in MVM_gc_allocate_zeroed (tc=0x6049f0, size=64) at src/gc/allocation.c:49
#10 0x00007ffff769e895 in MVM_gc_allocate_object (tc=0x6049f0, st=0x64b790) at src/gc/allocation.c:86
#11 0x00007ffff76c36d3 in MVM_repr_alloc_init (tc=0x6049f0, type=0x655a88) at src/6model/reprconv.c:17
#12 0x00007ffff76e7e13 in MVM_iter (tc=0x6049f0, target=0x7ffff7fa95a8) at src/6model/reprs/MVMIter.c:203
#13 0x00007ffff53e9090 in ?? ()
#14 0x0000000000000007 in ?? ()
#15 0x0000000000000030 in ?? ()
#16 0x0000000000605ed0 in ?? ()
#17 0x00000000006049f0 in ?? ()
#18 0x00000000018366f0 in ?? ()
#19 0x00000000018366f0 in ?? ()
#20 0x00007ffff5e9e498 in ?? ()
#21 0x00000000006049f0 in ?? ()
#22 0x00007fffffffc440 in ?? ()
#23 0x00007ffff76d1447 in bind_key (tc=0xd034c434d77d2100, st=0x7ffff7f84030, root=0x7ffff76d1447 <bind_key+2481>, data=0x7fffffffc440, key_obj=0x6049f0, value=..., kind=0) at src/6model/reprs/MVMHash.c:98
#24 0x00007ffff779ad5b in MVM_jit_enter_code (tc=0x6049f0, cu=0x7ed268, code=0x7ffff03f6260) at src/jit/compile.c:335
#25 0x00007ffff766b332 in MVM_interp_run (tc=0x6049f0, initial_invoke=0x7ffff7789f1a <toplevel_initial_invoke>, invoke_data=0x66cd90) at src/core/interp.c:5729
#26 0x00007ffff778a07f in MVM_vm_run_file (instance=0x604010, filename=0x7fffffffe2d1 "/home/dilbert/repos/rakudo/perl6.moarvm") at src/moar.c:401
#27 0x0000000000401459 in main (argc=10, argv=0x7fffffffde38) at src/main.c:256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment