Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created May 25, 2020 13:31
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/7844a9712990384ee9f14cc6f6bc4e4e to your computer and use it in GitHub Desktop.
Save MasterDuke17/7844a9712990384ee9f14cc6f6bc4e4e to your computer and use it in GitHub Desktop.
[dan@alexandria rakudo]$ gdb --args ./rakudo-m
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 ./rakudo-m...
(gdb) r
Starting program: /home/dan/Source/perl6/rakudo/rakudo-m
process 142547 is executing new program: /home/dan/Source/perl6/install/bin/moar
MoarVM string pretty printer registered
moar-heap registered
diff-moar-heap registered
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff6e32700 (LWP 142551)]
You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor
To exit type 'exit' or '^D'
> my ( int8 $a, int16 $b, int32 $c, int64 $d, uint8 $e, uint16 $f, uint32 $g, uint64 $h, num32 $i, num64 $j, ) = 1, 2, 3, 4, 5, 6, 7, 8, 9e0, 10e0;
(1 2 3 4 5 6 7 8 9 10)
> say "hi"
munmap_chunk(): invalid pointer
Thread 1 "moar" received signal SIGABRT, Aborted.
0x00007ffff74e0355 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff74e0355 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff74c9853 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff7523878 in __libc_message () from /usr/lib/libc.so.6
#3 0x00007ffff752ad3a in malloc_printerr () from /usr/lib/libc.so.6
#4 0x00007ffff752afec in munmap_chunk () from /usr/lib/libc.so.6
#5 0x00007ffff78b3619 in MVM_free (p=<optimized out>) at src/core/alloc.h:40
#6 MVM_exception_throw_adhoc_free_va (tc=0x555555559db0, waste=0x7fffffffdb38, messageFormat=0x7ffff7a1fe48 "Unhandled lexical type '%s' in lexprimspec", args=args@entry=0x7fffffffda50) at src/core/exceptions.c:909
#7 0x00007ffff78b4ae7 in MVM_exception_throw_adhoc_free (tc=<optimized out>, waste=waste@entry=0x7fffffffdb30, messageFormat=messageFormat@entry=0x7ffff7a1fe48 "Unhandled lexical type '%s' in lexprimspec") at src/core/exceptions.c:893
#8 0x00007ffff78d66ef in MVM_frame_translate_to_primspec (kind=<optimized out>, tc=0x555555559db0) at src/core/frame.c:1772
#9 MVM_frame_translate_to_primspec (tc=tc@entry=0x555555559db0, kind=<optimized out>) at src/core/frame.c:1745
#10 0x00007ffff7978baf in MVM_spesh_frame_walker_get_lexical_primspec (tc=tc@entry=0x555555559db0, fw=fw@entry=0x7fffffffdba0, name=name@entry=pointer to '$i') at src/spesh/frame_walker.c:444
#11 0x00007ffff792bb5a in MVM_context_lexical_primspec (tc=0x555555559db0, ctx=0x7ffff705db30, name=pointer to '$i') at src/6model/reprs/MVMContext.c:394
#12 0x00007ffff78c749c in MVM_interp_run (tc=0x2, initial_invoke=0x7fffffffd650, invoke_data=0x7fffffffd650, outer_runloop=0x7ffff74e0355 <raise+325>) at src/core/interp.c:525
#13 0x000055555555573f in main (argc=7, argv=0x7fffffffe298) at src/main.c:305
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment