• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GC and NSCFType finalize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GC and NSCFType finalize


  • Subject: GC and NSCFType finalize
  • From: dp <email@hidden>
  • Date: Tue, 04 Aug 2009 21:12:21 -0400

I recently updated some older code and converted to GC in the process. Most of the time, things run fine. But every now and then I seem to run into a CFRelease and/or a finalize down in system libraries or Apple Frameworks. The ImageIO framework and CFDateFormatter seem to be the culprits in some cases. How do I best go about debugging these and/ or working around them? Are these bugs in the frameworks or just a GC issue I need to do something about? Crash stacks below.

thanks in advance




Thread 1 Crashed:
0 com.apple.ImageIO.framework 0x0396c6e4 jp2_family_src::close() + 10
1 com.apple.ImageIO.framework 0x0396c67a _cg_JP2TearDownDecompressor + 28
2 com.apple.ImageIO.framework 0x0396c64f JP2ReleaseInfoCallback + 21
3 com.apple.Foundation 0x01a95a81 -[NSCFType finalize] + 49
4 libobjc.A.dylib 0x0087c6b6 finalizeOneObject + 56
5 libauto.dylib 0x02ae0d9b foreach_block_do(auto_zone_cursor*, void (*)(void*, void*), void*) + 123
6 libobjc.A.dylib 0x0087c87b batchFinalize + 220
7 libobjc.A.dylib 0x0087cb42 batchFinalizeOnTwoThreads + 98
8 libauto.dylib 0x02ae1efe auto_collect_internal(Auto::Zone*, int) + 782
9 libauto.dylib 0x02ae2b7f auto_collection_thread(void*) + 111
10 libSystem.B.dylib 0x006a6155 _pthread_start + 321
11 libSystem.B.dylib 0x006a6012 thread_start + 34



Thread 1 Crashed:
0 com.apple.ImageIO.framework 0x03a13637 kdu_params::~kdu_params() + 523
1 com.apple.ImageIO.framework 0x03a27581 siz_params::~siz_params() + 37
2 com.apple.ImageIO.framework 0x03a02984 kd_codestream::~kd_codestream() + 574
3 com.apple.ImageIO.framework 0x0396d3ea kdu_codestream::destroy() + 80
4 com.apple.ImageIO.framework 0x0396d36e kdrc_codestream::~kdrc_codestream() + 100
5 com.apple.ImageIO.framework 0x0396d2f4 kdrc_codestream::detach(kdrc_stream*) + 246
6 com.apple.ImageIO.framework 0x039ead8e kdrc_stream::~kdrc_stream() + 76
7 com.apple.ImageIO.framework 0x0396cfed kdu_region_compositor::remove_stream(kdrc_stream*, bool) + 229
8 com.apple.ImageIO.framework 0x039eae36 kdrc_layer::~kdrc_layer() + 66
9 com.apple.ImageIO.framework 0x0396ce65 kdu_region_compositor::remove_compositing_layer(int, bool) + 425
10 com.apple.ImageIO.framework 0x0396cb8e kdu_region_compositor::pre_destroy() + 42
11 com.apple.ImageIO.framework 0x03a37925 MyRegionCompositor::~MyRegionCompositor() + 43
12 com.apple.ImageIO.framework 0x0396c6a6 _cg_JP2TearDownDecompressor + 72
13 com.apple.ImageIO.framework 0x0396c64f JP2ReleaseInfoCallback + 21
14 com.apple.Foundation 0x01a95a81 -[NSCFType finalize] + 49
15 libobjc.A.dylib 0x0087c6b6 finalizeOneObject + 56
16 libauto.dylib 0x02ae0d9b foreach_block_do(auto_zone_cursor*, void (*)(void*, void*), void*) + 123
17 libobjc.A.dylib 0x0087c87b batchFinalize + 220
18 libobjc.A.dylib 0x0087cb42 batchFinalizeOnTwoThreads + 98
19 libauto.dylib 0x02ae1efe auto_collect_internal(Auto::Zone*, int) + 782
20 libauto.dylib 0x02ae2b7f auto_collection_thread(void*) + 111
21 libSystem.B.dylib 0x006a6155 _pthread_start + 321
22 libSystem.B.dylib 0x006a6012 thread_start + 34



Thread 1 Crashed:
0 ??? 0xb7143602 0 + 3071555074
1 libicucore.A.dylib 0x02b2e8a1 icu::DateFormat::~DateFormat() + 59
2 libicucore.A.dylib 0x02b716b2 icu::SimpleDateFormat::~SimpleDateFormat() + 94
3 com.apple.CoreFoundation 0x00a010c9 __CFDateFormatterDeallocate + 25
4 com.apple.Foundation 0x01a95a81 -[NSCFType finalize] + 49
5 libobjc.A.dylib 0x0087c6b6 finalizeOneObject + 56
6 libauto.dylib 0x02ae0d9b foreach_block_do(auto_zone_cursor*, void (*)(void*, void*), void*) + 123
7 libobjc.A.dylib 0x0087c87b batchFinalize + 220
8 libobjc.A.dylib 0x0087cb42 batchFinalizeOnTwoThreads + 98
9 libauto.dylib 0x02ae1efe auto_collect_internal(Auto::Zone*, int) + 782
10 libauto.dylib 0x02ae2b7f auto_collection_thread(void*) + 111
11 libSystem.B.dylib 0x006a6155 _pthread_start + 321
12 libSystem.B.dylib 0x006a6012 thread_start + 34
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: GC and NSCFType finalize
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Design Question
  • Next by Date: Loading an AS dict that defines 'point' also causes 'points' to be defined??
  • Previous by thread: Re: Design Question
  • Next by thread: Re: GC and NSCFType finalize
  • Index(es):
    • Date
    • Thread