[MacRuby] #1435: GC crashing when trying to free a regex currently in use

MacRuby ruby-noreply at macosforge.org
Fri Jan 20 08:46:13 PST 2012


#1435: GC crashing when trying to free a regex currently in use
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------

Comment(by mrada@…):

 Hmm, still only have the crash with MacRuby that I build myself using LLVM
 2.9. I have noticed that the backtrace is a little different than the one
 originally reported:

 {{{

 Thread 2 Crashed:: Dispatch queue: Garbage Collection Work Queue
 0   ???                                 0x00007fff71fa6930 typeinfo for
 icu::UVector + 0
 1   libicucore.A.dylib                  0x00007fff891604cb
 icu::RegexPattern::zap() + 71
 2   libicucore.A.dylib                  0x00007fff8916059c
 icu::RegexPattern::~RegexPattern() + 30
 3   libicucore.A.dylib                  0x00007fff8919f632 0x7fff8904f000
 + 1377842
 4   libicucore.A.dylib                  0x00007fff8919f779 uregex_close +
 40
 5   libmacruby.dylib                    0x0000000108e7ba0e 0x108de9000 +
 600590
 6   libobjc.A.dylib                     0x00007fff8407357c
 finalizeOneObject + 53
 7   libauto.dylib                       0x00007fff8402707e
 Auto::foreach_block_do(auto_zone_cursor*, void (*)(void*, void*), void*) +
 94
 8   libobjc.A.dylib                     0x00007fff840734ac batchFinalize +
 53
 9   libauto.dylib                       0x00007fff84027019
 Auto::Zone::invalidate_garbage(unsigned long, void**) + 73
 10  libauto.dylib                       0x00007fff8403a9db
 __finalize_local_garbage_later_block_invoke_0 + 59
 11  libdispatch.dylib                   0x00007fff8a2038ba
 _dispatch_call_block_and_release + 18
 12  libdispatch.dylib                   0x00007fff8a20510a
 _dispatch_queue_drain + 264
 13  libdispatch.dylib                   0x00007fff8a204f66
 _dispatch_queue_invoke + 54
 14  libdispatch.dylib                   0x00007fff8a204760
 _dispatch_worker_thread2 + 198
 15  libsystem_c.dylib                   0x00007fff8c2c43da
 _pthread_wqthread + 316
 16  libsystem_c.dylib                   0x00007fff8c2c5b85 start_wqthread
 + 13

 }}}

 So I will try using the exact revision of LLVM.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1435#comment:10>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list