• 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
[Xcode] Advanced EXC_BAD_ACCESS hunting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xcode] Advanced EXC_BAD_ACCESS hunting


  • Subject: [Xcode] Advanced EXC_BAD_ACCESS hunting
  • From: Alexander von Below <email@hidden>
  • Date: Tue, 16 Feb 2010 16:26:03 +0100

Hello List,

Disclaimer: I consider this a "Tools", not a Cocoa or iPhone question

I am at a loss. I am developing an iPhone App, and one part of my code (Actually an NSConnection requiring authentication) results in an EXC_BAD_ACCESS error.

There is no additional information, just 'Program received signal:  “EXC_BAD_ACCESS” without any address, etc.

The backtrace is not helping much either. It does not contain any of my code but stems from +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] and ends at CFStringGetLength (it is atttached in full below)

I think myself to be an experienced Cocoa/Mac/iPhone developer, so I tried all the usual tools: NSZombieEnabled, CFZombieLevel (3), MallocErrorAbort, all to no help.

To make matters worse, if I isolate the code into another (simple) Mac or iPhone project (I have actually tried both), the error does not occur.

As I said, I am at a complete loss where and how to go hunting for the issue and would appreciate any hints. I have put the very "condensed to the max" sourcecode at http://files.me.com/below/4s8t64, but it uses an example url and example passwords, so it will not work.

Any help is appreciated!

Thanks

Alex

#0  0x3356d332 in CFStringGetLength ()
#1  0x33577c74 in CFStringCompare ()
#2  0x30e57e18 in HTTPConnectionCacheEntry::copyConnectionForProtocol ()
#3  0x30e57578 in HTTPConnectionCache::CopyConnectionForProtocol ()
#4  0x30e56d0a in HTTPProtocol::createStream ()
#5  0x30e569da in HTTPProtocol::createAndOpenStream ()
#6  0x30e97afa in HTTPProtocol::useCredential ()
#7  0x30e9ff60 in URLConnectionLoader::loaderUseCredential ()
#8  0x30e55120 in URLConnectionLoader::LoaderConnectionEventQueue::processAllEventsAndConsumePayload ()
#9  0x30e5508e in URLConnectionLoader::processEvents ()
#10 0x30e534ec in URLConnection::multiplexerClientPerform ()
#11 0x30e5346e in MultiplexerSource::perform ()
#12 0x30e53410 in MultiplexerSource::_perform ()
#13 0x3358aa9c in CFRunLoopRunSpecific ()
#14 0x3358a35c in CFRunLoopRunInMode ()
#15 0x326d6f5e in +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] ()
#16 0x326cff38 in -[NSThread main] ()
#17 0x3267f0a0 in __NSThread__main__ ()
#18 0x328e5910 in _pthread_body ()
#19 0x00000000 in ?? ()


 _______________________________________________
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: [Xcode] Advanced EXC_BAD_ACCESS hunting
      • From: jeremy <email@hidden>
  • Prev by Date: Re: Overkill - Declaration of 'XXX' shadows a member of 'this'
  • Next by Date: Re: Code Signing for Mac application
  • Previous by thread: Re: Code Signing for Mac application
  • Next by thread: Re: [Xcode] Advanced EXC_BAD_ACCESS hunting
  • Index(es):
    • Date
    • Thread