Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created October 20, 2017 09:44
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/b83f789c58dcfda29a53e682e2f4edd0 to your computer and use it in GitHub Desktop.
Save anonymous/b83f789c58dcfda29a53e682e2f4edd0 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) where
#0 0xfe90646c in strlen () from /lib/libc.so.1
#1 0xfe961bce in _ndoprnt () from /lib/libc.so.1
#2 0xfe964d8f in vsnprintf () from /lib/libc.so.1
#3 0xfeaaa29a in MVM_exception_throw_adhoc_free_va (tc=0x80628b8, waste=0x8046bac,
messageFormat=0xfebd638c "Cannot find method '%s' on object of type %s", args=0x8046b8c "(\006\337\b") at src/core/exceptions.c:760
#4 0xfeaaa20d in MVM_exception_throw_adhoc_free (tc=0x80628b8, waste=0x8046bac, messageFormat=0xfebd638c "Cannot find method '%s' on object of type %s")
at src/core/exceptions.c:742
#5 0xfeb3fca5 in die_over_missing_method (tc=0x80628b8, obj=0x827b990, name=0x8d1c830) at src/6model/6model.c:58
#6 0xfeb3ff69 in MVM_6model_find_method (tc=0x80628b8, obj=0x827b990, name=0x8d1c830, res=0x85ca860) at src/6model/6model.c:107
#7 0xfeab5d46 in MVM_interp_run (tc=0x80628b8, initial_invoke=0xfeba23fa <toplevel_initial_invoke>, invoke_data=0x84ea4b0) at src/core/interp.c:1830
#8 0xfeba252d in MVM_vm_run_file (instance=0x8062340, filename=0x8047e29 "nqp.moarvm") at src/moar.c:401
#9 0x080516e3 in main (argc=3, argv=0x8047d3c) at src/main.c:257
(gdb) list
125
126 #ifndef _WIN32
127 int main(int argc, char *argv[])
128 #else
129 int wmain(int argc, wchar_t *wargv[])
130 #endif
131 {
132 MVMInstance *instance;
133 const char *input_file;
134 const char *executable_name = NULL;
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment