Could not connect to coreservicesd crash on Monterey beta 7 and 8

My daemons keep crashing on Monterey beta 7 and 8 when calling selectors form NSFileManager: Fore example: attributesOfItemAtPath:error: .

Application Specific Information: Could not establish connection to coreservicesd. Err=(os/kern) successful (0x00000000), rpcResult=0, port=0x2703. (1/0/0/0) abort() called

Here's the stack trace for the crashed thread:

0   libsystem_kernel.dylib        	       0x181da9a18 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x181ddd15c pthread_kill + 288
2   libsystem_c.dylib             	       0x181d1a314 abort + 164
3   CarbonCore                    	       0x1845f0a1c _SCSessionUniverseByUIDAcquireAndLock.cold.2 + 216
4   CarbonCore                    	       0x18450fa7c _SCSessionUniverseByUIDAcquireAndLock + 1012
5   CarbonCore                    	       0x18450edf8 FSNodeStorageGetAndLockCurrentUniverse + 80
6   CarbonCore                    	       0x18450ebdc FileIDTreeGetAndLockVolumeEntryForDeviceID + 80
7   CarbonCore                    	       0x18450ea3c FSMount::FSMount(unsigned int, FSMountNumberType, int*, unsigned int const*) + 92
8   CarbonCore                    	       0x18450e998 FSMountPrepare + 76
9   CoreServicesInternal          	       0x184804f0c MountInfoPrepare + 68
10  CoreServicesInternal          	       0x184804884 parseAttributeBuffer(__CFAllocator const*, unsigned char const*, unsigned char, attrlist const*, void const*, void**, _FileAttributes*, unsigned int*) + 2944
11  CoreServicesInternal          	       0x1848037ec corePropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 1236
12  CoreServicesInternal          	       0x184803290 prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 412
13  CoreServicesInternal          	       0x18480d9b4 _FSURLCopyResourcePropertiesForKeysInternal(__CFURL const*, __CFArray const*, void*, __CFError**, unsigned char) + 1436
14  CoreFoundation                	       0x181eab89c CFURLCopyResourcePropertiesForKeys + 128
15  CoreFoundation                	       0x181eab7b0 -[NSURL resourceValuesForKeys:error:] + 112
16  Foundation                    	       0x182d51630 +[NSFileAttributes _populateCatInfo:forURL:statInfo:error:] + 160
17  Foundation                    	       0x182d51454 +[NSFileAttributes _attributesAtPath:partialReturn:filterResourceFork:error:] + 308
18  *******                   	       0x1008276e4 0x100810000 + 95972

Does anyone else experience this? Is there a macos bug on this that will be fixed with the next beta?

I recommend that you file a bug about this. Please post your bug number, just for the record.

Also, can you post a full crash report here. See my Posting a Crash Report post for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

The same thing also for me.

Same Issue here, did you file a bug report about this?

In our case, the reason of the issue was preventing GET_TASK operation for the crashed process in Endpoint Security system extension. coreservicesd needs it in Monterey when the process calls NSFileManager's methods.

The solution was muting the coreservicesd for es_client intercepting ES_EVENT_TYPE_AUTH_GET_TASK.

Could not connect to coreservicesd crash on Monterey beta 7 and 8
 
 
Q