Hello all,
My app invokes a bash script via NSTask, which creates an invisible folder in the user's Home folder, and then creates a file in that invisible folder (i.e. ~/.dirname/filename).
Subsequently, I am attempting to read this file via POSIX functions, and the read() call provokes the following crash on the latest macOS 11 beta:
I have seen this on a few different Macs, but on others (with the same OS) it seems to work just fine without crashing. No problems under macOS 10.13-10.15. My app is hardened, codesigned and notarized.
I've checked the entitlements options and none seems appropriate to this. I should be able to read files within the non-protected areas of the user folder (i.e. not Documents, Downloads, Trash etc.), shouldn't I? Is this a macOS bug?
Any help that anyone can provide would be much appreciated!
Many thanks,
Ben
My app invokes a bash script via NSTask, which creates an invisible folder in the user's Home folder, and then creates a file in that invisible folder (i.e. ~/.dirname/filename).
Subsequently, I am attempting to read this file via POSIX functions, and the read() call provokes the following crash on the latest macOS 11 beta:
Code Block OS Version: Mac OS X 10.16 (20A5354i) Report Version: 12 System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) Exception Codes: 0x0000000000000032, 0x00007fff6a0e098e Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 0x2 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff6a0e098e read + 10
I have seen this on a few different Macs, but on others (with the same OS) it seems to work just fine without crashing. No problems under macOS 10.13-10.15. My app is hardened, codesigned and notarized.
I've checked the entitlements options and none seems appropriate to this. I should be able to read files within the non-protected areas of the user folder (i.e. not Documents, Downloads, Trash etc.), shouldn't I? Is this a macOS bug?
Any help that anyone can provide would be much appreciated!
Many thanks,
Ben