• 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
SIGTRAP in NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGTRAP in NSURLConnection


  • Subject: SIGTRAP in NSURLConnection
  • From: Robert Nicholson <email@hidden>
  • Date: Sat, 2 Jun 2007 07:51:36 +0700

so I'm using NSURLDownload and it in turn uses NSURLConnection but right now it's SIGTRAPping on me.

my stack looks like this

(gdb) where
#0 0x90841b21 in CFRunLoopWakeUp ()
#1 0x92853029 in -[NSURLConnection(NSURLConnectionInternal) _postCallback:] ()
#2 0x92855752 in -[NSURLConnection(NSURLConnectionInternal) _postDidReceiveDataCallback] ()
#3 0x92856e69 in -[NSHTTPURLProtocol reportDataToClient:] ()
#4 0x928565da in -[NSConnectionHTTPURLProtocol performStreamRead:] ()
#5 0x928564f8 in -[NSConnectionHTTPURLProtocol continueAfterBytesAvailable] ()
#6 0x90879b72 in _CFStreamSignalEventSynch ()
#7 0x9082c05a in CFRunLoopRunSpecific ()
#8 0x9082bace in CFRunLoopRunInMode ()
#9 0x92824a0f in +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] ()
#10 0x927ef2e0 in forkThreadForFunction ()
#11 0x900245c7 in _pthread_body ()



how can I know why it's SIGTRAPping?

earlier on it SIGTRAPed with a different stack like the following and so it was easier to see I was giving it relative urls which I'm now screening out

(gdb) up
#1 0x92853029 in -[NSURLConnection(NSURLConnectionInternal) _postCallback:] ()
(gdb) up
#2 0x928790ca in -[NSURLConnection(NSURLConnectionInternal) _postDidFailCallback] ()
(gdb) up
#3 0x9287900f in -[NSURLConnection(NSURLConnectionInternal) _didFailWithError:] ()
(gdb) po *(id *)($fp + 16)
NSError "unsupported URL" Domain=NSURLErrorDomain Code=-1002 UserInfo={
NSErrorFailingURLKey = blank.gif;
NSErrorFailingURLStringKey = "blank.gif";
NSLocalizedDescription = "unsupported URL";
}


_______________________________________________

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


  • Follow-Ups:
    • Re: SIGTRAP in NSURLConnection
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: About Technical Q&A QA1518 - Using UTIs to Identify Image Files - what about Video?
  • Next by Date: Re: NSMachPort vs. NSMessagePort
  • Previous by thread: Re: About Technical Q&A QA1518 - Using UTIs to Identify Image Files - what about Video?
  • Next by thread: Re: SIGTRAP in NSURLConnection
  • Index(es):
    • Date
    • Thread