objective c - SIGSEV on [S3Request configureURLRequest:] on Amazon AWS iOS SDK -
i have intermittent crash bug when posting images s3 bucket using ios sdk.
these crash bugs formed of 2 errors, originate in same area of sdk.
segsev
0 ofs staff 0x00282616 testflight_backtrace + 382 1 ofs staff 0x00283264 tfsignalhandler + 264 2 libsystem_c.dylib 0x3b656e92 _sigtramp + 42 3 ofs staff 0x001c74a6 -s3request configureurlrequest (s3request.m:41) 4 ofs staff 0x001b3c1a -s3abstractputrequest configureurlrequest (s3abstractputrequest.m:27) 5 ofs staff 0x001c61ee -s3putobjectrequest configureurlrequest (s3putobjectrequest.m:62) 6 ofs staff 0x001b2bfe -amazons3client signs3request: (amazons3client.m:579) 7 ofs staff 0x001b22aa -amazons3client invoke: (amazons3client.m:450) 8 ofs staff 0x001b1298 -amazons3client putobject: (amazons3client.m:134) 9 ofs staff 0x000d511e -ofsamazons3client putobject: (ofsamazons3client.m:41) 10 ofs staff 0x00099b02 -ofsawsfileuploader upload:fortask:toawsbucket:accesskey:secret:error: (ofsawsfileuploader.m:120) 11 ofs staff 0x000d442c -ofsphotoactivityuploadcell startupload (ofsphotoactivityuploadcell.m:104) 12 uikit 0x354260c4 -uiapplication sendaction:to:from:forevent: + 72 13 uikit 0x35426076 -uiapplication sendaction:totarget:fromsender:forevent: + 30 14 uikit 0x35426054 -uicontrol sendaction:to:forevent: + 44 15 uikit 0x3542590a -uicontrol(internal) _sendactionsforevents:withevent: + 502 16 uikit 0x35425e00 -uicontrol touchesended:withevent: + 488 17 uikit 0x35344420 _uigesturerecognizerupdate + 5768 18 corefoundation 0x335086cc __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 20 19 corefoundation 0x335069c0 __cfrunloopdoobservers + 276 20 corefoundation 0x33506d16 __cfrunlooprun + 742 21 corefoundation 0x33479ebc cfrunlooprunspecific + 356 22 corefoundation 0x33479d48 cfrunloopruninmode + 104 23 graphicsservices 0x3703d2ea gseventrunmodal + 74 24 uikit 0x3538f300 uiapplicationmain + 1120 25 ofs staff 0x00082e36 main (main.m:16) 26 libdyld.dylib 0x3b60fb1f start + 3-__nscfnumber requestformat: unrecognized selector sent instance 0x1d43cfc0
0 corefoundation 0x335332a3 __exceptionpreprocess + 163 1 libobjc.a.dylib 0x3b1d897f objc_exception_throw + 31 2 corefoundation 0x33536e07 -nsobject(nsobject) doesnotrecognizeselector: + 171 3 corefoundation 0x33535531 ___forwarding___ + 393 4 corefoundation 0x3348cf68 _cf_forwarding_prep_0 + 24 5 ofs staff 0x001f84a7 -s3request configureurlrequest (s3request.m:41) 6 ofs staff 0x001e4c1b -s3abstractputrequest configureurlrequest (s3abstractputrequest.m:29) 7 ofs staff 0x001f71ef -s3putobjectrequest configureurlrequest (s3putobjectrequest.m:64) 8 ofs staff 0x001e3bff -amazons3client signs3request: (amazons3client.m:579) 9 ofs staff 0x001e32ab -amazons3client invoke: (amazons3client.m:450) 10 ofs staff 0x001e2299 -amazons3client putobject: (amazons3client.m:134) 11 ofs staff 0x0010611f -ofsamazons3client putobject: (ofsamazons3client.m:41) 12 ofs staff 0x000cab03 -ofsawsfileuploader upload:fortask:toawsbucket:accesskey:secret:error: (ofsawsfileuploader.m:120) 13 ofs staff 0x0010542d -ofsphotoactivityuploadcell startupload (ofsphotoactivityuploadcell.m:104) 14 uikit 0x354260c5 -uiapplication sendaction:to:from:forevent: + 73 15 uikit 0x35426077 -uiapplication sendaction:totarget:fromsender:forevent: + 31 16 uikit 0x35426055 -uicontrol sendaction:to:forevent: + 45 17 uikit 0x3542590b -uicontrol(internal) _sendactionsforevents:withevent: + 503 18 uikit 0x35425e01 -uicontrol touchesended:withevent: + 489 19 uikit 0x35344421 _uigesturerecognizerupdate + 5769 20 corefoundation 0x335086cd __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 21 21 corefoundation 0x335069c1 __cfrunloopdoobservers + 277 22 corefoundation 0x33506d17 __cfrunlooprun + 743 23 corefoundation 0x33479ebd cfrunlooprunspecific + 357 24 corefoundation 0x33479d49 cfrunloopruninmode + 105 25 graphicsservices 0x3703d2eb gseventrunmodal + 75 26 uikit 0x3538f301 uiapplicationmain + 1121 27 ofs staff 0x000b3e37 main (main.m:16) 28 libdyld.dylib 0x3b60fb20 start + 0
both errors focussed around line 41 of s3request.m reads
[self.urlrequest setvalue:self.host forhttpheaderfield:khttphdrhost]; these errors intemittent , far have been unable replicate issue exactly, don't know value of self.host when app crashes.
when upload succeeds, value host correct bucket name.
to try , replicate have tried run requests host name set nil, set incorrect bucket name, on wifi, 3g , no connectivity none of these conditions causes either condition occur.
does know causing these issues , therefore may have fix them?
===update===
i managed replicate it, have no idea how. got sigsev.
this status of request object @ the s3request object @ time of error
(s3putobjectrequest) s3putobjectrequest = { s3abstractputrequest = { s3request = { amazonservicerequest = { nsobject = { isa = ofss3putobjectrequest } httpmethod = 0x004bde08 @"get" parameters = 0x00000000 endpoint = 0x004c3a38 @"https://s3.amazonaws.com" useragent = 0x1d427b60 @"aws-sdk-ios/1.4.4 iphone-os/6.0.1 en_gb" credentials = 0x00000000 urlrequest = 0x1d1165f0 urlconnection = 0x1d04d680 responsetimer = 0x00000000 requesttag = 0x00000000 servicename = 0x00000000 regionname = 0x00000000 hostname = 0x00000000 delegate = 0x1c567ba0 } authorization = 0x00000000 contentlength = 0 contenttype = 0x004b9e28 @"image/jpeg" date = 0x1d0e8340 <not objective-c object> securitytoken = 0x00000000 bucket = 0x1d4464f0 @"*****" key = 0x1d1eb040 @"id_c78acbea_58163_0.jpg" subresource = 0x00000000 } cannedacl = 0x00000000 fullacl = 0x00000000 storageclass = 0x00000000 serversideencryption = 0x00000000 metadata = 0x1d2d6700 0 key/value pairs } expiresset = no cachecontrol = 0x00000000 contentdisposition = 0x00000000 contentencoding = 0x00000000 contentmd5 = 0x00000000 filename = 0x00000000 data = 0x1d1a9f00 3814479 bytes stream = 0x00000000 expect = 0x00000000 generatemd5 = no expires = 0 redirectlocation = 0x00000000 }
Comments
Post a Comment