#1074: Abor occurs when install the rubygems. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Here is a backtrace from gdb on that malloc error breakpoint: {{{ (gdb) thread apply all bt Thread 7 (process 46423): #0 0x00007fff8f642dfe in select$DARWIN_EXTSN () #1 0x00007fff8df4ffab in __CFSocketManager () #2 0x00007fff911ba8c4 in _pthread_start () #3 0x00007fff911bd5d5 in thread_start () Thread 6 (process 46423): #0 0x00007fff8f6416b6 in mach_msg_trap () #1 0x00007fff8f640dad in mach_msg () #2 0x00007fff8dfd205c in __CFRunLoopServiceMachPort () #3 0x00007fff8df301d4 in __CFRunLoopRun () #4 0x00007fff8df2fae6 in CFRunLoopRunSpecific () #5 0x00007fff91914702 in +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] () #6 0x00007fff9189bf3a in -[NSThread main] () #7 0x00007fff9189beb2 in __NSThread__main__ () #8 0x00007fff911ba8c4 in _pthread_start () #9 0x00007fff911bd5d5 in thread_start () Thread 5 (process 46423): #0 0x00007fff8f6431b2 in __workq_kernreturn () #1 0x00007fff911bc59b in _pthread_wqthread () #2 0x00007fff911bd5e5 in start_wqthread () Thread 4 (process 46423): #0 0x00007fff8f6431b2 in __workq_kernreturn () #1 0x00007fff911bc59b in _pthread_wqthread () #2 0x00007fff911bd5e5 in start_wqthread () Thread 3 (process 46423): #0 0x00007fff8f643806 in kevent () #1 0x00007fff9141046d in _dispatch_mgr_invoke () #2 0x00007fff91411242 in _dispatch_queue_invoke () #3 0x00007fff91410a32 in _dispatch_worker_thread2 () #4 0x00007fff911bc3e1 in _pthread_wqthread () #5 0x00007fff911bd5e5 in start_wqthread () Thread 2 (process 46423): #0 0x00007fff9120d707 in malloc_error_break () #1 0x00007fff911cdd6e in szone_error () #2 0x00007fff911cdddf in free_list_checksum_botch () #3 0x00007fff911d1b2a in szone_free_definite_size () #4 0x00007fff9120d82e in free () #5 0x00007fff8f53a520 in icu::RegexPattern::zap () #6 0x00007fff8f53a5ac in icu::RegexPattern::~RegexPattern () #7 0x00007fff8f579f2e in uregex_setText () #8 0x00007fff8f57a075 in uregex_close () #9 0x00000001000a7504 in regexp_finalize [inlined] () at /Users/lrz/src /macruby-trunk/re.c:75 #10 0x00000001000a7504 in regexp_finalize_imp (rcv=0x401eb6020, sel=0x7fff8f579f2e) at re.c:85 #11 0x00007fff945d34df in finalizeOneObject () #12 0x00007fff95ccaa7e in Auto::foreach_block_do () #13 0x00007fff945d3418 in batchFinalize () #14 0x00007fff95ccaa19 in Auto::Zone::invalidate_garbage () #15 0x00007fff95cdd94b in __finalize_local_garbage_later_block_invoke_0 () #16 0x00007fff9140f87b in _dispatch_call_block_and_release () #17 0x00007fff914113b6 in _dispatch_queue_drain () #18 0x00007fff91411230 in _dispatch_queue_invoke () #19 0x00007fff91410a32 in _dispatch_worker_thread2 () #20 0x00007fff911bc3e1 in _pthread_wqthread () #21 0x00007fff911bd5e5 in start_wqthread () Thread 1 (process 46423): #0 0x00007fff91192d39 in spin_lock$VARIANT$mp () #1 0x00007fff911d59ad in szone_malloc_should_clear () #2 0x00007fff9120d4a7 in malloc_zone_malloc () #3 0x00007fff9120e12a in malloc () #4 0x00007fff92bb86de in operator new () #5 0x000000010013d0ef in std::_Rb_tree<long, std::pair<long const, int>, std::_Select1st<std::pair<long const, int> >, std::less<long>, std::allocator<std::pair<long const, int> > >::_M_get_node () at stl_tree.h:369 #6 0x000000010013d0ef in __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<long const, int> >
::allocate () at /usr/include/c++/4.2.1/ext/new_allocator.h:378 #7 0x000000010013d0ef in std::_Rb_tree<long, std::pair<long const, int>, std::_Select1st<std::pair<long const, int> >, std::less<long>, std::allocator<std::pair<long const, int> > >::_M_create_node () at /usr/include/c++/4.2.1/bits/stl_tree.h:369 #8 0x000000010013d0ef in std::_Rb_tree<long, std::pair<long const, int>, std::_Select1st<std::pair<long const, int> >, std::less<long>, std::allocator<std::pair<long const, int> > >::_M_insert (this=0x102057550, __x=<value temporarily unavailable, due to optimizations>, __p=0x106ddf190, __v=@0x7fff5fbf4a80) at stl_tree.h:840 #9 0x000000010013d41c in std::_Rb_tree<long, std::pair<long const, int>, std::_Select1st<std::pair<long const, int> >, std::less<long>, std::allocator<std::pair<long const, int> > >::_M_insert_unique (this=0x102057550, __position=<value temporarily unavailable, due to optimizations>, __v=@0x7fff5fbf4a80) at stl_tree.h:1026 #10 0x000000010013aea7 in RoxorCore::respond_to (this=0x102057000, obj=<value temporarily unavailable, due to optimizations>, klass=17183066304, sel=0x103c00c90, priv=true, check_override=<value temporarily unavailable, due to optimizations>) at stl_map.h:427 #11 0x000000010013b0c8 in respond_to [inlined] () at /Users/lrz/src /macruby-trunk/dispatcher.cpp:1573 #12 0x000000010013b0c8 in rb_vm_respond_to (obj=<value temporarily unavailable, due to optimizations>, sel=<value temporarily unavailable, due to optimizations>, priv=<value temporarily unavailable, due to optimizations>) at dispatcher.cpp:1580 #13 0x000000010005f39b in convert_type (val=81, tname=0x1006a2ae8 "Hash", method=<value temporarily unavailable, due to optimizations>, raise=0) at object.c:2425 #14 0x00000001000617a1 in rb_check_convert_type (val=81, type=8, tname=0x1006a2ae8 "Hash", method=0x1006a2ae0 "to_hash") at object.c:2465 #15 0x000000010004a470 in rb_io_s_read (recv=17183079552, sel=<value temporarily unavailable, due to optimizations>, argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbf59e0) at io.c:96 #16 0x00000001001399e5 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100abcb40, top=17183127808, self=17183079552, klass=0x40030fc40, sel=0x103c1d4d0, block=0x0, opt=0 '\0', argc=2, argv=0x7fff5fbf59e0) at dispatcher.cpp:448 #17 0x0000000104d8e571 in dyld_stub_strncpy () #18 0x0000000104d8f395 in MREP_826E5783E6E44FE6A1814322E722760B () #19 0x0000000100139ff6 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100a96dc0, top=17224004864, self=17183127808, klass=0x40031b8c0, sel=0x104875790, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbf6770) at dispatcher.cpp:163 #20 0x0000000104d7b861 in dyld_stub_strncpy () #21 0x0000000104d7e363 in MREP_643598D9F1FD4F8A8AF92A7AC69B53BB () #22 0x0000000100139ff6 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100ac5270, top=0, self=17224004864, klass=0x40031b940, sel=0x7fff93556aea, block=0x0, opt=2 '\002', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbf7f50) at dispatcher.cpp:163 #23 0x000000010006010a in rb_class_new_instance_imp (klass=<value temporarily unavailable, due to optimizations>, sel=<value temporarily unavailable, due to optimizations>, argc=2, argv=0x7fff5fbf7f50) at vm.h:602 #24 0x00000001001399e5 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100a95a80, top=17188791712, self=17183127872, klass=0x40031be00, sel=0x102821310, block=0x0, opt=0 '\0', argc=2, argv=0x7fff5fbf7f50) at dispatcher.cpp:448 #25 0x0000000104d64aa1 in cX509StoreContext () #26 0x0000000104d6acde in MREP_709178ABBF2F4037B5C6F0CF0BEDC888 () #27 0x000000010013c897 in rb_vm_yield_args (_vm=0x102821af0, argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbf83f8) at dispatcher.cpp:100 #28 0x00000001000f0d88 in rb_yield (val=17223963584) at vm_eval.c:196 #29 0x00000001000053fd in rary_each (ary=17223993024, sel=<value temporarily unavailable, due to optimizations>) at array.c:1065 #30 0x000000010013a036 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100abd240, top=17188791712, self=17223993024, klass=0x40030f640, sel=0x1028255b0, block=0x402a0f740, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159 #31 0x0000000104d64aa1 in cX509StoreContext () #32 0x0000000104d6a281 in MREP_709178ABBF2F4037B5C6F0CF0BEDC888 () #33 0x0000000100139ff6 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100a9f800, top=17185047744, self=17188791712, klass=0x400320080, sel=0x103ebd310, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbf9f98) at dispatcher.cpp:163 #34 0x0000000103ded121 in dyld_stub_strncpy () #35 0x0000000103def6f0 in MREP_7CFDC8B0D1C445C2A20E9347AFA0EBDB () #36 0x000000010013c897 in rb_vm_yield_args (_vm=0x102821af0, argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfa3e8) at dispatcher.cpp:100 #37 0x00000001000f0d88 in rb_yield (val=17184713344) at vm_eval.c:196 #38 0x00000001000053fd in rary_each (ary=17189577888, sel=<value temporarily unavailable, due to optimizations>) at array.c:1065 #39 0x000000010013a036 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100abd240, top=17185047744, self=17189577888, klass=0x40030f640, sel=0x1028255b0, block=0x400942820, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159 #40 0x0000000103ded121 in dyld_stub_strncpy () #41 0x0000000103deee15 in MREP_7CFDC8B0D1C445C2A20E9347AFA0EBDB () #42 0x000000010013a036 in rb_vm_dispatch (_vm=0x102821af0, cache=0x100ab3060, top=17185047744, self=17185047744, klass=0x40031a4c0, sel=0x7fff94189c0c, block=0x0, opt=1 '\001', argc=<value temporarily unavailable, due to optimizations>, argv=0x0) at dispatcher.cpp:159 #43 0x0000000103dd3771 in dyld_stub_strncpy () #44 0x0000000103dd7d45 in MREP_1B38F429183344BC806C0371E9F66C1C () #45 0x000000010013a01b in rb_vm_dispatch (_vm=0x102821af0, cache=0x100ac4860, top=17187636704, self=17185047744, klass=0x40031a4c0, sel=0x7fff9137790c, block=0x0, opt=8 '\b', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfc0e0) at dispatcher.cpp:161 #46 0x0000000103bf2581 in dyld_stub_rb_define_module () #47 0x0000000103bf4c79 in MREP_A04F309D25094709BD5D5C163BEBBB01 () #48 0x000000010013a01b in rb_vm_dispatch (_vm=0x102821af0, cache=0x100aa1080, top=17187636704, self=17187636704, klass=0x400314500, sel=0x103ebdbd0, block=0x0, opt=2 '\002', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfda40) at dispatcher.cpp:161 #49 0x0000000103bf2581 in dyld_stub_rb_define_module () #50 0x0000000103bf4393 in MREP_A04F309D25094709BD5D5C163BEBBB01 () #51 0x000000010013a01b in rb_vm_dispatch (_vm=0x102821af0, cache=0x100ab58d8, top=17187876480, self=17187636704, klass=0x400314500, sel=0x7fff91aaf1ed, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbfe848) at dispatcher.cpp:161 #52 0x0000000102af75b1 in dyld_stub_sel_registerName () #53 0x0000000102af880d in MREP_F64E1D7F70394A409EDEA23C69D01E49 () #54 0x000000010013a01b in rb_vm_dispatch (_vm=0x102821af0, cache=0x100aad3d8, top=17184159680, self=17187876480, klass=0x400313800, sel=0x7fff91aaf1ed, block=0x0, opt=0 '\0', argc=<value temporarily unavailable, due to optimizations>, argv=0x7fff5fbff5d0) at dispatcher.cpp:161 #55 0x0000000103b7197c in ?? () #56 0x0000000103b713ba in ?? () #57 0x00000001001518b3 in rb_vm_run (fname=<value temporarily unavailable, due to optimizations>, node=0x4004a2a40, binding=<value temporarily unavailable, due to optimizations>, inside_eval=false) at vm.cpp:3942 #58 0x0000000100030a10 in ruby_run_node (n=0x4004a2a40) at eval.c:211 #59 0x0000000100000cf8 in main (argc=4, argv=0x10281ab70, envp=<value temporarily unavailable, due to optimizations>) at main.cpp:40 (gdb) }}}
-- Ticket URL: <http://www.macruby.org/trac/ticket/1074#comment:1> MacRuby <http://macruby.org/>