Watson1978
5/16/2011 - 12:33 AM

MacRuby : test with https://github.com/MacRuby/MacRuby/pull/24

(gdb) b auto_refcount_underflow_error 
Function "auto_refcount_underflow_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (auto_refcount_underflow_error) pending.
(gdb) r                  
Starting program: /Users/watson/src/macruby-trunk/macruby -I./lib -r test/test-mri/require_relative.rb test/test-mri/test/rake/test_fileutils.rb
Reading symbols for shared libraries .++++........................ done
Breakpoint 1 at 0x7fff856fbb84
Pending breakpoint 1 - "auto_refcount_underflow_error" resolved
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
macruby(24926,0x7fff70904ca0) malloc: reference count underflow for 0x2002825c0, break on auto_refcount_underflow_error to debug.

Breakpoint 1, 0x00007fff856fbb84 in auto_refcount_underflow_error ()
(gdb) thread apply all bt

Thread 2 (process 24926):
#0  0x00007fff85c92f4a in __workq_kernreturn ()
#1  0x00007fff85c9335c in _pthread_wqthread ()
#2  0x00007fff85c92fc5 in start_wqthread ()

Thread 1 (process 24926):
#0  0x00007fff856fbb84 in auto_refcount_underflow_error ()
#1  0x00007fff85708c11 in Auto::Zone::dec_refcount_small_medium ()
#2  0x00007fff8570a75e in Auto::Zone::block_decrement_refcount ()
#3  0x00007fff856f395f in auto_zone_release ()
#4  0x0000000100139eec in rb_objc_release (addr=0x2002825c0) at macruby_internal.h:71
#5  0x0000000100144096 in RoxorCore::add_method (this=0x102068200, klass=0x7fff70366468, sel=0x1015e9f50, imp=0x101728750, ruby_imp=0x101727a80, arity=@0x1015d5188, flags=0, types=0x7fff5fbfa7a0 "@@:@", outer=0x20029d960) at vm.cpp:1064
#6  0x0000000100144ec3 in RoxorCore::resolve_method (this=0x102068200, klass=0x7fff70366468, sel=0x1015e9f50, func=0x1042d6a60, arity=@0x1015d5188, flags=0, imp=0x101727a80, m=0x104266178, objc_imp_types=0x0, outer=0x20029d960) at vm.cpp:2012
#7  0x00000001001454a9 in RoxorCore::copy_methods (this=0x102068200, from_class=0x20026c8a0, to_class=0x7fff70366468) at vm.cpp:2561
#8  0x0000000100145781 in rb_vm_copy_methods (from_class=0x20026c8a0, to_class=0x7fff70366468) at vm.cpp:2442
#9  0x0000000100018ff7 in rb_include_module2 (klass=140735076000872, orig_klass=140735076000872, module=8592476320, check=true, add_methods=true) at class.c:625
#10 0x0000000100028b97 in rb_mod_append_features (module=8592476320, sel=0x100fc6060, include=140735076000872) at eval.c:546
#11 0x0000000100028bf6 in rb_mod_append_features (module=8592701280, sel=0x100fc6060, include=140735076000872) at eval.c:554
#12 0x000000010012d9aa in __rb_vm_rcall [inlined] () at /Users/watson/src/macruby-trunk/dispatcher.cpp:161
#13 0x000000010012d9aa in ruby_dispatch [inlined] () at /Users/watson/src/macruby-trunk/dispatcher.cpp:466
#14 0x000000010012d9aa in rb_vm_dispatch () at dispatcher.cpp:886
#15 0x00000001000d9599 in rb_vm_call0 (vm=0x100f23360, top=0, self=8592701280, klass=0x2002b1a40, sel=0x100fc6060, block=0x0, opt=2 '\002', argc=1, argv=0x7fff5fbfb800) at vm.h:657
#16 0x00000001000da6be in rb_vm_call2 (block=0x0, self=8592701280, klass=8592759360, sel=0x100fc6060, argc=1, argv=0x7fff5fbfb800) at vm.h:682
#17 0x00000001000da55e in rb_call (recv=8592701280, mid=8312, argc=1, argv=0x7fff5fbfb800, scope=1, pass_current_block=false) at vm_eval.c:32
#18 0x00000001000da8e1 in rb_funcall (recv=8592701280, mid=8312, n=1) at vm_eval.c:106
#19 0x0000000100028ca9 in rb_mod_include (module=140735076000872, sel=0x0, argc=0, argv=0x7fff5fbfc940) at eval.c:580
#20 0x000000010002900f in top_include (self=8590066240, sel=0x100fc6350, argc=1, argv=0x7fff5fbfc940) at eval.c:721
#21 0x000000010012d378 in ruby_dispatch [inlined] () at /Users/watson/src/macruby-trunk/dispatcher.cpp:448
#22 0x000000010012d378 in rb_vm_dispatch () at dispatcher.cpp:886
#23 0x0000000101700494 in ?? ()
#24 0x0000000101702594 in ?? ()
#25 0x00000001001496d0 in rb_vm_run (fname=0x2000c1880 "/Users/watson/src/macruby-trunk/lib/rake.rb", node=0x20024a320, binding=0x0, inside_eval=false) at vm.cpp:4218
#26 0x000000010014d280 in rb_vm_load () at vm.cpp:5664
#27 0x0000000100030b9e in rb_load (fname=8590726400, wrap=0) at load.c:91
#28 0x0000000100031100 in load_try (path=8590740032) at load.c:246
#29 0x00000001001480d7 in rb_rescue2 (b_proc=0x1000310e6 <load_try>, data1=8590740032, r_proc=0x100031126 <load_rescue>, data2=8590740032) at vm.cpp:3747
#30 0x000000010003122d in rb_require_safe (fname=8590755648, safe=0) at load.c:292
#31 0x0000000100030c1b in rb_f_require (obj=8590066240, fname=8590755456) at load.c:144
#32 0x0000000100030c3e in rb_f_require_imp (obj=8590066240, sel=0x100f271c0, fname=8590755456) at load.c:150
#33 0x000000010012d9aa in __rb_vm_rcall [inlined] () at /Users/watson/src/macruby-trunk/dispatcher.cpp:161
#34 0x000000010012d9aa in ruby_dispatch [inlined] () at /Users/watson/src/macruby-trunk/dispatcher.cpp:466
#35 0x000000010012d9aa in rb_vm_dispatch () at dispatcher.cpp:886
#36 0x0000000101700494 in ?? ()
#37 0x0000000101700bc5 in ?? ()
#38 0x00000001001496d0 in rb_vm_run (fname=0x200060b60 "test/test-mri/test/rake/test_fileutils.rb", node=0x2000b7700, binding=0x0, inside_eval=false) at vm.cpp:4218
#39 0x00000001000283e0 in ruby_run_node (n=0x2000b7700) at eval.c:211
#40 0x0000000100000be3 in main (argc=5, argv=0x100f1c050, envp=0x7fff5fbfde90) at main.cpp:40
(gdb)