• 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
Spurious ref count errors again?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spurious ref count errors again?


  • Subject: Spurious ref count errors again?
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 15 Aug 2011 11:06:46 -0700

Since moving a GC project to Xcode 4 and running under 10.7, I've started getting console messages like this:

	malloc: reference count underflow for 0x4004925a0, break on auto_refcount_underflow_error to debug

Is this similar to the spurious messages we used to get about system images being collected, or a real problem I need to track down? Here's an example backtrace when this happens:

	Thread 33, Queue : Garbage Collection Work Queue
	#0	0x00007fff94c2fb14 in auto_refcount_underflow_error ()
	#1	0x00007fff94c649f7 in Auto::SubzoneBlockRef::dec_refcount_no_lock() const ()
	#2	0x00007fff94c64a2a in Auto::SubzoneBlockRef::dec_refcount() const ()
	#3	0x00007fff94c2ac6e in void Auto::sieve_base::sieve_base_pointer<Auto::auto_refcount_sieve<1> >(Auto::Zone*, void const*, Auto::auto_refcount_sieve<1>&) ()
	#4	0x00007fff94c2719c in auto_zone_release ()
	#5	0x00007fff8be5c7ea in CFRelease ()
	#6	0x00007fff9046818e in -[FI_TTextCell .cxx_destruct] ()
	#7	0x00007fff8c8aa4ed in object_cxxDestructFromClass ()
	#8	0x00007fff8c8ad590 in finalizeOneObject ()
	#9	0x00007fff94c3caae in Auto::foreach_block_do(auto_zone_cursor*, void (*)(void*, void*), void*) ()
	#10	0x00007fff8c8ad4ac in batchFinalize ()
	#11	0x00007fff8c8ad5fb in batchFinalizeOnTwoThreads ()
	#12	0x00007fff94c3ca49 in Auto::Zone::invalidate_garbage(unsigned long, void**) ()
	#13	0x00007fff94c2a22b in auto_collect_internal(Auto::Zone*, unsigned int) ()
	#14	0x00007fff94c25cba in __auto_zone_collect_block_invoke_0 ()
	#15	0x00007fff8fb4690a in _dispatch_call_block_and_release ()
	#16	0x00007fff8fb4815a in _dispatch_queue_drain ()
	#17	0x00007fff8fb47fb6 in _dispatch_queue_invoke ()
	#18	0x00007fff8fb477b0 in _dispatch_worker_thread2 ()
	#19	0x00007fff9014e3da in _pthread_wqthread ()
	#20	0x00007fff9014fb85 in start_wqthread ()

FWIW, this case happened just after using an Open dialog, and 4 of the messages appeared. There are no (apparent) deleterious symptoms that go along with the messages.

I'll also add there's no C++ code in the app, nor (AFAICT) in any of the 3rd-party frameworks being used.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Spurious ref count errors again?
      • From: Sean McBride <email@hidden>
  • Prev by Date: Re: [UIColor clearColor] in IB does not have an alpha of 0
  • Next by Date: Re: Spurious ref count errors again?
  • Previous by thread: Re: [UIColor clearColor] in IB does not have an alpha of 0
  • Next by thread: Re: Spurious ref count errors again?
  • Index(es):
    • Date
    • Thread