Skip to content

Instantly share code, notes, and snippets.

@masak
Created May 9, 2009 12:45
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/109252 to your computer and use it in GitHub Desktop.
Save masak/109252 to your computer and use it in GitHub Desktop.
$ gdb ../../parrotGNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ........ done
(gdb) r ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
Starting program: /Users/masak/work/hobbies/parrot/parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
Reading symbols for shared libraries +++++++........ done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0085a2a2 in Parrot_ResizablePMCArray_shift_string (interp=0xc01800, pmc=0x3762c8) at resizablepmcarray.pmc:201
201 data = item[0];
(gdb) bt
#0 0x0085a2a2 in Parrot_ResizablePMCArray_shift_string (interp=0xc01800, pmc=0x3762c8) at resizablepmcarray.pmc:201
#1 0x005d37c6 in Parrot_shift_s_p (cur_opcode=0x394d00, interp=0xc01800) at pmc.ops:388
#2 0x0068f114 in runops_slow_core (interp=0xc01800, pc=0x394d00) at src/runcore/cores.c:460
#3 0x0068e326 in runops_int (interp=0xc01800, offset=0) at src/runcore/main.c:981
#4 0x0063b7e0 in runops (interp=0xc01800, offs=0) at src/call/ops.c:107
#5 0x0063ba99 in runops_args (interp=0xc01800, sub=0x379538, obj=0x10396b0, meth_unused=0x0, sig=0x8b6e07 "P", ap=0xbfffef0c "??g") at src/call/ops.c:256
#6 0x0063c8ea in Parrot_runops_fromc_args (interp=0xc01800, sub=0x379538, sig=0x8b6e07 "P") at src/call/ops.c:325
#7 0x0067dbaa in run_sub (interp=0xc01800, sub_pmc=0x379538) at src/packfile.c:681
#8 0x0067ddcb in do_1_sub_pragma (interp=0xc01800, sub_pmc=0x379538, action=PBC_LOADED) at src/packfile.c:743
#9 0x0067e1ea in do_sub_pragmas (interp=0xc01800, self=0xc4f450, action=PBC_LOADED, eval_pmc=0x0) at src/packfile.c:914
#10 0x00685541 in PackFile_append_pbc (interp=0xc01800, filename=0xc4f210 "/Users/masak/work/hobbies/parrot/runtime/parrot/library/P6object.pbc") at src/packfile.c:4800
#11 0x006855e0 in compile_or_load_file (interp=0xc01800, path=0x364f4c, file_type=PARROT_RUNTIME_FT_PBC) at src/packfile.c:4681
#12 0x00685b77 in Parrot_load_bytecode (interp=0xc01800, file_str=0x24b708) at src/packfile.c:4853
#13 0x005b1ec0 in Parrot_load_bytecode_sc (cur_opcode=0x26d0f0, interp=0xc01800) at core.ops:165
#14 0x0068f114 in runops_slow_core (interp=0xc01800, pc=0x26d0f0) at src/runcore/cores.c:460
#15 0x0068e326 in runops_int (interp=0xc01800, offset=0) at src/runcore/main.c:981
#16 0x0063b7e0 in runops (interp=0xc01800, offs=0) at src/call/ops.c:107
#17 0x0063ba99 in runops_args (interp=0xc01800, sub=0x23da38, obj=0x10396b0, meth_unused=0x0, sig=0x8b6e07 "P", ap=0xbffff27c "") at src/call/ops.c:256
#18 0x0063c8ea in Parrot_runops_fromc_args (interp=0xc01800, sub=0x23da38, sig=0x8b6e07 "P") at src/call/ops.c:325
#19 0x0067dbaa in run_sub (interp=0xc01800, sub_pmc=0x23da38) at src/packfile.c:681
#20 0x0067ddcb in do_1_sub_pragma (interp=0xc01800, sub_pmc=0x23da38, action=PBC_LOADED) at src/packfile.c:743
#21 0x0067e1ea in do_sub_pragmas (interp=0xc01800, self=0xc222b0, action=PBC_LOADED, eval_pmc=0x0) at src/packfile.c:914
#22 0x00685541 in PackFile_append_pbc (interp=0xc01800, filename=0xc2db80 "./PGE.pbc") at src/packfile.c:4800
#23 0x006855e0 in compile_or_load_file (interp=0xc01800, path=0x2630c8, file_type=PARROT_RUNTIME_FT_PBC) at src/packfile.c:4681
#24 0x00685b77 in Parrot_load_bytecode (interp=0xc01800, file_str=0x24c41c) at src/packfile.c:4853
#25 0x005b1ec0 in Parrot_load_bytecode_sc (cur_opcode=0x104d258, interp=0xc01800) at core.ops:165
#26 0x0068f114 in runops_slow_core (interp=0xc01800, pc=0x104d258) at src/runcore/cores.c:460
#27 0x0068e326 in runops_int (interp=0xc01800, offset=22) at src/runcore/main.c:981
#28 0x0063b7e0 in runops (interp=0xc01800, offs=22) at src/call/ops.c:107
#29 0x0063ba99 in runops_args (interp=0xc01800, sub=0x23ddb0, obj=0x10396b0, meth_unused=0x0, sig=0x8b6e07 "P", ap=0xbffff5ec "|\033u") at src/call/ops.c:256
#30 0x0063c8ea in Parrot_runops_fromc_args (interp=0xc01800, sub=0x23ddb0, sig=0x8b6e07 "P") at src/call/ops.c:325
#31 0x0067dbaa in run_sub (interp=0xc01800, sub_pmc=0x23ddb0) at src/packfile.c:681
#32 0x0067dea5 in do_1_sub_pragma (interp=0xc01800, sub_pmc=0x23ddb0, action=PBC_MAIN) at src/packfile.c:773
#33 0x0067e1ea in do_sub_pragmas (interp=0xc01800, self=0xc218a0, action=PBC_MAIN, eval_pmc=0x0) at src/packfile.c:914
#34 0x00685bde in PackFile_fixup_subs (interp=0xc01800, what=PBC_MAIN, eval=0x0) at src/packfile.c:4874
#35 0x0089dd73 in imcc_run_pbc (interp=0xc01800, obj_file=0, output_file=0x0, argc=3, argv=0xbffff7e0) at compilers/imcc/main.c:804
#36 0x0089ea19 in imcc_run (interp=0xc01800, sourcefile=0xbffff8ac "../../runtime/parrot/library/PGE/Perl6Grammar.pir", argc=3, argv=0xbffff7e0) at compilers/imcc/main.c:1097
#37 0x00001ad9 in main (argc=3, argv=0xbffff7e0) at src/main.c:61
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment