• 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
Debugging hints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging hints


  • Subject: Debugging hints
  • From: Martin Hewitson <email@hidden>
  • Date: Thu, 22 Dec 2011 11:48:43 +0100

Dear list,

I have a very complex document based app. If I run the app compiled with garbage collection support, then I can open and close document windows without problems. With garbage collected disabled, opening and closing the document windows results in crashes. Clearly I have a memory management issue. My problem is that the crash report doesn't help me. Running in Xcode, the debugger drops out in NSApplicationMain with the following back trace:

#0  0x00007fff91380398 in objc_msgSend_vtable14 ()
No symbol table info available.
#1  0x00007fff8ce33110 in CFRelease ()
No symbol table info available.
#2  0x00007fff8ce5b5f0 in -[__NSArrayM dealloc] ()
No symbol table info available.
#3  0x00007fff8bb06dd2 in -[NSObjectController _dealloc] ()
No symbol table info available.
#4  0x00007fff8b8fb6a4 in -[NSArrayController _dealloc] ()
No symbol table info available.
#5  0x00007fff8b9aa1bc in -[NSController dealloc] ()
No symbol table info available.
#6  0x00007fff8b8a34d5 in -[_NSBindingInfo dealloc] ()
No symbol table info available.
#7  0x00007fff8ce33110 in CFRelease ()
No symbol table info available.
#8  0x00007fff8ce5b5f0 in -[__NSArrayM dealloc] ()
No symbol table info available.
#9  0x00007fff8b838e7d in -[NSBinder _dealloc] ()
No symbol table info available.
#10 0x00007fff8b838e1e in -[NSBinder dealloc] ()
No symbol table info available.
#11 0x00007fff9138403c in (anonymous namespace)::AutoreleasePoolPage::pop ()
No symbol table info available.
#12 0x00007fff8ce5bf75 in _CFAutoreleasePoolPop ()
No symbol table info available.
#13 0x00007fff8ce634e4 in __CFRunLoopRun ()
No symbol table info available.
#14 0x00007fff8ce62ae6 in CFRunLoopRunSpecific ()
No symbol table info available.
#15 0x00007fff88bcd3d3 in RunCurrentEventLoopInMode ()
No symbol table info available.
#16 0x00007fff88bd463d in ReceiveNextEventCommon ()
No symbol table info available.
#17 0x00007fff88bd44ca in BlockUntilNextEventMatchingListInMode ()
No symbol table info available.
#18 0x00007fff8b6363f1 in _DPSNextEvent ()
No symbol table info available.
#19 0x00007fff8b635cf5 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
No symbol table info available.
#20 0x00007fff8b63262d in -[NSApplication run] ()
No symbol table info available.
#21 0x00007fff8b8b180c in NSApplicationMain ()


Can anyone offer any hints or suggestions as to how I can better go about finding this memory problem?

(By the way, the reason I want to switch off the garbage collector is that I get intermittent crashes to do with the garbage collector queue; googling revealed that others have seen these crashes and the consensus seemed to be, switch off garbage collection. In any case, I don't like the fact that I can't switch off garbage collection due to what must be a bug somewhere.)


Best wishes,

Martin



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
    Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

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: Debugging hints
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: NSString looses Umlaute
  • Next by Date: No more warning about registered observers on dealloc with ARC?
  • Previous by thread: Re: How to get the phone number use ios sdk in iphone.
  • Next by thread: Re: Debugging hints
  • Index(es):
    • Date
    • Thread