Skip to content

Instantly share code, notes, and snippets.

@moritz
Created November 23, 2012 09:32
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 moritz/4134743 to your computer and use it in GitHub Desktop.
Save moritz/4134743 to your computer and use it in GitHub Desktop.
NQP build segfault
moritz@jacq:~/p6/rakudo/nqp>gdb --args /home/moritz/p6/rakudo/install/bin/parrot --library=src/stage0 src/stage0/nqp.pbc --target=pir --output=src/stage1/QASTNode.pir --module-path=src/stage1 --setting-path=src/stage1 --no-regex-lib src/stage1/QASTNode.nqp
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/moritz/p6/rakudo/install/bin/parrot...done.
(gdb) run
Starting program: /home/moritz/p6/rakudo/install/bin/parrot --library=src/stage0 src/stage0/nqp.pbc --target=pir --output=src/stage1/QASTNode.pir --module-path=src/stage1 --setting-path=src/stage1 --no-regex-lib src/stage1/QASTNode.nqp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79b4ca9 in Parrot_CallContext_push_pmc_orig (interp=0x612050,
_self=0x1a001c0, value=0x0) at src/pmc/callcontext.c:1555
1555 src/pmc/callcontext.c: No such file or directory.
(gdb) bt
#0 0x00007ffff79b4ca9 in Parrot_CallContext_push_pmc_orig (interp=0x612050,
_self=0x1a001c0, value=0x0) at src/pmc/callcontext.c:1555
#1 0x00007ffff79b384b in Parrot_CallContext_push_pmc (interp=0x612050,
_self=0x1a001c0, value=0x0) at src/pmc/callcontext.c:1265
#2 0x00007ffff78de592 in Parrot_pcc_build_sig_object_from_op (
interp=0x612050, signature=0x1a001c0, raw_sig=0xd149f8,
raw_args=0x7ffff2e22750) at src/call/args.c:409
#3 0x00007ffff7866e77 in Parrot_set_returns_pc (cur_opcode=0x7ffff2e22750,
interp=0x612050) at src/ops/core_ops.c:13941
#4 0x00007ffff7910ff9 in runops_fast_core (interp=0x612050,
runcore_unused=0x6e1d00, pc=0x7ffff2e22750) at src/runcore/cores.c:499
#5 0x00007ffff79104a2 in runops_int (interp=0x612050, offset=1199)
at src/runcore/main.c:220
#6 0x00007ffff78e5211 in runops (interp=0x612050, offs=132)
at src/call/ops.c:126
#7 0x00007ffff78ddff0 in Parrot_pcc_invoke_from_sig_object (interp=0x612050,
sub_obj=0x6f8300, call_object=0x6f83c8) at src/call/pcc.c:338
#8 0x00007ffff78c2488 in Parrot_ext_call (interp=0x612050, sub_pmc=0x6f8300,
signature=0x7ffff7ae3a85 "P->") at src/extend.c:158
#9 0x00007ffff7a2cd23 in Parrot_Task_invoke (interp=0x612050, _self=0x6f8120,
next=0x0) at src/pmc/task.c:166
#10 0x00007ffff78ddf8b in Parrot_pcc_invoke_from_sig_object (interp=0x612050,
sub_obj=0x6f8120, call_object=0x6f8328) at src/call/pcc.c:330
#11 0x00007ffff78c2488 in Parrot_ext_call (interp=0x612050, sub_pmc=0x6f8120,
signature=0x7ffff7a94035 "->") at src/extend.c:158
#12 0x00007ffff7917ca9 in Parrot_cx_next_task (interp=0x612050,
scheduler=0x6e4438) at src/scheduler.c:218
#13 0x00007ffff7917a1d in Parrot_cx_outer_runloop (interp=0x612050)
at src/scheduler.c:147
#14 0x00007ffff791793c in Parrot_cx_begin_execution (interp=0x612050,
main=0x6e4e38, argv=0x6e46b8) at src/scheduler.c:111
#15 0x00007ffff7926613 in Parrot_pf_execute_bytecode_program (interp=0x612050,
pbc=0x6f80f8, args=0x6e46b8) at src/packfile/api.c:2713
#16 0x00007ffff78ba9c8 in Parrot_api_run_bytecode (interp_pmc=0x6d87d0,
pbc=0x6f80f8, args=0x6e46b8) at src/embed/bytecode.c:161
#17 0x0000000000401858 in main (argc=9, argv=0x7fffffffe378)
at frontend/parrot2/main.c:171
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment