Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Created February 9, 2014 08:12
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 FROGGS/a78e5ce755315e879065 to your computer and use it in GitHub Desktop.
Save FROGGS/a78e5ce755315e879065 to your computer and use it in GitHub Desktop.
~/dev/v5$ LC_ALL=C gdb --args /home/froggs/dev/nqp/install/bin/moar --libpath="/home/froggs/dev/nqp/install/languages/nqp/lib" --libpath="/home/froggs/dev/nqp/install/languages/perl6/lib" --libpath="/home/froggs/dev/nqp/install/languages/perl6/runtime" /home/froggs/dev/nqp/install/languages/perl6/runtime/perl6.moarvm --target=mbc --output=lib/Perl5/Terms.moarvm lib/Perl5/Terms.pm
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/froggs/dev/nqp/install/bin/moar...done.
(gdb) run
Starting program: /home/froggs/dev/nqp/install/bin/moar --libpath=/home/froggs/dev/nqp/install/languages/nqp/lib --libpath=/home/froggs/dev/nqp/install/languages/perl6/lib --libpath=/home/froggs/dev/nqp/install/languages/perl6/runtime /home/froggs/dev/nqp/install/languages/perl6/runtime/perl6.moarvm --target=mbc --output=lib/Perl5/Terms.moarvm lib/Perl5/Terms.pm
[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.
0x00007ffff7a0cc93 in memcpy (__len=2, __src=<synthetic pointer>, __dest=0x518bef35) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
51 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
(gdb) bt full
#0 0x00007ffff7a0cc93 in memcpy (__len=2, __src=<synthetic pointer>, __dest=0x518bef35) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
No locals.
#1 write_int16 (value=2, offset=1227232981, buffer=0x865d860 "\v") at src/6model/serialization.c:187
No locals.
#2 write_int16_func (tc=<optimized out>, writer=writer@entry=0x7fc99c0, value=value@entry=2) at src/6model/serialization.c:336
No locals.
#3 0x00007ffff7a0d426 in write_ref_func (tc=0x603430, writer=0x7fc99c0, ref=0x11b2ce0) at src/6model/serialization.c:629
discrim = 2
#4 0x00007ffff79fc273 in serialize (tc=0x603430, st=<optimized out>, data=<optimized out>, writer=0x7fc99c0) at src/6model/reprs/P6opaque.c:1084
a_offset = <optimized out>
a_st = <optimized out>
repr_data = 0x2c0c780
num_attributes = <optimized out>
i = <optimized out>
#5 0x00007ffff7a0e568 in serialize_object (obj=0x7881500, writer=0x7fc99c0, tc=0x603430) at src/6model/serialization.c:912
offset = 47472
sc = 3
sc_idx = 45
#6 serialize (writer=0x7fc99c0, tc=0x603430) at src/6model/serialization.c:1055
stables_todo = 17
objects_todo = 3154
contexts_todo = 0
work_todo = <optimized out>
#7 MVM_serialization_serialize (tc=tc@entry=0x603430, sc=<optimized out>, empty_string_heap=<optimized out>) at src/6model/serialization.c:1126
writer = 0x7fc99c0
result = 0x0
sc_elems = <optimized out>
#8 0x00007ffff79d3177 in MVM_interp_run (tc=tc@entry=0x603430, initial_invoke=initial_invoke@entry=0x7ffff7a2221f <toplevel_initial_invoke>,
invoke_data=<optimized out>) at src/core/interp.c:3481
sc = <optimized out>
obj = <optimized out>
op = <optimized out>
cur_op = 0x7ffff7e68a42 "\r"
bytecode_start = 0x7ffff7e689de "\214"
reg_base = 0x8104510
cu = 0x709f38
cur_callsite = 0xa14f70
#9 0x00007ffff7a228c8 in MVM_vm_run_file (instance=instance@entry=0x603010, filename=<optimized out>) at src/moar.c:176
start_frame = <optimized out>
tc = 0x603430
cu = 0x7ffff63f76a0
#10 0x0000000000400ceb in main (argc=8, argv=0x7fffffffdd48) at src/main.c:146
instance = 0x603010
input_file = <optimized out>
lib_path = {0x7fffffffe13f "/home/froggs/dev/nqp/install/languages/nqp/lib", 0x7fffffffe178 "/home/froggs/dev/nqp/install/languages/perl6/lib",
0x7fffffffe1b3 "/home/froggs/dev/nqp/install/languages/perl6/runtime", 0x0, 0xf0b2ff "", 0xc2 <Address 0xc2 out of bounds>, 0x1 <Address 0x1 out of bounds>,
0x400d6d <__libc_csu_init+93> "H\203\303\001H9\353u\352H\213\\$\bH\213l$\020L\213d$\030L\213l$ L\213t$(L\213|$0H\203\304\070\303\017\037\200"}
dump = 0
argi = <optimized out>
lib_path_i = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment