• 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
App works with NSZombieEnabled, crashes without
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

App works with NSZombieEnabled, crashes without


  • Subject: App works with NSZombieEnabled, crashes without
  • From: "John Cebasek" <email@hidden>
  • Date: Wed, 2 May 2007 11:07:42 -0400
  • Thread-topic: App works with NSZombieEnabled, crashes without

Hi All:

I'm trying to track down a memory issue in my plugin.  When the plugin is run, it crashes:

Thread 0 Crashed:
0   com.apple.CoreFoundation       	0x90855764 __CFApplicationPreferencesManagementDidChange + 156
1   com.apple.CoreFoundation       	0x908116d4 __CFXNotificationPostEntry + 164
2   com.apple.CoreFoundation       	0x9081157c __CFXNotificationHandleMessage + 300
3   com.apple.CoreFoundation       	0x908113c4 __CFXNotificationReceiveFromServer + 192
4   com.apple.CoreFoundation       	0x907ec850 __CFMachPortPerform + 176
5   com.apple.CoreFoundation       	0x907ec764 __CFRunLoopDoSource1 + 152
6   com.apple.CoreFoundation       	0x907dee7c __CFRunLoopRun + 1556
7   com.apple.CoreFoundation       	0x907de4ac CFRunLoopRunSpecific + 268
8   com.apple.Foundation           	0x92bd45a4 -[NSConnection sendInvocation:] + 1468
9   com.apple.Foundation           	0x92bd3040 -[NSObject(NSForwardInvocation) forward::] + 408
10  libobjc.A.dylib                	0x90a460b0 _objc_msgForward + 176
11  ...ityAgentPlugin.MCXMechanism 	0x01587a68 0x1584000 + 14952
12  ...ityAgentPlugin.MCXMechanism 	0x015898fc AuthorizationPluginCreate + 3532
13  ...ityAgentPlugin.MCXMechanism 	0x0158936c AuthorizationPluginCreate + 2108
14  com.apple.securityagent        	0x00004810 0x1000 + 14352
15  com.apple.securityagent        	0x0000464c 0x1000 + 13900
16  com.apple.securityagent        	0x00003414 0x1000 + 9236
17  com.apple.securityagent        	0x00003348 0x1000 + 9032
18  com.apple.Foundation           	0x92bd7880 __NSFireMachPort + 112
19  com.apple.CoreFoundation       	0x907ec850 __CFMachPortPerform + 176
20  com.apple.CoreFoundation       	0x907ec764 __CFRunLoopDoSource1 + 152
21  com.apple.CoreFoundation       	0x907dee7c __CFRunLoopRun + 1556
22  com.apple.CoreFoundation       	0x907de4ac CFRunLoopRunSpecific + 268
23  com.apple.HIToolbox            	0x93296b20 RunCurrentEventLoopInMode + 264
24  com.apple.HIToolbox            	0x932961b4 ReceiveNextEventCommon + 380
25  com.apple.HIToolbox            	0x93296020 BlockUntilNextEventMatchingListInMode + 96
26  com.apple.AppKit               	0x9379cae4 _DPSNextEvent + 384
27  com.apple.AppKit               	0x9379c7a8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
28  com.apple.AppKit               	0x93798cec -[NSApplication run] + 472
29  com.apple.securityagent        	0x00002b40 0x1000 + 6976
30  com.apple.securityagent        	0x0000267c 0x1000 + 5756
31  com.apple.securityagent        	0x00008848 0x1000 + 30792

Now there's the tell-tale _objc_msgForward, which usually means that an object has been deleted but a message sent to it.

So I added NSZombieEnabled=YES to the cmd line and things work! If I try any of the NS debugging environment variables (and the tips and hints in TN2124), the plugin works (or at least doesn't make a mess of memory!)

Any one have some rules of thumb that one can apply when trying to debug things like this.

Thanks very much


John Cebasek

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer.  Please see our legal details at http://www.cryptocard.com


Cryptocard Inc. is registered in the province of Ontario, Canada with Business number 80531 6478.  Cryptocard Europe is limited liability compay registered in England and Wales (with registered number 05728808 and VAT number 869 3979 41); its registered office is Eden Park, Ham Green, Bristol, BS20 0EB

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: Re: dictionary as contextInfo in alert sheet
  • Next by Date: Re: NSRulerView background color
  • Previous by thread: ScrollView - slowing down the scroll speed
  • Next by thread: Stuck with NSSortDescriptor
  • Index(es):
    • Date
    • Thread