Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created June 24, 2019 20:03
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/6a36951a69019bcf8afd76e611286c1e to your computer and use it in GitHub Desktop.
Save MasterDuke17/6a36951a69019bcf8afd76e611286c1e to your computer and use it in GitHub Desktop.
dan@hermes:~/p6$ pg6 -e 'use nqp; nqp::push(class A is repr("VMArray") {}, 1)'
================================================================================================
This is Rakudo Perl 6 running in the 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 2019.03.1.660.g.9.b.639961.c built on MoarVM version 2019.05.91.g.81.e.5.cbf.2.a,
running on ubuntu (19.04.Disco.Dingo) / linux (18.Ubuntu.SMP.Tue.Jun.4.15.34.08.UTC.2019)
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/perl6-m...
Starting program: /home/dan/Source/perl6/install/bin/perl6-m -e use\ nqp\;\ nqp::push\(class\ A\ is\ repr\(\"VMArray\"\)\ \{\},\ 1\)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6faf700 (LWP 4460)]
Thread 1 "perl6-m" received signal SIGSEGV, Segmentation fault.
__memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:151
151 ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0 __memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:151
#1 0x00007ffff79daff3 in memset (__len=<optimized out>, __ch=0, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71
#2 zero_slots (tc=tc@entry=0x555555559ec0, body=body@entry=0x7ffff717bef8, elems=0, ssize=<optimized out>, slot_type=<optimized out>) at src/6model/reprs/VMArray.c:286
#3 0x00007ffff79db48e in set_size_internal (tc=tc@entry=0x555555559ec0, body=body@entry=0x7ffff717bef8, n=1, repr_data=<optimized out>, repr_data=<optimized out>) at src/6model/reprs/VMArray.c:321
#4 0x00007ffff79dcbd7 in push (tc=0x555555559ec0, st=<optimized out>, root=0x7ffff717bee0, data=0x7ffff717bef8, value=..., kind=<optimized out>) at src/6model/reprs/VMArray.c:475
#5 0x00007ffff798d216 in MVM_interp_run (tc=0x0, tc@entry=0x555555559ec0, initial_invoke=0x0, invoke_data=0x0) at src/core/interp.c:2296
#6 0x00007ffff7a871a5 in MVM_vm_run_file (instance=0x555555559460, filename=<optimized out>) at src/moar.c:444
#7 0x000055555555561d in main (argc=<optimized out>, argv=0x7fffffffdeb8) at src/vm/moar/runner/main.c:369
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment