Weird crash in FSRefCreate while saving NSDocument
Weird crash in FSRefCreate while saving NSDocument
- Subject: Weird crash in FSRefCreate while saving NSDocument
- From: Markus Spoettl <email@hidden>
- Date: Mon, 24 Nov 2014 11:03:47 +0100
Hello,
I have a user who keeps crashing our app by saving his NSDocument (file
wrapper based). I can't make any sense of it and he's the only one who runs into
this, apparently.
I'm attaching the call stack of the crash in the hope that someone on the list
recognizes it. Any ideas what might be going on?
Regards
Markus
Crashed Thread: 5 Dispatch queue: com.apple.root.default-qos
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000048
VM Regions Near 0x48:
-->
__TEXT 000000010d12f000-000000010d539000 [ 4136K] r-x/rwx
SM=COW /Applications/My.app/Contents/MacOS/My
Thread 5 Crashed:: Dispatch queue: com.apple.root.default-qos
0 com.apple.CoreServices.CarbonCore 0x00007fff8a120b20 FSRefCreate + 56
1 com.apple.CoreServices.CarbonCore 0x00007fff8a11f174
FSPathMakeRefInternal(unsigned char const*, unsigned int, unsigned int, FSRef*,
unsigned char*) + 247
2 com.apple.CoreFoundation 0x00007fff940b3984 _CFGetFSRefFromURL + 228
3 com.apple.CoreFoundation 0x00007fff940b3885 CFURLGetFSRef + 37
4 com.apple.LaunchServices 0x00007fff8b713337
___LSGetStrongBindingForRef_block_invoke + 61
5 com.apple.LaunchServices 0x00007fff8b74e922 _LSShimFSRef + 68
6 com.apple.LaunchServices 0x00007fff8b7132f4 _LSGetStrongBindingForRef + 68
7 com.apple.CoreServicesInternal 0x00007fff90f9c054 _URLReplaceObject + 7423
8 com.apple.CoreFoundation 0x00007fff9417c382 _CFURLReplaceObject + 114
9 com.apple.Foundation 0x00007fff90604999 -[NSFileManager
replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:] + 248
10 com.apple.Foundation 0x00007fff90728466
+[NSFileWrapper(NSInternalForAppKit)
_finishWritingToURL:byTakingContentsFromItemAtURL:addingAttributes:usingTemporaryDirectoryAtURL:backupFileName:error:]
+ 114
11 com.apple.AppKit 0x00007fff95fda777 -[NSDocument
_finishWritingToURL:byTakingContentsFromItemAtURL:replacingOriginalItemAtURL:addingAttributes:usingTemporaryDirectoryAtURL:backupFileName:error:]
+ 155
12 com.apple.AppKit 0x00007fff95fdc987 __86-[NSDocument
_writeSafelyToURL:ofType:forSaveOperation:forceTemporaryDirectory:error:]_block_invoke
+ 819
13 com.apple.AppKit 0x00007fff95fdc361 -[NSDocument
_writeSafelyToURL:ofType:forSaveOperation:forceTemporaryDirectory:error:] + 2120
14 com.apple.AppKit 0x00007fff95fdcb93 -[NSDocument
_writeSafelyToURL:ofType:forSaveOperation:error:] + 28
15 com.apple.AppKit 0x00007fff95fdcd01 -[NSDocument
writeSafelyToURL:ofType:forSaveOperation:error:] + 357
16 com.apple.AppKit 0x00007fff95fe9fc5 __66-[NSDocument
saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_22307 + 240
17 libdispatch.dylib 0x00007fff8e15d323
_dispatch_call_block_and_release + 12
18 libdispatch.dylib 0x00007fff8e158c13 _dispatch_client_callout + 8
19 libdispatch.dylib 0x00007fff8e15b88f _dispatch_root_queue_drain
+ 935
20 libdispatch.dylib 0x00007fff8e169fe4 _dispatch_worker_thread3 + 91
21 libsystem_pthread.dylib 0x00007fff895936cb _pthread_wqthread + 729
22 libsystem_pthread.dylib 0x00007fff895914a1 start_wqthread + 13
--
__________________________________________
Markus Spoettl
_______________________________________________
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