Last active
July 18, 2016 18:45
-
-
Save MattOates/11257194 to your computer and use it in GitHub Desktop.
Trying out running a compiled Perl6 program with moarvm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Perl6 compiled with rakudobrew about ten minutes ago perl6 version 2014.04-96-g375404d built on MoarVM version 2014.04-29-ga109e8d | |
test.p6 is just: say "Hello"; | |
$ perl6 --target=mbc --output=test.moarvm test.p6 | |
Then | |
$ moar --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/nqp/lib" --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/perl6/lib" --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/perl6/runtime" test.moarvm | |
Segmentation fault (core dumped) | |
GDB output of running moar with my compiled test.moarvm program: | |
(gdb) run --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/nqp/lib" --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/perl6/lib" --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/perl6/runtime" test.moarvm | |
Starting program: /home/oates/.rakudobrew/moar-HEAD/install/bin/moar --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/nqp/lib" --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/perl6/lib" --libpath="/home/oates/.rakudobrew/moar-HEAD/install/languages/perl6/runtime" test.moarvm | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
Program received signal SIGSEGV, Segmentation fault. | |
0x00007ffff79eab72 in MVM_serialization_deserialize () from /home/oates/.rakudobrew/moar-HEAD/install/lib/libmoar.so | |
(gdb) where | |
#0 0x00007ffff79eab72 in MVM_serialization_deserialize () from /home/oates/.rakudobrew/moar-HEAD/install/lib/libmoar.so | |
#1 0x00007ffff79a1193 in MVM_interp_run () from /home/oates/.rakudobrew/moar-HEAD/install/lib/libmoar.so | |
#2 0x00007ffff7a03622 in MVM_vm_run_file () from /home/oates/.rakudobrew/moar-HEAD/install/lib/libmoar.so | |
#3 0x0000000000400d5f in main () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i have the same problem, did you solve this ?