Hello,
Am using your amazing software to backup my folders on a Nexis storage, It worked well until I upgraded the Mac Os system to Mojave, then the app crashes few seconds after it starts the folders scan.
Am using the last version of the app. I've made many tests , the copy work well between folders of hard drives connected to the computer but when I try with the Nexis storage it crashes.
Here is a trace of the activity of the thread before and after the crash. I've noticed many error messages ... but I couldn't figure out the origin of this bug ?
Hope you can help me to solve this issue. Let me know if your need more information.
Kind regards.
Crash when scanning folders on Mac OS (Mojave) and Nexis Storage
- Posts: 9
- Joined: 28 Jul 2020
- Attachments
-
- ERROR-REPORT.TXT
- (104.09 KiB) Downloaded 49 times
-
- ffs_trace2 copie.txt.zip
- (443.62 KiB) Downloaded 49 times
Last edited by alienlarevanche on 28 Jul 2020, 18:51, edited 1 time in total.
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
Do you also have a call stack for the crash?
- Posts: 9
- Joined: 28 Jul 2020
No sorry , how can i get it ?
I added the error report if it's useful ?
I added the error report if it's useful ?
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
You may have to enable the macOS crash reporting first:
https://freefilesync.org/faq.php#crash
https://freefilesync.org/faq.php#crash
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
FFS is crashing while trying to write to the sync.ffs_lock file. Most likely a driver bug, but maybe we can work around. Does the following version still crash?
https://www.mediafire.com/file/pe57jcbo8tze1gr/FreeFileSync_11.1_beta_macOS.zip
https://www.mediafire.com/file/pe57jcbo8tze1gr/FreeFileSync_11.1_beta_macOS.zip
- Posts: 9
- Joined: 28 Jul 2020
Thank you for this reply, I've tried with the version you sent me , it still crashes.
There are two cases :
1st it takes some time trying to access the storage like 15s then start to scan before it crashes few secondes later
when I try again, it starts immediately to scan before it crashes.
There are two cases :
1st it takes some time trying to access the storage like 15s then start to scan before it crashes few secondes later
when I try again, it starts immediately to scan before it crashes.
- Attachments
-
- FreeFileSync_i386_2020-07-29-113517_FLAME3.txt
- (90.49 KiB) Downloaded 46 times
-
- FreeFileSync_i386_2020-07-29-112828_FLAME3.txt
- (94.71 KiB) Downloaded 47 times
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
I suspect the crash has something to do with entitlements:
Maybe using the Nexis Storage requires FFS to request com.apple.security.cs.allow-unsigned-executable-memory or the like. FFS however is not sandboxed, so this shouldn't apply.
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
It seems some apps set entitlements even though they are not sandboxed, while other entitlements only make sense to set when sandboxed. So let's give it a shot. The version below will set these entitlements:
https://www.mediafire.com/file/w98ma50n6xelc3f/FreeFileSync_11.1_beta_macOS(2).zip
If this doesn't work, we need to somehow gather more information about why "EXC_CRASH (Code Signature Invalid)" occurs. Maybe details are logged somewhere.
com.apple.security.cs.allow-jit
com.apple.security.cs.allow-unsigned-executable-memory
com.apple.security.cs.disable-library-validation
com.apple.security.cs.allow-dyld-environment-variables
If this doesn't work, we need to somehow gather more information about why "EXC_CRASH (Code Signature Invalid)" occurs. Maybe details are logged somewhere.
- Posts: 9
- Joined: 28 Jul 2020
EUREKA ! It works ! It looks like you figured out what was happening :) ! Bravo !
Do I have to keep this beta version or theses changes will be available on the next update ?
Thank you again for your quick support Zenju !
Do I have to keep this beta version or theses changes will be available on the next update ?
Thank you again for your quick support Zenju !
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
Wow, I had expected more complications! Now I hate cargo cult, so let's find out which of those entitlements did the trick and I'll include it for the next release. I don't think com.apple.security.cs.allow-jit was required, the other ones I'm not sure:
com.apple.security.cs.allow-unsigned-executable-memory:
https://www.mediafire.com/file/i1tu33isk8a7pz6/FreeFileSync_11.1_beta_macOS(3).zip
com.apple.security.cs.disable-library-validation:
https://www.mediafire.com/file/q9dkzvy6ky08bj3/FreeFileSync_11.1_beta_macOS(4).zip
com.apple.security.cs.allow-dyld-environment-variables:
https://www.mediafire.com/file/ht7cl7sgqwgqv6o/FreeFileSync_11.1_beta_macOS(5).zip
com.apple.security.cs.allow-unsigned-executable-memory:
https://www.mediafire.com/file/i1tu33isk8a7pz6/FreeFileSync_11.1_beta_macOS(3).zip
com.apple.security.cs.disable-library-validation:
https://www.mediafire.com/file/q9dkzvy6ky08bj3/FreeFileSync_11.1_beta_macOS(4).zip
com.apple.security.cs.allow-dyld-environment-variables:
https://www.mediafire.com/file/ht7cl7sgqwgqv6o/FreeFileSync_11.1_beta_macOS(5).zip
- Posts: 9
- Joined: 28 Jul 2020
Hahaha, of course, so here are the results :
com.apple.security.cs.allow-unsigned-executable-memory: It worked !
com.apple.security.cs.disable-library-validation: Crash
com.apple.security.cs.allow-dyld-environment-variables: Crash
com.apple.security.cs.allow-unsigned-executable-memory: It worked !
com.apple.security.cs.disable-library-validation: Crash
com.apple.security.cs.allow-dyld-environment-variables: Crash
- Attachments
-
- disable-library-validation.txt
- (71 KiB) Downloaded 55 times
-
- allow-dyld-environment-variables.txt
- (89.78 KiB) Downloaded 47 times
- Site Admin
- Posts: 7040
- Joined: 9 Dec 2007
Perfect, fixed for the next release!