Skip to content

Instantly share code, notes, and snippets.

@jballanc
Created June 27, 2010 22:36
Show Gist options
  • Save jballanc/455224 to your computer and use it in GitHub Desktop.
Save jballanc/455224 to your computer and use it in GitHub Desktop.
jballanc2: Source/Evolver/test ⚡(macruby) > DYLD_LIBRARY_PATH=~/Source/MacRuby gdb -args /usr/bin/macruby ../bin/evolver -n 10000 -f 100 ../environments/cluster_growth_1000.yml
GNU gdb 6.3.50-20050815 (Apple version gdb-1500) (Thu Jun 17 22:17:31 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
Starting program: /usr/bin/macruby ../bin/evolver -n 10000 -f 100 ../environments/cluster_growth_1000.yml
Reading symbols for shared libraries +++++................................................... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Running single threaded
Running synchronous
Running synchronous
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffbff88c08f
0x00007fff909db502 in _cache_getMethod ()
(gdb) bt
#0 0x00007fff909db502 in _cache_getMethod ()
#1 0x00007fff909daf51 in look_up_method ()
#2 0x000000010012e41c in rb_vm_dispatch (_vm=0x102216ff0, cache=0x400773f00, top=0, self=64, klass=0xfffffffbff88c07f, sel=0x105bb2af0, block=0x0, opt=2 '\002', argc=0, argv=0x0) at dispatcher.cpp:602
#3 0x0000000100131578 in rb_vm_block_eval (b=0x400764620, argc=0, argv=0x0) at dispatcher.cpp:1159
#4 0x000000010012fde9 in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bde1c0, top=17184842656, self=17187815360, klass=0x4003102a0, sel=0x7fff8ecf36e0, block=0x0, opt=0 '\0', argc=0, argv=0x0) at dispatcher.cpp:435
#5 0x0000000102701210 in ?? ()
#6 0x0000000102711af7 in ?? ()
#7 0x000000010012fd46 in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100beb630, top=17187732608, self=17184842656, klass=0x400311600, sel=0x7fff895ec9e1, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159
#8 0x0000000102701210 in ?? ()
#9 0x0000000102712c8b in ?? ()
#10 0x00000001001316f8 in rb_vm_block_eval (b=0x102216ff0, argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:100
#11 0x000000010013feaa in rb_rescue2 (b_proc=<value temporarily unavailable, due to optimizations>, data1=<value temporarily unavailable, due to optimizations>, r_proc=0x1000e9d90 <rb_block_rescue>, data2=4301903528) at vm.cpp:3363
#12 0x00000001000ea651 in rb_block_applier (data=<value temporarily unavailable, due to optimizations>, ii=1) at gcd.c:483
#13 0x00007fff8c3b2971 in _dispatch_apply2 ()
#14 0x00007fff8c3b2b1e in dispatch_apply_f ()
#15 0x00000001000ea995 in rb_objc_release [inlined] () at /Volumes/Data/Users/joshua1/Source/MacRuby/include/ruby/ruby.h:513
#16 0x00000001000ea995 in rb_queue_apply (self=<value temporarily unavailable, due to optimizations>, sel=<value temporarily unavailable, due to optimizations>, n=41) at gcd.c:516
#17 0x000000010012fd2b in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bf6c40, top=17187732608, self=17184816672, klass=0x400315580, sel=0x7fff8a0be45c, block=0x400763100, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfa600) at dispatcher.cpp:161
#18 0x0000000102701210 in ?? ()
#19 0x00000001027113a7 in ?? ()
#20 0x000000010012fd2b in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bcf2b0, top=17187732608, self=17187732608, klass=0x4003142c0, sel=0x7fff895ec9e1, block=0x0, opt=1 '\001', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfa7a0) at dispatcher.cpp:161
#21 0x0000000102701210 in ?? ()
#22 0x0000000102712b84 in ?? ()
#23 0x0000000100132903 in rb_vm_yield_args (_vm=0x102216ff0, argc=<value temporarily unavailable, due to optimizations>, argv=0x4003142c0) at dispatcher.cpp:98
#24 0x00000001000ed3a8 in rb_yield (val=5) at vm_eval.c:196
#25 0x0000000100052821 in int_dotimes (num=397, sel=<value temporarily unavailable, due to optimizations>) at numeric.c:3226
#26 0x000000010012fd46 in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bcafc0, top=17187732608, self=397, klass=0x40030c720, sel=0x1022cb8b0, block=0x4007a2820, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159
#27 0x0000000102701210 in ?? ()
#28 0x000000010270b2b1 in ?? ()
#29 0x000000010012fd2b in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bcf280, top=17184164256, self=17187732608, klass=0x4003142c0, sel=0x7fff8b56d9e0, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfd350) at dispatcher.cpp:161
#30 0x0000000102701210 in ?? ()
#31 0x000000010270b9ea in ?? ()
#32 0x000000010012fd05 in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bf9640, top=17184164256, self=17184164256, klass=0x40030b160, sel=0x7fff8b56d9e0, block=0x0, opt=2 '\002', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfe0e0) at dispatcher.cpp:163
#33 0x0000000102701210 in ?? ()
#34 0x000000010270b128 in ?? ()
#35 0x00000001001328e7 in rb_vm_yield_args (_vm=0x102216ff0, argc=<value temporarily unavailable, due to optimizations>, argv=0x40030b160) at dispatcher.cpp:100
#36 0x00000001000ed3a8 in rb_yield (val=17181000960) at vm_eval.c:196
#37 0x00000001000056dd in rary_each (ary=17181000704, sel=<value temporarily unavailable, due to optimizations>) at array.c:1064
#38 0x000000010012fd46 in rb_vm_dispatch (_vm=0x102216ff0, cache=0x100bd69c0, top=17184164256, self=17181000704, klass=0x40030efa0, sel=0x10221f9c0, block=0x40070e860, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159
#39 0x0000000102701210 in ?? ()
#40 0x0000000102700788 in ?? ()
#41 0x000000010013c228 in rb_vm_run (fname=<value temporarily unavailable, due to optimizations>, node=0x4004eb160, binding=<value temporarily unavailable, due to optimizations>, inside_eval=false) at vm.cpp:3789
#42 0x0000000100030330 in ruby_run_node (n=0x4004eb160) at eval.c:211
#43 0x0000000100000cf8 in main ()
(gdb) p (char *)0x105bb2af0
$1 = 0x105bb2af0 "replicate_genome"
(gdb) p (char *)0x7fff8ecf36e0
$2 = 0x7fff8ecf36e0 "call"
(gdb) p (char *)class_getName((Class *)0x4003102a0)
$3 = 0x102433150 "Proc"
(gdb) p (char *)0x7fff895ec9e1
$4 = 0x7fff895ec9e1 "step"
(gdb) p (char *)class_getName((Class *)0x400311600)
$5 = 0x105b39db0 "Organism"
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment