gdal signing issue on M1 #3124
Unanswered
rundel
asked this question in
Everyday usage
Replies: 3 comments 1 reply
-
What is the output of |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I was just able to find the issue - apparently the signing issue was with nss, specifically libnss3.dylib. Forcing nss to reinstall solved the issue. I was able to identify the specific issue by looking at the console again, specifically one of the early kernel log messages included the following details:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've recently run into a strange issue where just linking to gdal causes the resulting binary to killed immediately when run. The basic reprex I've been able to create as follows:
gdal_test.cpp
:which is compiled with
and then run and produces the following output
If the
-lgdal
flag is removed then the binary can be run successfully - trying with other related libraries (e.g.-lgeos
,-lproj
, etc.) all work as expected.In looking at log entries in console there is a crash log and an ips file is created, the contents of which are available here.
The most relevant aspect appears to be
EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
which from some googling appears to be related to dylib signing cache.I'm not super familiar with the code signing process but it does appear that the dylib is signed (adhoc):
codesign -dv /opt/homebrew/Cellar/gdal/3.4.2_1/lib/libgdal.30.dylib Executable=/opt/homebrew/Cellar/gdal/3.4.2_1/lib/libgdal.30.dylib Identifier=libgdal.30 Format=Mach-O thin (arm64) CodeDirectory v=20400 size=136771 flags=0x2(adhoc) hashes=4269+2 location=embedded Signature=adhoc Info.plist=not bound TeamIdentifier=not set Sealed Resources=none Internal requirements count=0 size=12
So I am at a loss as what to do next - I've reinstalled and rebuild the formula as well as all formula dependencies.
Beta Was this translation helpful? Give feedback.
All reactions