SDURLCache icon indicating copy to clipboard operation
SDURLCache copied to clipboard

Occasional SIGSEGV in saveCacheInfo:

Open lhasiuk opened this issue 13 years ago • 1 comments

I have two apps that currently use this library, and I'm seeing an occasional crash that looks like this from instances downloaded by users from the AppStore, in both of the apps:

0 libobjc.A.dylib 0x3188cfbc objc_msgSend 16316 <--- Signal SEGV occurs here 1 CoreFoundation 0x33824301 CFBinaryPlistWrite 447233 2 CoreFoundation 0x337dccdd CFPropertyListWrite 154845 3 CoreFoundation 0x337dcad5 CFPropertyListWriteToStream 154325 4 Foundation 0x32784f11 [NSPropertyListSerialization dataFromPropertyList:format:errorDescription:] 73489 5 MyAppName 0x0001ddab -[SDURLCache saveCacheInfo] 118187 6 MyAppName 0x0001e64b -[SDURLCache storeToDisk:] 120395 7 CoreFoundation 0x33873814 _invoking 772116 8 CoreFoundation 0x337ce7e1 -[NSInvocation invoke] 96225 9 Foundation 0x3280569f -[NSInvocationOperation main] 599711 10 Foundation 0x3279e3a3 -[__NSOperationInternal start] 177059 11 Foundation 0x328077a3 __block_global_6 608163 12 libdispatch.dylib 0x360e1d55 _dispatch_call_block_and_release 3413 13 libdispatch.dylib 0x360ed7a3 _dispatch_worker_thread2 51107 14 libsystem_c.dylib 0x35d6f1cf _pthread_wqthread 41423

Any ideas how to solve this?

Thanks!

lhasiuk avatar Jan 27 '12 19:01 lhasiuk

It doesn't happen often but I've seen similar results:

Thread 0 Crashed
0 libsystem_c.dylib memcpy$VARIANT$CortexA8 + 773 1 CoreFoundation CFWriteStreamCopyProperty + 132 2 Foundation +[NSPropertyListSerialization dataFromPropertyList:format:errorDescription:] + 76 3 XXXXXXXXXX SDURLCache.m line 524 __27-[SDURLCache saveCacheInfo]_block_invoke_0 + 524 4 XXXXXXXXXX SDURLCache.m line 307 -[SDURLCache saveCacheInfo] + 307 5 XXXXXXXXXX SDURLCache.m line 610__42-[SDURLCache storeRequestToDisk:response:]_block_invoke_0 + 610

JohnLemberger avatar Apr 19 '12 17:04 JohnLemberger