Skip to content

Instantly share code, notes, and snippets.

@masak
Created February 22, 2012 13:42
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 masak/1885215 to your computer and use it in GitHub Desktop.
Save masak/1885215 to your computer and use it in GitHub Desktop.
gdb session of macros-d1.t
$ gdb perl6
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 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://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /tmp/macros-rakudo/perl6...done.
(gdb) r t/spec/S06-macros/macros-d1.t
Starting program: /tmp/macros-rakudo/perl6 t/spec/S06-macros/macros-d1.t
[Thread debugging using libthread_db enabled]
1..9
ok 1 - calls to macro are at parse time
ok 2 - macro call with arguments works
ok 3 - macro calls without parens work
ok 4 - macro call with arguments works
ok 5 - can define an entirely new operator
ok 6 - can shadow an existing operator
ok 7 - lexical lookup from quasi to macro works
ok 8 - lexical lookup from quasi to outside macro works
ok 9 - ...twice
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3f59dcb in Rakudo_cont_decontainerize () from dynext/perl6_ops.so
(gdb) bt
#0 0x00007ffff3f59dcb in Rakudo_cont_decontainerize ()
from dynext/perl6_ops.so
#1 0x00007ffff3f58de6 in find_best_candidate () from dynext/perl6_ops.so
#2 0x00007ffff3f5974b in Rakudo_md_dispatch () from dynext/perl6_ops.so
#3 0x00007ffff4695deb in Parrot_MDThunk_invoke () from dynext/perl6_group.so
#4 0x00007ffff7a5ebc6 in runops_fast_core (interp=0x60e050,
runcore_unused=<optimized out>, pc=<optimized out>)
at src/runcore/cores.c:503
#5 0x00007ffff7a5e81e in runops_int (interp=0x60e050, offset=<optimized out>)
at src/runcore/main.c:220
#6 0x00007ffff7a4773e in runops (interp=0x60e050, offs=3423)
at src/call/ops.c:126
#7 0x00007ffff7a4318e in Parrot_pcc_invoke_from_sig_object (interp=0x60e050,
sub_obj=<optimized out>, call_object=<optimized out>) at src/call/pcc.c:338
#8 0x00007ffff7a379af in Parrot_ext_call (interp=0x60e050, sub_pmc=0x199bfd0,
signature=<optimized out>) at src/extend.c:160
#9 0x00007ffff7b13538 in Parrot_Task_invoke (interp=0x60e050,
_self=0x199bb20, next=0x0) at src/pmc/task.c:166
#10 0x00007ffff7a4313f in Parrot_pcc_invoke_from_sig_object (interp=0x60e050,
sub_obj=0x199bb20, call_object=0x199bff8) at src/call/pcc.c:330
#11 0x00007ffff7a379af in Parrot_ext_call (interp=0x60e050, sub_pmc=0x199bb20,
signature=<optimized out>) at src/extend.c:160
#12 0x00007ffff7a62bcd in Parrot_cx_outer_runloop (interp=0x60e050)
at src/scheduler.c:147
#13 0x00007ffff7a62c5d in Parrot_cx_begin_execution (interp=0x60e050,
main=0x681350, argv=0x6e2160) at src/scheduler.c:111
#14 0x00007ffff7a6a2bd in Parrot_pf_execute_bytecode_program (interp=0x60e050,
pbc=<optimized out>, args=0x6e2160) at src/packfile/api.c:2668
#15 0x00007ffff7a33702 in Parrot_api_run_bytecode (interp_pmc=0x6d76f0,
pbc=0x684260, args=0x6e2160) at src/embed/bytecode.c:161
#16 0x00000000004010f3 in main (argc=2, argv=0x7fffffffe208) at perl6.c:630
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment