SIGTRAP in NSURLConnection
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