|
$ gdb ruby
|
|
GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar 5 04:43:10 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) run content.rb
|
|
Starting program: /Users/apatterson/.local/bin/ruby content.rb
|
|
Reading symbols for shared libraries ++... done
|
|
Reading symbols for shared libraries . done
|
|
Reading symbols for shared libraries . done
|
|
|
|
Program received signal EXC_BAD_ACCESS, Could not access memory.
|
|
Reason: 13 at address: 0x0000000000000000
|
|
gc_mark_children (objspace=0x100838000, ptr=34166728751539572, lev=14) at gc.c:1531
|
|
1531 if (obj->as.basic.flags == 0) return; /* free cell */
|
|
(gdb) bt
|
|
#0 gc_mark_children (objspace=0x100838000, ptr=34166728751539572, lev=14) at gc.c:1531
|
|
#1 0x0000000100051041 in mark_keyvalue (key=<value temporarily unavailable, due to optimizations>, value=4303632360, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#2 0x0000000100102850 in st_foreach (table=0x1006503c0, func=0x100050e70 <mark_keyvalue>, arg=140734799784304) at st.c:778
|
|
#3 0x000000010004faf1 in gc_mark_children (objspace=0x100838000, ptr=4303634280, lev=13) at gc.c:1403
|
|
#4 0x0000000100050869 in mark_entry (key=<value temporarily unavailable, due to optimizations>, value=<value temporarily unavailable, due to optimizations>, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#5 0x0000000100102850 in st_foreach (table=0x100653580, func=0x100050790 <mark_entry>, arg=140734799784640) at st.c:778
|
|
#6 0x000000010004fe1c in mark_tbl [inlined] () at /Users/apatterson/git/ruby/gc.c:1360
|
|
#7 0x000000010004fe1c in gc_mark_children (objspace=0x100838000, ptr=4303634560, lev=12) at gc.c:1684
|
|
#8 0x0000000100050869 in mark_entry (key=<value temporarily unavailable, due to optimizations>, value=<value temporarily unavailable, due to optimizations>, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#9 0x0000000100102850 in st_foreach (table=0x100303030, func=0x100050790 <mark_entry>, arg=140734799784976) at st.c:778
|
|
#10 0x000000010004fe1c in mark_tbl [inlined] () at /Users/apatterson/git/ruby/gc.c:1360
|
|
#11 0x000000010004fe1c in gc_mark_children (objspace=0x100838000, ptr=4303986000, lev=11) at gc.c:1684
|
|
#12 0x0000000100050869 in mark_entry (key=<value temporarily unavailable, due to optimizations>, value=<value temporarily unavailable, due to optimizations>, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#13 0x00000001001027df in st_foreach (table=0x100303860, func=0x100050790 <mark_entry>, arg=140734799785312) at st.c:747
|
|
#14 0x000000010004fe1c in mark_tbl [inlined] () at /Users/apatterson/git/ruby/gc.c:1360
|
|
#15 0x000000010004fe1c in gc_mark_children (objspace=0x100838000, ptr=4303985640, lev=10) at gc.c:1684
|
|
#16 0x0000000100050869 in mark_entry (key=<value temporarily unavailable, due to optimizations>, value=<value temporarily unavailable, due to optimizations>, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#17 0x00000001001027df in st_foreach (table=0x100303d20, func=0x100050790 <mark_entry>, arg=140734799785648) at st.c:747
|
|
#18 0x000000010004fe1c in mark_tbl [inlined] () at /Users/apatterson/git/ruby/gc.c:1360
|
|
#19 0x000000010004fe1c in gc_mark_children (objspace=0x100838000, ptr=4303985480, lev=9) at gc.c:1684
|
|
#20 0x000000010004f0af in gc_mark_children (objspace=0x100838000, ptr=4303985680, lev=8) at gc.c:1512
|
|
#21 0x000000010004f0af in gc_mark_children (objspace=0x100838000, ptr=4303985920, lev=7) at gc.c:1512
|
|
#22 0x0000000100050869 in mark_entry (key=<value temporarily unavailable, due to optimizations>, value=<value temporarily unavailable, due to optimizations>, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#23 0x00000001001027df in st_foreach (table=0x100303600, func=0x100050790 <mark_entry>, arg=140734799786464) at st.c:747
|
|
#24 0x000000010004fe1c in mark_tbl [inlined] () at /Users/apatterson/git/ruby/gc.c:1360
|
|
#25 0x000000010004fe1c in gc_mark_children (objspace=0x100838000, ptr=4303985720, lev=6) at gc.c:1684
|
|
#26 0x0000000100050869 in mark_entry (key=<value temporarily unavailable, due to optimizations>, value=<value temporarily unavailable, due to optimizations>, data=<value temporarily unavailable, due to optimizations>) at gc.c:1512
|
|
#27 0x00000001001027df in st_foreach (table=0x100303ac0, func=0x100050790 <mark_entry>, arg=140734799786800) at st.c:747
|
|
#28 0x000000010004fe1c in mark_tbl [inlined] () at /Users/apatterson/git/ruby/gc.c:1360
|
|
#29 0x000000010004fe1c in gc_mark_children (objspace=0x100838000, ptr=4303985560, lev=5) at gc.c:1684
|
|
#30 0x000000010004f0af in gc_mark_children (objspace=0x100838000, ptr=4303915000, lev=4) at gc.c:1512
|
|
#31 0x000000010004f0af in gc_mark_children (objspace=0x100838000, ptr=4303915040, lev=3) at gc.c:1512
|
|
#32 0x000000010004f0af in gc_mark_children (objspace=0x100838000, ptr=4303915080, lev=2) at gc.c:1512
|
|
#33 0x000000010004f0af in gc_mark_children (objspace=0x100838000, ptr=4303910560, lev=1) at gc.c:1512
|
|
#34 0x00000001000523fa in garbage_collect (objspace=0x100838000) at gc.c:1512
|
|
#35 0x0000000100052768 in rb_newobj_from_heap (objspace=0x100838000) at gc.c:1012
|
|
#36 0x0000000100109666 in str_alloc [inlined] () at /Users/apatterson/git/ruby/string.c:378
|
|
#37 0x0000000100109666 in str_new4 (klass=4303977360, str=4303594440) at string.c:657
|
|
#38 0x0000000100109cc7 in rb_str_new_frozen (orig=4303594440) at string.c:710
|
|
#39 0x000000010010a3d8 in str_replace_shared (str2=4303632360, str=<value temporarily unavailable, due to optimizations>) at string.c:617
|
|
#40 0x000000010010a53b in str_replace (str=4303632360, str2=<value temporarily unavailable, due to optimizations>) at string.c:876
|
|
#41 0x0000000100110bef in rb_str_replace (str=4303632360, str2=4303594440) at string.c:3770
|
|
#42 0x00000001001657f7 in vm_call_cfunc [inlined] () at /Users/apatterson/git/ruby/vm_insnhelper.c:377
|
|
#43 0x00000001001657f7 in vm_call_method (th=0x100301a40, cfp=0x1004ffb30, num=1, blockptr=0x1, flag=0, id=<value temporarily unavailable, due to optimizations>, me=0x100311910, recv=4303632360) at vm_insnhelper.c:500
|
|
#44 0x0000000100168803 in vm_exec_core (th=0x100301a40, initial=<value temporarily unavailable, due to optimizations>) at insns.def:999
|
|
#45 0x0000000100170173 in vm_exec (th=0x100301a40) at vm.c:1133
|
|
#46 0x00000001001723b9 in rb_yield (val=4303632360) at vm.c:556
|
|
#47 0x0000000100054772 in each_value_i (key=4303632360, value=4303594440) at hash.c:1195
|
|
#48 0x0000000100054b98 in hash_foreach_iter (key=4303632320, value=<value temporarily unavailable, due to optimizations>, arg=0x7fff5fbfe090) at hash.c:163
|
|
#49 0x0000000100102850 in st_foreach (table=0x1006503c0, func=0x100054b70 <hash_foreach_iter>, arg=140734799798416) at st.c:778
|
|
#50 0x000000010005524a in hash_foreach_call (arg=<value temporarily unavailable, due to optimizations>) at hash.c:196
|
|
#51 0x000000010003adbf in rb_ensure (b_proc=0x100055230 <hash_foreach_call>, data1=140734799798416, e_proc=0x1000551b0 <hash_foreach_ensure>, data2=4303634280) at eval.c:742
|
|
#52 0x00000001000584f0 in rb_hash_each_value (hash=4303634280) at hash.c:213
|
|
#53 0x00000001001657f7 in vm_call_cfunc [inlined] () at /Users/apatterson/git/ruby/vm_insnhelper.c:377
|
|
#54 0x00000001001657f7 in vm_call_method (th=0x100301a40, cfp=0x1004ffc90, num=0, blockptr=0x1004ffcb9, flag=0, id=<value temporarily unavailable, due to optimizations>, me=0x100341400, recv=4303634280) at vm_insnhelper.c:500
|
|
#55 0x0000000100168803 in vm_exec_core (th=0x100301a40, initial=<value temporarily unavailable, due to optimizations>) at insns.def:999
|
|
#56 0x0000000100170173 in vm_exec (th=0x100301a40) at vm.c:1133
|
|
#57 0x00000001001705e2 in rb_iseq_eval (iseqval=4303643160) at vm.c:1360
|
|
#58 0x000000010003e19c in rb_load_internal (fname=4303728400, wrap=<value temporarily unavailable, due to optimizations>) at load.c:302
|
|
#59 0x000000010003f4dc in rb_require_safe (fname=4303728520, safe=0) at load.c:594
|
|
#60 0x00000001001657f7 in vm_call_cfunc [inlined] () at /Users/apatterson/git/ruby/vm_insnhelper.c:377
|
|
#61 0x00000001001657f7 in vm_call_method (th=0x100301a40, cfp=0x1004ffdf0, num=1, blockptr=0x1, flag=8, id=<value temporarily unavailable, due to optimizations>, me=0x10036e5e0, recv=4303980440) at vm_insnhelper.c:500
|
|
#62 0x0000000100168803 in vm_exec_core (th=0x100301a40, initial=<value temporarily unavailable, due to optimizations>) at insns.def:999
|
|
#63 0x0000000100170173 in vm_exec (th=0x100301a40) at vm.c:1133
|
|
#64 0x00000001001705e2 in rb_iseq_eval (iseqval=4303737240) at vm.c:1360
|
|
#65 0x000000010003e19c in rb_load_internal (fname=4303753760, wrap=<value temporarily unavailable, due to optimizations>) at load.c:302
|
|
#66 0x000000010003f4dc in rb_require_safe (fname=4303753880, safe=0) at load.c:594
|
|
#67 0x00000001001657f7 in vm_call_cfunc [inlined] () at /Users/apatterson/git/ruby/vm_insnhelper.c:377
|
|
#68 0x00000001001657f7 in vm_call_method (th=0x100301a40, cfp=0x1004ffef8, num=1, blockptr=0x1, flag=8, id=<value temporarily unavailable, due to optimizations>, me=0x10036e5e0, recv=4303980440) at vm_insnhelper.c:500
|
|
#69 0x0000000100168803 in vm_exec_core (th=0x100301a40, initial=<value temporarily unavailable, due to optimizations>) at insns.def:999
|
|
#70 0x0000000100170173 in vm_exec (th=0x100301a40) at vm.c:1133
|
|
#71 0x0000000100170460 in rb_iseq_eval_main (iseqval=4303756240) at vm.c:1374
|
|
#72 0x000000010003b442 in ruby_exec_internal (n=0x100861bd0) at eval.c:214
|
|
#73 0x000000010003dd7c in ruby_exec_node [inlined] () at /Users/apatterson/git/ruby/eval.c:261
|
|
#74 0x000000010003dd7c in ruby_run_node (n=<value temporarily unavailable, due to optimizations>) at eval.c:254
|
|
#75 0x000000010000088f in main (argc=2, argv=0x7fff5fbff730) at main.c:35
|
|
(gdb)
|