Skip to content

Instantly share code, notes, and snippets.

@usev6
Last active August 29, 2015 14:08
Show Gist options
  • Save usev6/1ba6157dae245b239260 to your computer and use it in GitHub Desktop.
Save usev6/1ba6157dae245b239260 to your computer and use it in GitHub Desktop.
second backtrace for segfault with parrot 6.9.0
$ cat foo.t
my @primes := 2, 3, 5, -> $p { ($p+2, $p+4 ... &is-prime-beta)[*-1] } ... *;
sub is-prime-beta($n) { $n %% none @primes ...^ * > sqrt $n }
my @primes-beta = (2 .. 200).grep({is-prime-beta($_)});
$ 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 foo.t
Starting program: /home/christian/my_files/computer/Perl6/tmp/rakudo.parrot/perl6-p foo.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff47fd700 (LWP 721)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3994bb1 in decontainerize (interp=0x60f050, var=0x517e730) at sixmodelobject.c:433
433 var = DECONT(interp, var);
(gdb) backtrace
#0 0x00007ffff3994bb1 in decontainerize (interp=0x60f050, var=0x517e730) at sixmodelobject.c:433
#1 0x00007ffff397ce82 in Parrot_nqp_decontainerize_p_p (cur_opcode=0x4b769b8, interp=0x60f050) at nqp_ops.c:8290
#2 0x00007ffff7a528c5 in runops_fast_core (interp=0x60f050, runcore_unused=<optimized out>, pc=<optimized out>) at src/runcore/cores.c:495
#3 0x00007ffff7a5251d in runops_int (interp=interp@entry=0x60f050, offset=<optimized out>) at src/runcore/main.c:220
#4 0x00007ffff7a3b0de in runops (interp=interp@entry=0x60f050, offs=8023) at src/call/ops.c:123
#5 0x00007ffff7a36f5e in Parrot_pcc_invoke_from_sig_object (interp=interp@entry=0x60f050, sub_obj=sub_obj@entry=0x3c12f20, call_object=<optimized out>) at src/call/pcc.c:340
#6 0x00007ffff7a2af0c in Parrot_ext_call (interp=interp@entry=0x60f050, sub_pmc=0x3c12f20, signature=signature@entry=0x7ffff7b40875 "P->") at src/extend.c:158
#7 0x00007ffff7b0f876 in Parrot_Task_invoke (interp=0x60f050, _self=0x3c12728, next=0x0) at ./src/pmc/task.pmc:175
#8 0x00007ffff7a36f0a in Parrot_pcc_invoke_from_sig_object (interp=interp@entry=0x60f050, sub_obj=sub_obj@entry=0x3c12728, call_object=0x3c12f48) at src/call/pcc.c:332
#9 0x00007ffff7a2af0c in Parrot_ext_call (interp=interp@entry=0x60f050, sub_pmc=0x3c12728, signature=signature@entry=0x7ffff7b40846 "->") at src/extend.c:158
#10 0x00007ffff7a56847 in Parrot_cx_next_task (interp=interp@entry=0x60f050, scheduler=scheduler@entry=0x6e3ca8) at src/scheduler.c:231
#11 0x00007ffff7a5695f in Parrot_cx_outer_runloop (interp=interp@entry=0x60f050) at src/scheduler.c:149
#12 0x00007ffff7a56a6c in Parrot_cx_begin_execution (interp=interp@entry=0x60f050, main=main@entry=0x684bc0, argv=argv@entry=0x6f3138) at src/scheduler.c:109
#13 0x00007ffff7a5f40b in Parrot_pf_execute_bytecode_program (interp=0x60f050, pbc=<optimized out>, args=0x6f3138) at src/packfile/api.c:2861
#14 0x00007ffff7a26d81 in Parrot_api_run_bytecode (interp_pmc=0x6d7e90, pbc=0x684c60, args=0x6f3138) at src/embed/bytecode.c:161
#15 0x00000000004013e3 in main (argc=2, argv=0x7fffffffe438) at perl6-p.c:1037
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment