Skip to content

Instantly share code, notes, and snippets.

@masak
Created February 22, 2012 15:16
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/1885496 to your computer and use it in GitHub Desktop.
Save masak/1885496 to your computer and use it in GitHub Desktop.
Another gdb stacktrace
$ 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"
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 -e 'macro foo($param) { $param }; say foo "OH HAI"'
Starting program: /tmp/macros-rakudo/perl6 -e 'macro foo($param) { $param }; say foo "OH HAI"'
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3f52756 in Parrot_perl6_get_outer_ctx_p_p ()
from dynext/perl6_ops.so
(gdb) bt
#0 0x00007ffff3f52756 in Parrot_perl6_get_outer_ctx_p_p ()
from dynext/perl6_ops.so
#1 0x00007ffff7a5ebc6 in runops_fast_core (interp=0x60e050,
runcore_unused=<optimized out>, pc=<optimized out>)
at src/runcore/cores.c:503
#2 0x00007ffff7a5e81e in runops_int (interp=0x60e050, offset=<optimized out>)
at src/runcore/main.c:220
#3 0x00007ffff7a4773e in runops (interp=0x60e050, offs=83)
at src/call/ops.c:126
#4 0x00007ffff7a4318e in Parrot_pcc_invoke_from_sig_object (interp=0x60e050,
sub_obj=<optimized out>, call_object=<optimized out>) at src/call/pcc.c:338
#5 0x00007ffff7a4350b in Parrot_pcc_invoke_sub_from_c_args (interp=0x60e050,
sub_obj=0x149e170, sig=<optimized out>) at src/call/pcc.c:139
#6 0x00007ffff7a681d1 in do_1_sub_pragma (action=PBC_MAIN, sub_pmc=0x149e170,
interp=0x60e050) at src/packfile/api.c:632
#7 do_sub_pragmas (interp=0x60e050, pfpmc=0x149b3e8, action=PBC_MAIN,
eval_pmc=<optimized out>) at src/packfile/api.c:844
#8 0x00007ffff7adb77c in get_packfile_eval_pmc (current_eval=<optimized out>,
pf_pmc=<optimized out>, interp=0x60e050) at src/pmc/imccompiler.c:111
#9 Parrot_IMCCompiler_invoke (interp=0x60e050, _self=<optimized out>,
next=0x7ffff34b1f80) at src/pmc/imccompiler.c:224
#10 0x00007ffff7a5ebc6 in runops_fast_core (interp=0x60e050,
runcore_unused=<optimized out>, pc=<optimized out>)
at src/runcore/cores.c:503
#11 0x00007ffff7a5e81e in runops_int (interp=0x60e050, offset=<optimized out>)
at src/runcore/main.c:220
#12 0x00007ffff7a4773e in runops (interp=0x60e050, offs=3423)
at src/call/ops.c:126
#13 0x00007ffff7a4318e in Parrot_pcc_invoke_from_sig_object (interp=0x60e050,
sub_obj=<optimized out>, call_object=<optimized out>) at src/call/pcc.c:338
#14 0x00007ffff7a379af in Parrot_ext_call (interp=0x60e050, sub_pmc=0x199c088,
signature=<optimized out>) at src/extend.c:160
#15 0x00007ffff7b13538 in Parrot_Task_invoke (interp=0x60e050,
_self=0x199bbd8, next=0x0) at src/pmc/task.c:166
#16 0x00007ffff7a4313f in Parrot_pcc_invoke_from_sig_object (interp=0x60e050,
---Type <return> to continue, or q <return> to quit---
sub_obj=0x199bbd8, call_object=0x199c0b0) at src/call/pcc.c:330
#17 0x00007ffff7a379af in Parrot_ext_call (interp=0x60e050, sub_pmc=0x199bbd8,
signature=<optimized out>) at src/extend.c:160
#18 0x00007ffff7a62bcd in Parrot_cx_outer_runloop (interp=0x60e050)
at src/scheduler.c:147
#19 0x00007ffff7a62c5d in Parrot_cx_begin_execution (interp=0x60e050,
main=0x681378, argv=0x6e2160) at src/scheduler.c:111
#20 0x00007ffff7a6a2bd in Parrot_pf_execute_bytecode_program (interp=0x60e050,
pbc=<optimized out>, args=0x6e2160) at src/packfile/api.c:2668
#21 0x00007ffff7a33702 in Parrot_api_run_bytecode (interp_pmc=0x6d76f0,
pbc=0x684288, args=0x6e2160) at src/embed/bytecode.c:161
#22 0x00000000004010f3 in main (argc=3, argv=0x7fffffffe1e8) at perl6.c:631
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment