Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created February 22, 2017 16:15
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/a856034c0401daf6e74d3e5b52e1f204 to your computer and use it in GitHub Desktop.
Save dogbert17/a856034c0401daf6e74d3e5b52e1f204 to your computer and use it in GitHub Desktop.
dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-gdb-m ~/test.pl6
================================================================================================
This is Rakudo Perl 6 running in the GNU 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 2017.02.37.g.1.cafc.67.b.1 built on MoarVM version 2017.02.7.g.3.d.859008,
running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.19.0.32.generic)
Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help.
------------------------------------------------------------------------------------------------
Reading symbols from /home/dogbert/repos/rakudo/install/bin/moar...done.
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --execname=./perl6-gdb-m --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib /home/dogbert/test.pl6
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xa647ab40 (LWP 19385)]
[New Thread 0xa56f4b40 (LWP 19386)]
[New Thread 0xa496eb40 (LWP 19387)]
[New Thread 0xa3be8b40 (LWP 19388)]
[New Thread 0xa2e62b40 (LWP 19389)]
[New Thread 0xa20dcb40 (LWP 19390)]
[New Thread 0xa1356b40 (LWP 19391)]
[New Thread 0xa05d0b40 (LWP 19392)]
[New Thread 0x9f84ab40 (LWP 19393)]
[New Thread 0x9e97ab40 (LWP 19394)]
[New Thread 0x9dbf4b40 (LWP 19395)]
[New Thread 0x9ce6eb40 (LWP 19396)]
[New Thread 0x9c0e8b40 (LWP 19397)]
[New Thread 0x9b17ab40 (LWP 19398)]
[New Thread 0x9a3f4b40 (LWP 19399)]
[New Thread 0x9966eb40 (LWP 19400)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x9ce6eb40 (LWP 19396)]
0xb5eeaa72 in add_guards_and_facts (tc=tc@entry=0xb582f880, g=g@entry=0xb488b6c0, slot=slot@entry=1, arg=arg@entry=0xb1e5a660, arg_ins=<optimized out>) at src/spesh/args.c:24
24 if (!STABLE(type)->container_spec)
(gdb) bt
#0 0xb5eeaa72 in add_guards_and_facts (tc=tc@entry=0xb582f880, g=g@entry=0xb488b6c0, slot=slot@entry=1, arg=arg@entry=0xb1e5a660, arg_ins=<optimized out>) at src/spesh/args.c:24
#1 0xb61827ea in MVM_spesh_args (tc=tc@entry=0xb582f880, g=g@entry=0xb488b6c0, cs=cs@entry=0xb68f7aa0 <two_args_callsite>, args=args@entry=0xaceb35e0) at src/spesh/args.c:386
#2 0xb6179743 in MVM_spesh_candidate_setup (tc=tc@entry=0xb582f880, static_frame=0xaacdb2c0, callsite=callsite@entry=0xb68f7aa0 <two_args_callsite>, args=args@entry=0xaceb35e0, osr=osr@entry=0)
at src/spesh/candidate.c:58
#3 0xb5f8e4d2 in MVM_frame_invoke (tc=tc@entry=0xb582f880, static_frame=<optimized out>, callsite=callsite@entry=0xb68f7aa0 <two_args_callsite>, args=args@entry=0xaceb35e0, outer=<optimized out>,
outer@entry=0x937335d0, code_ref=<optimized out>, code_ref@entry=0xb16b7160, spesh_cand=spesh_cand@entry=-1) at src/core/frame.c:502
#4 0xb60992c8 in invoke_handler (tc=0xb582f880, invokee=0xb16b7160, callsite=0xb68f7aa0 <two_args_callsite>, args=0xaceb35e0) at src/6model/reprs/MVMCode.c:10
#5 0xb5f44e2c in MVM_interp_run (tc=tc@entry=0xb582f880, initial_invoke=initial_invoke@entry=0xb5fae7a0 <thread_initial_invoke>, invoke_data=0x9450a582) at src/core/interp.c:923
#6 0xb5fae668 in start_thread (data=data@entry=0xa867aa10) at src/core/threads.c:77
#7 0xb62ac797 in uv__thread_start (arg=0xa867a9f0) at 3rdparty/libuv/src/unix/thread.c:49
#8 0xb69f99c7 in ?? () from /usr/lib/i386-linux-gnu/libasan.so.0
#9 0xb69e92ad in ?? () from /usr/lib/i386-linux-gnu/libasan.so.0
#10 0xb5be8f72 in start_thread (arg=0x9ce6eb40) at pthread_create.c:312
#11 0xb5ce9f8e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
(gdb) f 4
#4 0xb60992c8 in invoke_handler (tc=0xb582f880, invokee=0xb16b7160, callsite=0xb68f7aa0 <two_args_callsite>, args=0xaceb35e0) at src/6model/reprs/MVMCode.c:10
10 MVM_frame_invoke(tc, code->body.sf, callsite, args,
(gdb) p MVM_dump_backtrace(tc)
at <unknown>:1 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:284 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:167 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:165 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:163 (./CORE.setting.moarvm:)
from SETTING::src/core/Thread.pm:30 (./CORE.setting.moarvm:THREAD-ENTRY)
$1 = void
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment