Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created May 7, 2020 17:18
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/4b9a1ac80bb7ea2ee19445a4594f13b9 to your computer and use it in GitHub Desktop.
Save MasterDuke17/4b9a1ac80bb7ea2ee19445a4594f13b9 to your computer and use it in GitHub Desktop.
[dan@alexandria perl6]$ gdb --args ./install/bin/raku --profile -e 'my @a = ^2_000; my @b; for ^1_000 { @b = @a.rotate(3); }; say @b.head'
GNU gdb (GDB) 9.1
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 ./install/bin/raku...
(gdb) b MVM_dump_backtrace
Function "MVM_dump_backtrace" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (MVM_dump_backtrace) pending.
(gdb) r
Starting program: /home/dan/Source/perl6/install/bin/raku --profile -e my\ @a\ =\ \^2_000\;\ my\ @b\;\ for\ \^1_000\ \{\ @b\ =\ @a.rotate\(3\)\;\ \}\;\ say\ @b.head
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff6e65700 (LWP 34293)]
Thread 1 "raku" hit Breakpoint 1, MVM_dump_backtrace (tc=tc@entry=0x555555559fb0) at src/core/exceptions.c:628
628 void MVM_dump_backtrace(MVMThreadContext *tc) {
(gdb) bt
#0 MVM_dump_backtrace (tc=tc@entry=0x555555559fb0) at src/core/exceptions.c:628
#1 0x00007ffff79c446a in MVM_profile_log_enter (mode=3, sf=0x555556f45ba8, tc=0x555555559fb0) at src/profiler/log.c:159
#2 MVM_profile_log_enter (tc=0x555555559fb0, sf=0x555556f45ba8, mode=3) at src/profiler/log.c:53
#3 0x00007ffff6660054 in ?? ()
#4 0x0000555555559fb0 in ?? ()
#5 0x00007ffff7e966c0 in methnotfound_callsite () from //home/dan/Source/perl6/install/lib/libmoar.so
#6 0x00007ffff0029de0 in ?? ()
#7 0x0000555555559fb0 in ?? ()
#8 0x00007ffff7e966c0 in methnotfound_callsite () from //home/dan/Source/perl6/install/lib/libmoar.so
#9 0x00007ffff78dc621 in MVM_frame_invoke (tc=0x7fffffffde30, static_frame=<optimized out>, callsite=0x5555556af6e0, args=0x5555555ee470, outer=<optimized out>, code_ref=<optimized out>, spesh_cand=<optimized out>) at src/core/frame.c:574
#10 0x0000555555559fb0 in ?? ()
#11 0x0000000000000000 in ?? ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment