Skip to content

Instantly share code, notes, and snippets.

@usev6
Created October 26, 2014 19:52
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 usev6/6e57582839549b6d7698 to your computer and use it in GitHub Desktop.
Save usev6/6e57582839549b6d7698 to your computer and use it in GitHub Desktop.
backtrace for segfault with parrot 6.9.0
$ gdb ./perl6-p
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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/christian/my_files/computer/Perl6/tmp/rakudo.parrot/perl6-p...done.
(gdb) run -e 'for 1 .. 50 { say $_; EVAL q[ "ab" ~~ m/ \d / ]; }'
Starting program: /home/christian/my_files/computer/Perl6/tmp/rakudo.parrot/perl6-p -e 'for 1 .. 50 { say $_; EVAL q[ "ab" ~~ m/ \d / ]; }'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff47fd700 (LWP 625)]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7aaccf4 in Parrot_Hash_get_pointer (interp_unused=0x60f050, _self=0x3a830f8) at ./src/pmc/hash.pmc:244
244 VTABLE void *get_pointer() :no_wb {
(gdb) backtrace
#0 0x00007ffff7aaccf4 in Parrot_Hash_get_pointer (interp_unused=0x60f050, _self=0x3a830f8) at ./src/pmc/hash.pmc:244
#1 0x00007ffff7aae3fe in Parrot_Hash_get_bool (interp=0x60f050, _self=<optimized out>) at ./src/pmc/hash.pmc:1027
#2 0x00007ffff79fbf17 in Parrot_if_p_ic (cur_opcode=0x7ffff2fc13c0, interp=<optimized out>) at src/ops/core_ops.c:13845
#3 0x00007ffff7a528c5 in runops_fast_core (interp=0x60f050, runcore_unused=<optimized out>, pc=<optimized out>) at src/runcore/cores.c:495
#4 0x00007ffff7a5251d in runops_int (interp=interp@entry=0x60f050, offset=<optimized out>) at src/runcore/main.c:220
#5 0x00007ffff7a3b0de in runops (interp=interp@entry=0x60f050, offs=8023) at src/call/ops.c:123
#6 0x00007ffff7a36f5e in Parrot_pcc_invoke_from_sig_object (interp=interp@entry=0x60f050, sub_obj=sub_obj@entry=0x3c12fd8, call_object=<optimized out>)
at src/call/pcc.c:340
#7 0x00007ffff7a2af0c in Parrot_ext_call (interp=interp@entry=0x60f050, sub_pmc=0x3c12fd8, signature=signature@entry=0x7ffff7b40875 "P->")
at src/extend.c:158
#8 0x00007ffff7b0f876 in Parrot_Task_invoke (interp=0x60f050, _self=0x3c127e0, next=0x0) at ./src/pmc/task.pmc:175
#9 0x00007ffff7a36f0a in Parrot_pcc_invoke_from_sig_object (interp=interp@entry=0x60f050, sub_obj=sub_obj@entry=0x3c127e0, call_object=0x3c13000)
at src/call/pcc.c:332
#10 0x00007ffff7a2af0c in Parrot_ext_call (interp=interp@entry=0x60f050, sub_pmc=0x3c127e0, signature=signature@entry=0x7ffff7b40846 "->") at src/extend.c:158
#11 0x00007ffff7a56847 in Parrot_cx_next_task (interp=interp@entry=0x60f050, scheduler=scheduler@entry=0x6e3ca8) at src/scheduler.c:231
#12 0x00007ffff7a5695f in Parrot_cx_outer_runloop (interp=interp@entry=0x60f050) at src/scheduler.c:149
#13 0x00007ffff7a56a6c in Parrot_cx_begin_execution (interp=interp@entry=0x60f050, main=main@entry=0x685bf8, argv=argv@entry=0x6f3138) at src/scheduler.c:109
#14 0x00007ffff7a5f40b in Parrot_pf_execute_bytecode_program (interp=0x60f050, pbc=<optimized out>, args=0x6f3138) at src/packfile/api.c:2861
#15 0x00007ffff7a26d81 in Parrot_api_run_bytecode (interp_pmc=0x6d7e90, pbc=0x685c98, args=0x6f3138) at src/embed/bytecode.c:161
#16 0x00000000004013e3 in main (argc=3, argv=0x7fffffffe3f8) at perl6-p.c:1037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment