• 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
Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...


  • Subject: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • From: Greg Parker <email@hidden>
  • Date: Wed, 8 Apr 2009 14:45:01 -0700

On Apr 8, 2009, at 5:55 AM, David Paeme wrote:
I'm writing an application that accesses a http server via NSURLConnection's sendSynchronousRequest method, and it keeps crashing on me with an EXC_BAD_ADDRESS signal, without ever reaching the server.

This is the stack trace:

#0 0x94e7f1c6 in mach_msg_trap ()
#1 0x94e869bc in mach_msg ()
#2 0x90cfe0ae in CFRunLoopRunSpecific ()
#3 0x90cfecd8 in CFRunLoopRunInMode ()
#4 0x90ad5b1b in CFURLConnectionSendSynchronousRequest ()
#5 0x9575526b in +[NSURLConnection sendSynchronousRequest:returningResponse:error:] ()
#6 0x00002c26 in -[EPBackEnd updateArticles] (self=0x12dc20, _cmd=0x77b76) at /Users/david/Code/Mac/EP/v0.2/EPBackEnd.m:287
#7 0x0000219d in -[AppController refreshArticles:] (self=0x12dbb0, _cmd=0x77223, sender=0x123110) at /Users/david/Code/Mac/EP/v0.2/ AppController.m:52
#8 0x96b9753b in -[NSApplication sendAction:to:from:] ()
#9 0x96b97478 in -[NSControl sendAction:to:] ()
#10 0x96b972fe in -[NSCell _sendActionFrom:] ()
#11 0x96b96957 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:] ()
#12 0x96b961aa in -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] ()
#13 0x96b95a64 in -[NSControl mouseDown:] ()
#14 0x96b941a3 in -[NSWindow sendEvent:] ()
#15 0x96b60d49 in -[NSApplication sendEvent:] ()
#16 0x96abe69f in -[NSApplication run] ()
#17 0x96a8b8a4 in NSApplicationMain ()
#18 0x0000201c in main (argc=1, argv=0xbffff778) at /Users/david/ Code/Mac/EP/v0.2/main.m:13

That's not a crash. That's a run loop waiting patiently for something to happen. Look through the other threads for the one that actually crashed. (If you get a crash log, the crashed thread will be specially marked.)



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
      • From: david paeme <email@hidden>
References: 
 >NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why... (From: David Paeme <email@hidden>)

  • Prev by Date: Re: noob: Question about senders and views
  • Next by Date: how to load an NSMenu out of a nib?
  • Previous by thread: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Next by thread: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Index(es):
    • Date
    • Thread