Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created August 18, 2019 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 dogbert17/8ad7bc49636bba48f66e0b43ad399bc5 to your computer and use it in GitHub Desktop.
Save dogbert17/8ad7bc49636bba48f66e0b43ad399bc5 to your computer and use it in GitHub Desktop.
MasterDuke's mqtt case
dogbert@dogbert-VirtualBox ~/repos/p6-mqtt $ MVM_JIT_DISABLE=1 perl6-gdb-m --profile -Ilib t/regex.t
================================================================================================
This is Rakudo Perl 6 running in the debugger, which often allows the user to generate useful back-
traces to debug or report issues in Rakudo, the MoarVM backend or the currently running code.
This Rakudo version is 2019.07.1.172.g.23.cfe.1.c built on MoarVM version 2019.07.1.80.g.24.e.2986,
running on linuxmint (18.3.Sylvia) / linux (42.16.04.1.Ubuntu.SMP.Tue.Oct.10.16.32.20.UTC.2017)
Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help.
------------------------------------------------------------------------------------------------
Reading symbols from /home/dogbert/.rakudobrew/versions/moar-master/install/bin/perl6-m...done.
Starting program: /home/dogbert/.rakudobrew/versions/moar-master/install/bin/perl6-m --profile -Ilib t/regex.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff659f700 (LWP 21637)]
^C
Thread 1 "perl6-m" received signal SIGINT, Interrupt.
0x00007ffff7584495 in gc_mark (tc=0x604cc0, st=0x657cd8, data=0x3232598, worklist=0x3349160) at src/6model/reprs/MVMSpeshLog.c:50
50 MVM_gc_worklist_add(tc, worklist, &(log->entries[i].type.type));
(gdb) b MVM_panic
Breakpoint 1 at 0x7ffff748534e: file src/core/exceptions.c, line 832.
(gdb) c
Continuing.
ok 1 - 4.7.1.2, 'sport/tennis/player1' should match 'sport/tennis/player1/ \#'
ok 2 - 4.7.1.2, 'sport/tennis/player1/ranking' should match 'sport/tennis/player1/ \#'
ok 3 - 4.7.1.2, 'sport/tennis/player1/wimbledon' should match 'sport/tennis/player1/ \#'
ok 4 - 4.7.1.2, 'sport' should match 'sport/ \#'
ok 5 - 4.7.1.3, 'sport/tennis/player1' should match 'sport/tennis/+'
ok 6 - 4.7.1.3, 'sport/tennis/player2' should match 'sport/tennis/+'
ok 7 - 4.7.1.3, 'sport/tennis/player1/ranking' should not match 'sport/tennis/+'
ok 8 - 4.7.1.3, 'sport' should not match 'sport/+'
ok 9 - 4.7.1.3, 'sport/' should match 'sport/+'
ok 10 - 4.7.2.1, '$SYS/something' should not match ' \#'
ok 11 - 4.7.2.1, '$SYS/monitor/Clients' should not match '+/monitor/Clients'
ok 12 - 4.7.2.1, '$SYS/something' should match '$SYS/ \#'
ok 13 - 4.7.2.1, '$SYS/monitor/Clients' should match '$SYS/monitor/+'
ok 14 - '/' should match ' \#'
ok 15 - '/' should match '/ \#'
ok 16 - '/' should match '+/+'
ok 17 - '/' should match '/'
ok 18 - '/' should not match '$SYS/ \#'
ok 19 - '/' should not match '$SYS/+'
ok 20 - '/' should not match '$SYS/+/+'
ok 21 - '/' should not match '$SYS/+/bar'
ok 22 - '/' should not match '$SYS/foo'
ok 23 - '/' should not match '$SYS/foo/+'
Thread 1 "perl6-m" hit Breakpoint 1, MVM_panic (exitCode=1, messageFormat=0x7ffff79fa638 "Zeroed owner in item added to GC worklist") at src/core/exceptions.c:832
832 MVM_NO_RETURN void MVM_panic(MVMint32 exitCode, const char *messageFormat, ...) {
(gdb) bt
#0 MVM_panic (exitCode=1, messageFormat=0x7ffff79fa638 "Zeroed owner in item added to GC worklist") at src/core/exceptions.c:832
#1 0x00007ffff7630f47 in mark_call_graph_node (tc=0x604cc0, node=0x69a2280, nodelist=0x7fffffffbd10, worklist=0x5344160) at src/profiler/instrument.c:826
#2 0x00007ffff763145e in MVM_profile_instrumented_mark_data (tc=0x604cc0, worklist=0x5344160) at src/profiler/instrument.c:854
#3 0x00007ffff7504243 in MVM_gc_root_add_tc_roots_to_worklist (tc=0x604cc0, worklist=0x5344160, snapshot=0x0) at src/gc/roots.c:194
#4 0x00007ffff7507bb1 in MVM_gc_collect (tc=0x604cc0, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:121
#5 0x00007ffff74fcfe5 in run_gc (tc=0x604cc0, what_to_do=0 '\000') at src/gc/orchestrate.c:418
#6 0x00007ffff74fd454 in MVM_gc_enter_from_allocator (tc=0x604cc0) at src/gc/orchestrate.c:535
#7 0x00007ffff74fdcd0 in MVM_gc_allocate_nursery (tc=0x604cc0, size=184) at src/gc/allocation.c:37
#8 0x00007ffff74fdacb in MVM_gc_allocate (tc=0x604cc0, size=184) at src/gc/allocation.h:18
#9 0x00007ffff74fdd59 in MVM_gc_allocate_zeroed (tc=0x604cc0, size=184) at src/gc/allocation.c:56
#10 0x00007ffff74fe28b in MVM_gc_allocate_frame (tc=0x604cc0) at src/gc/allocation.c:106
#11 0x00007ffff74c4441 in MVM_frame_move_to_heap (tc=0x604cc0, frame=0x7ffff7fb90e8) at src/core/frame.c:645
#12 0x00007ffff75bf925 in MVM_frame_force_to_heap (tc=0x604cc0, frame=0x7ffff7fb90e8) at src/core/frame.h:213
#13 0x00007ffff75c0dda in deopt_frame (tc=0x604cc0, f=0x7ffff7fb90e8, deopt_offset=264, deopt_target=64) at src/spesh/deopt.c:265
#14 0x00007ffff75c0f45 in MVM_spesh_deopt_one (tc=0x604cc0, deopt_target=64) at src/spesh/deopt.c:308
#15 0x00007ffff74b3db5 in MVM_interp_run (tc=0x604cc0, initial_invoke=0x7ffff7640aaf <toplevel_initial_invoke>, invoke_data=0x68a8d8) at src/core/interp.c:5636
#16 0x00007ffff7640c4d in MVM_vm_run_file (instance=0x604260, filename=0x6041e0 "/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/perl6.moarvm") at src/moar.c:450
#17 0x0000000000401a2f in main (argc=4, argv=0x7fffffffddc8) at src/vm/moar/runner/main.c:369
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment