Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created September 1, 2017 00:45
Show Gist options
  • Save MasterDuke17/3b0b6209fb06ba5ddecb9e66f1144eb0 to your computer and use it in GitHub Desktop.
Save MasterDuke17/3b0b6209fb06ba5ddecb9e66f1144eb0 to your computer and use it in GitHub Desktop.
================================================================================================
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.08.54.gd.135728.b.7 built on MoarVM version 2017.08.1.46.g.79654248,
running on ubuntu (17.04.Zesty.Zapus) / linux (4.10.0.32.generic)
Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help.
------------------------------------------------------------------------------------------------
Reading symbols from /home/dan/Source/perl6/install/bin/moar...done.
(gdb) break MVM_exception_throw_adhoc
Function "MVM_exception_throw_adhoc" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (MVM_exception_throw_adhoc) pending.
(gdb) run
Starting program: /home/dan/Source/perl6/install/bin/moar --execname=./perl6-gdb-m --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=. --libpath=blib /home/dan/Source/perl6/rakudo/perl6.moarvm --nqp-lib=blib --profile tools/build/install-core-dist.pl /home/dan/Source/perl6/install/share/perl6
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6059700 (LWP 31257)]
[New Thread 0x7fffef42c700 (LWP 31258)]
[New Thread 0x7fffeec2b700 (LWP 31259)]
[New Thread 0x7fffee42a700 (LWP 31261)]
[New Thread 0x7fffedc29700 (LWP 31262)]
[Switching to Thread 0x7fffee42a700 (LWP 31261)]
Thread 5 "moar" hit Breakpoint 1, MVM_exception_throw_adhoc (tc=0x555559f9dac0, messageFormat=0x7ffff780b2ae "const_iX NYI") at src/core/exceptions.c:721
721 void MVM_exception_throw_adhoc(MVMThreadContext *tc, const char *messageFormat, ...) {
(gdb) bt
#0 MVM_exception_throw_adhoc (tc=0x555559f9dac0, messageFormat=0x7ffff780b2ae "const_iX NYI") at src/core/exceptions.c:721
#1 0x00007ffff770eeca in MVM_interp_run (tc=tc@entry=0x555559f9dac0, initial_invoke=0x0, invoke_data=0x3, invoke_data@entry=0x555559fa5930) at src/core/interp.c:116
#2 0x00007ffff7730eb8 in start_thread (data=0x555559fa5930) at src/core/threads.c:83
#3 0x00007ffff7806457 in uv.thread_start () from //home/dan/Source/perl6/install/lib/libmoar.so
#4 0x00007ffff6c6f6da in start_thread (arg=0x7fffee42a700) at pthread_create.c:456
#5 0x00007ffff7297d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
(gdb) call MVM_dump_backtrace(tc)
at SETTING::src/core/Encoding/Decoder/Builtin.pm:72 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1754 (./CORE.setting.moarvm:)
from <unknown>:1 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1797 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1716 (./CORE.setting.moarvm:run-loop)
from SETTING::src/core/Supply.pm:1709 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1703 (./CORE.setting.moarvm:run-operation)
from SETTING::src/core/Supply.pm:1743 (./CORE.setting.moarvm:run-supply-code)
from SETTING::src/core/Supply.pm:1754 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:222 (./CORE.setting.moarvm:)
from <unknown>:1 (./CORE.setting.moarvm:)
from SETTING::src/core/Lock.pm:26 (./CORE.setting.moarvm:protect)
from SETTING::src/core/Supply.pm:192 (./CORE.setting.moarvm:)
from <unknown>:1 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1597 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1594 (./CORE.setting.moarvm:done)
from SETTING::src/core/Supply.pm:1508 (./CORE.setting.moarvm:done)
from <unknown>:1 (./CORE.setting.moarvm:)
from <unknown>:1 (./CORE.setting.moarvm:emit-events)
from SETTING::src/core/Rakudo/Internals.pm:524 (./CORE.setting.moarvm:)
from SETTING::src/core/Lock.pm:26 (./CORE.setting.moarvm:protect)
from SETTING::src/core/Rakudo/Internals.pm:512 (./CORE.setting.moarvm:process)
from SETTING::src/core/Proc/Async.pm:268 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:170 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:173 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:187 (./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)
================================================================================================
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.08.54.gd.135728.b.7 built on MoarVM version 2017.08.1.46.g.79654248,
running on ubuntu (17.04.Zesty.Zapus) / linux (4.10.0.32.generic)
Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help.
------------------------------------------------------------------------------------------------
Reading symbols from /home/dan/Source/perl6/install/bin/moar...done.
(gdb) run
Starting program: /home/dan/Source/perl6/install/bin/moar --execname=./perl6-gdb-m --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=. --libpath=blib /home/dan/Source/perl6/rakudo/perl6.moarvm --nqp-lib=blib --profile tools/build/install-core-dist.pl /home/dan/Source/perl6/install/share/perl6
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6059700 (LWP 31549)]
[New Thread 0x7fffef42c700 (LWP 31550)]
[New Thread 0x7fffee82a700 (LWP 31551)]
[New Thread 0x7fffedc28700 (LWP 31553)]
[New Thread 0x7fffed026700 (LWP 31554)]
Unhandled exception in code scheduled on thread 4
const_iX NYI
Writing profiler output to profile-1504226652.89405.html
Thread 6 "moar" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed026700 (LWP 31554)]
MVM_interp_run (tc=0x0, tc@entry=0x55555883d300, initial_invoke=0x7fffe80bf714, invoke_data=0x555556c34f20, invoke_data@entry=0x555559d77fb0) at src/core/interp.c:1393
1393 if (IS_CONCRETE(obj) && REPR(obj)->ID == MVM_REPR_ID_MVMCallCapture) {
(gdb) bt
#0 MVM_interp_run (tc=0x0, tc@entry=0x55555883d300, initial_invoke=0x7fffe80bf714, invoke_data=0x555556c34f20, invoke_data@entry=0x555559d77fb0) at src/core/interp.c:1393
#1 0x00007ffff7730eb8 in start_thread (data=0x555559d77fb0) at src/core/threads.c:83
#2 0x00007ffff7806457 in uv.thread_start () from //home/dan/Source/perl6/install/lib/libmoar.so
#3 0x00007ffff6c6f6da in start_thread (arg=0x7fffed026700) at pthread_create.c:456
#4 0x00007ffff7297d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment