Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created September 8, 2010 15:54
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 ashgti/570324 to your computer and use it in GitHub Desktop.
Save ashgti/570324 to your computer and use it in GitHub Desktop.
john@Strudel /tmp/other $ gdb ./parrot
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010)
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 "x86_64-apple-darwin"...Reading symbols for shared libraries .......... done
(gdb) r t/library/mime_base64.t
Starting program: /private/tmp/other/parrot t/library/mime_base64.t
Reading symbols for shared libraries .+++++++++....... done
1..550
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
string_rep_compatible (interp_unused=<value temporarily unavailable, due to optimizations>, a=0x101e75c40, b=0x1018bb880) at src/string/api.c:264
264 if (STRING_max_bytes_per_codepoint(a) != 1 ||
(gdb) b
Breakpoint 1 at 0x10000cf0e: file src/string/api.c, line 264.
(gdb) bt
#0 string_rep_compatible (interp_unused=<value temporarily unavailable, due to optimizations>, a=0x101e75c40, b=0x1018bb880) at src/string/api.c:264
#1 0x00000001000102bf in Parrot_str_concat (interp=0x101508e40, a=0x101e75c40, b=0x1018bb880) at src/string/api.c:425
#2 0x0000000100110414 in Parrot_scalar_i_concatenate_str (interp=0x101508e40, _self=0x101db8ee0, value=0x1018bb880) at scalar.pmc:661
#3 0x00000001000110e8 in Parrot_concat_p_s (cur_opcode=0x1014b7bd0, interp=0x101508e40) at src/ops/core_ops.c:22320
#4 0x000000010007f798 in runops_slow_core (interp=0x101508e40, runcore_unused=<value temporarily unavailable, due to optimizations>, pc=0x1014b7bd0) at src/runcore/cores.c:647
#5 0x000000010007ebad in runops_int (interp=0x101508e40, offset=<value temporarily unavailable, due to optimizations>) at src/runcore/main.c:224
#6 0x0000000100054fb0 in runops (interp=0x101508e40, offs=<value temporarily unavailable, due to optimizations>) at src/call/ops.c:127
#7 0x00000001000508e3 in Parrot_pcc_invoke_from_sig_object (interp=0x101508e40, sub_obj=0x1018a4a00, call_object=<value temporarily unavailable, due to optimizations>) at src/call/pcc.c:325
#8 0x0000000100042ad5 in Parrot_ext_call (interp=0x101508e40, sub_pmc=0x1018a4a00, signature=<value temporarily unavailable, due to optimizations>) at src/extend.c:322
#9 0x0000000100002064 in main (argc=1, argv=0x7fff5fbff588) at src/main.c:149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment