Skip to content

Instantly share code, notes, and snippets.

Created October 20, 2017 13:35
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 anonymous/38c6b0898d6dd2fd40076d0fda2ab330 to your computer and use it in GitHub Desktop.
Save anonymous/38c6b0898d6dd2fd40076d0fda2ab330 to your computer and use it in GitHub Desktop.
bash-4.3# gdb /opt/rakudo/bin/moar
GNU gdb (GDB) 7.7
Copyright (C) 2014 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 "i386-pc-solaris2.10".
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 /opt/rakudo/bin/moar...done.
(gdb) run nqp.moarvm t/nqp/104-method-cache.t
Starting program: /opt/rakudo/bin/moar nqp.moarvm t/nqp/104-method-cache.t
[Thread debugging using libthread_db enabled]
1..16
ok 1 - calling a method found in cache
ok 2 - nqp::can on a method found in cache
ok 3 - nqp::can on a method not in cache
ok 4 - ...find_method is not called when the cache is authoritative
[New Thread 1 (LWP 1)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0xfe90646c in strlen () from /lib/libc.so.1
(gdb) frame 5
#5 0xfeb3fca5 in die_over_missing_method (tc=0x80628b8, obj=0x827b990, name=0x8d1c830) at src/6model/6model.c:58
58 MVM_exception_throw_adhoc_free(tc, waste,
(gdb) print c_name
$1 = 0x8df0628 "find_this"
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment