ghidra
ghidra copied to clipboard
Ghidra on Mac (Apple SIlicon) fails to start while attempting to create cache directory in temp directory it doesn't has permission to
Describe the bug A clear and concise description of the bug.
To Reproduce Steps to reproduce the behavior:
- Compile Ghidra from source on Mac Apple Silicon M2m, Ventura 13.6.3
- Unzip the only distributable named ghidra_11.1_DEV_20231229_mac_x86_64.zip despite compiled on Apple Silicon (aarch64)
- Launch ghidraRun from it noticing silent failing
- Launch support/launch.sh to find it has no permission to create /var/tmp/USER-ghidra while it has to create user temp directory
- Manually create the cache directory, chown to local user, notice now Ghidra is correctly starting with below in log:
INFO User temp directory: /var/folders/nd/j4bss2xxxxxx5k7dst3gw6r0000gp/T/USERCUT-ghidra (GhidraRun.java:79)
INFO User cache directory: /var/tmp/USERCUT-ghidra (GhidraRun.java:80)
Expected behavior Initialize cache same way as temp or request elevation of privileges if this would be really needed
Environment (please complete the following information):
- OS: OSX Ventura 13.6.3
- Java Version: 17
- Ghidra Version: 11.1_DEV, 20231229 head - Ghidra Origin: built from official GitHub distro