Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Last active February 18, 2021 16:32
Show Gist options
  • Save dogbert17/5c6a632a646087321a88bbe2bfed97fa to your computer and use it in GitHub Desktop.
Save dogbert17/5c6a632a646087321a88bbe2bfed97fa to your computer and use it in GitHub Desktop.
GC related error wheb running test script in the module p6-jupyter-kernel
(gdb) r
Starting program: /home/dogbert/.rakudobrew/versions/moar-master/install/bin/rakudo-m -Ilib t/20-end-to-end.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7242700 (LWP 226459)]
[New Thread 0x7fffef6ca700 (LWP 226460)]
[New Thread 0x7fffeeec9700 (LWP 226461)]
Thread 1 "rakudo-m" hit Breakpoint 1, MVM_panic (exitCode=0, messageFormat=0x0) at src/core/exceptions.c:844
844 MVM_NO_RETURN void MVM_panic(MVMint32 exitCode, const char *messageFormat, ...) {
(gdb) bt
#0 MVM_panic (exitCode=0, messageFormat=0x0) at src/core/exceptions.c:844
#1 0x00007ffff78965bf in MVM_gc_mark_collectable (tc=0x55555555a180, worklist=0x55555a0e7a90, new_addr=0x55555a14bcb8) at src/gc/collect.c:395
#2 0x00007ffff7892737 in MVM_gc_root_add_gen2s_to_worklist (tc=0x55555555a180, worklist=0x55555a0e7a90) at src/gc/roots.c:349
#3 0x00007ffff7895567 in MVM_gc_collect (tc=0x55555555a180, what_to_do=1 '\001', gen=0 '\000') at src/gc/collect.c:155
#4 0x00007ffff7889366 in run_gc (tc=0x55555555a180, what_to_do=1 '\001') at src/gc/orchestrate.c:443
#5 0x00007ffff7889fdb in MVM_gc_enter_from_interrupt (tc=0x55555555a180) at src/gc/orchestrate.c:728
#6 0x00007ffff7888f49 in MVM_gc_mark_thread_blocked (tc=0x55555555a180) at src/gc/orchestrate.c:313
#7 0x00007ffff790575c in MVM_reentrantmutex_lock (tc=0x55555555a180, rm=0x55555a1d5a10) at src/6model/reprs/ReentrantMutex.c:143
#8 0x00007ffff792eed0 in MVM_serialization_demand_object (tc=0x55555555a180, sc=0x555559f8c6c0, idx=214) at src/6model/serialization.c:2926
#9 0x00007ffff7922a30 in MVM_sc_get_object (tc=0x55555555a180, sc=0x55555555bc50, idx=214) at src/6model/sc.c:227
#10 0x00007ffff79296d8 in read_obj_ref (tc=0x55555555a180, reader=0x55555a0e44f0) at src/6model/serialization.c:1809
#11 0x00007ffff7929c91 in MVM_serialization_read_ref (tc=0x55555555a180, reader=0x55555a0e44f0) at src/6model/serialization.c:1952
#12 0x00007ffff792d427 in deserialize_stable (tc=0x55555555a180, reader=0x55555a0e44f0, i=18, st=0x55555a14bcb8) at src/6model/serialization.c:2740
#13 0x00007ffff792ed9c in work_loop (tc=0x55555555a180, sr=0x55555a0e44f0) at src/6model/serialization.c:2906
#14 0x00007ffff79306c8 in MVM_serialization_deserialize (tc=0x55555555a180, sc=0x55555555bc50, string_heap=0x5555555c2650, codes_static=0x55555555bca8, repo_conflicts=0x55555555bc70, data=0x0)
at src/6model/serialization.c:3383
#15 0x00007ffff78223e9 in MVM_interp_run (tc=0x55555555a180, initial_invoke=0x7ffff79c8ffb <toplevel_initial_invoke>, invoke_data=0x555555611108, outer_runloop=0x0) at src/core/interp.c:3227
#16 0x00007ffff79c9181 in MVM_vm_run_file (instance=0x555555559660, filename=0x5555555595e0 "/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/perl6.moarvm") at src/moar.c:504
#17 0x00005555555558e9 in main ()
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7ffff7286440 (LWP 226458) "rakudo-m" MVM_panic (exitCode=0, messageFormat=0x0) at src/core/exceptions.c:844
2 Thread 0x7ffff7242700 (LWP 226459) "spesh optimizer" futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5555555f3f40) at ../sysdeps/nptl/futex-internal.h:183
3 Thread 0x7fffef6ca700 (LWP 226460) "rakudo-m" futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555555559778) at ../sysdeps/nptl/futex-internal.h:183
4 Thread 0x7fffeeec9700 (LWP 226461) "rakudo-m" 0x00007ffff74df3bf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7fffeeec7520, rem=0x7fffeeec7520)
at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
(gdb) f 1
#1 0x00007ffff78965bf in MVM_gc_mark_collectable (tc=0x55555555a180, worklist=0x55555a0e7a90, new_addr=0x55555a14bcb8) at src/gc/collect.c:395
395 MVM_gc_worklist_add(tc, worklist, &new_addr_st->boolification_spec->method);
(gdb) p MVM_dump_backtrace(tc)
at <unknown>:1 (/home/dogbert/repos/p6-jupyter-kernel/lib/.precomp/3DDAF1D91D3A63D9158239054804149FA2492C39/52/52892034F8FC22EC14805D2CE55F6CB73C36027B:<dependencies+deserialize>)
from SETTING::src/core.c/CompUnit/Loader.pm6:51 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:load-precompilation-file)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:88 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:load-handle-for-path)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:205 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:203 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Lock.pm6:25 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:protect)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:202 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:load-dependencies)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:271 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:270 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:load)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:59 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:try-load)
from SETTING::src/core.c/CompUnit/Repository/FileSystem.pm6:82 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/CompUnit/Repository/FileSystem.pm6:76 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:need)
from SETTING::src/core.c/CompUnit/Repository/FileSystem.pm6:101 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:need)
from gen/moar/World.nqp:1496 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/World.moarvm:load_module)
from gen/moar/World.nqp:1446 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/World.moarvm:do_pragma_or_load_module)
from gen/moar/Grammar.nqp:1314 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:statement_control:sym<use>)
from gen/moar/stage2/QRegex.nqp:1695 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/QRegex.moarvm:!protoregex)
from <unknown>:1 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:statement_control)
from gen/moar/Grammar.nqp:962 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:statement)
from gen/moar/Grammar.nqp:890 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:statementlist)
from gen/moar/stage2/NQPHLL.nqp:1465 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:LANG)
from gen/moar/Grammar.nqp:1342 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:FOREIGN_LANG)
from gen/moar/Grammar.nqp:838 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:comp_unit)
from gen/moar/Grammar.nqp:553 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Grammar.moarvm:TOP)
from gen/moar/stage2/QRegex.nqp:2258 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/QRegex.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:2298 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:2214 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:execute_stage)
from gen/moar/stage2/NQPHLL.nqp:2249 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:run)
from gen/moar/stage2/NQPHLL.nqp:2245 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:2241 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:compile)
from gen/moar/stage2/NQPHLL.nqp:1916 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:2151 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:2081 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
from gen/moar/Compiler.nqp:109 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:2036 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/rakudo.nqp:127 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/rakudo.nqp:1 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/perl6.moarvm:<mainline>)
from <unknown>:1 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/perl6.moarvm:<main>)
from <unknown>:1 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/perl6.moarvm:<entry>)
$1 = void
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment