Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created November 28, 2019 20:54
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/2e0197cae1feed107bb238cd67c95517 to your computer and use it in GitHub Desktop.
Save MasterDuke17/2e0197cae1feed107bb238cd67c95517 to your computer and use it in GitHub Desktop.
[dan@alexandria nqp]$ perl Configure.pl --no-silent-build --prefix=/home/dan/Source/perl6/install/ --backends=moar && make -j12 install
Found /home/dan/Source/perl6/install/bin/moar version 2019.07.1-351-g4f4c304ba, which is new enough.
Cleaning up ...
You can now use 'make' to build NQP.
After that, 'make test' will run some tests and
'make install' will install NQP.
+++ Preparing MOAR build directories
mkdir -p -- gen/moar/stage1 gen/moar/stage2
++++++ BUILDING MOAR BACKEND
++++++ STAGE1 ++++++
+++ Generating gen/moar/stage1/nqpmo.nqp
'/usr/bin/perl' '/home/dan/Source/perl6/nqp/tools/build/gen-cat.pl' moar stage1 src/how/Archetypes.nqp src/how/RoleToRoleApplier.nqp src/how/NQPConcreteRoleHOW.nqp src/how/RoleToClassApplier.nqp src/how/NQPCurriedRoleHOW.nqp src/how/NQPParametricRoleHOW.nqp src/how/NQPClassHOW.nqp src/how/NQPNativeHOW.nqp src/how/NQPAttribute.nqp src/how/NQPModuleHOW.nqp src/how/EXPORTHOW.nqp > gen/moar/stage1/nqpmo.nqp
+++ Compiling gen/moar/stage1/nqpmo.moarvm
'/home/dan/Source/perl6/install/bin/moar' --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --no-regex-lib --target=mbc --setting=NULL --stable-sc=stage1 --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
make: *** [Makefile:357: gen/moar/stage1/nqpmo.moarvm] Segmentation fault (core dumped)
[dan@alexandria nqp]$ gdb --args '/home/dan/Source/perl6/install/bin/moar' --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --no-regex-lib --target=mbc --setting=NULL --stable-sc=stage1 --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 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 /home/dan/Source/perl6/install/bin/moar...
MoarVM string pretty printer registered
moar-heap registered
diff-moar-heap registered
(gdb) r
Starting program: /home/dan/Source/perl6/install/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --no-regex-lib --target=mbc --setting=NULL --stable-sc=stage1 --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff6e97700 (LWP 79576)]
Thread 2 "moar" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff6e97700 (LWP 79576)]
incorporate_stats (tc=0x5555555e6720, simf=0x7ffff0027db0, frame_depth=49, caller=0x7ffff0027d58, sf_updated=<optimized out>) at src/spesh/stats.c:335
335 switch (e->kind) {
(gdb) bt
#0 incorporate_stats (tc=0x5555555e6720, simf=0x7ffff0027db0, frame_depth=49, caller=0x7ffff0027d58, sf_updated=<optimized out>) at src/spesh/stats.c:335
#1 0x00007ffff7980aea in sim_stack_find (tc=tc@entry=0x5555555e6720, sims=sims@entry=0x5555555e6700, cid=<optimized out>, sf_updated=sf_updated@entry=0x5555555e6a80) at src/spesh/stats.c:427
#2 0x00007ffff7980e3d in MVM_spesh_stats_update (tc=tc@entry=0x5555555e6720, sl=0x7ffff6f210f8, sf_updated=0x5555555e6a80, in_newly_seen=in_newly_seen@entry=0x7ffff6e96b20, in_updated=in_updated@entry=0x7ffff6e96b28) at src/spesh/stats.c:608
#3 0x00007ffff797f3c2 in worker (tc=0x5555555e6720, callsite=<optimized out>, args=<optimized out>) at src/spesh/worker.c:20
#4 0x00007ffff78f27a1 in thread_initial_invoke (tc=0x5555555e6720, data=<optimized out>) at src/core/threads.c:59
#5 0x00007ffff78ca35a in MVM_interp_run (tc=0x7ffff003f6d0, tc@entry=0x5555555e6720, initial_invoke=0x10, initial_invoke@entry=0x7ffff78f2760 <thread_initial_invoke>, invoke_data=0x10,
invoke_data@entry=0x7ffff78f2760 <thread_initial_invoke>) at src/core/interp.c:137
#6 0x00007ffff78f282a in start_thread (data=0x555555627ad0) at src/core/threads.c:87
#7 0x00007ffff735f4cf in start_thread () from /usr/lib/libpthread.so.0
#8 0x00007ffff75bd2d3 in clone () from /usr/lib/libc.so.6
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment