FS#75233 - [ghidra] fails to start due java issue
Attached to Project:
Community Packages
Opened by Danny Schneider (schnedan) - Monday, 04 July 2022, 07:33 GMT
Last edited by Toolybird (Toolybird) - Monday, 08 August 2022, 07:27 GMT
Opened by Danny Schneider (schnedan) - Monday, 04 July 2022, 07:33 GMT
Last edited by Toolybird (Toolybird) - Monday, 08 August 2022, 07:27 GMT
|
Details
Description: ghidra fails to start due java issue
starting ghidra gives: ghidra Exited with error. Run in foreground (fg) mode for more details. running in debug mode: /opt/ghidra/support/ghidraDebug Listening for transport dt_socket at address: 18001 openjdk version "18.0.1.1" 2022-04-22 OpenJDK Runtime Environment (build 18.0.1.1+2) OpenJDK 64-Bit Server VM (build 18.0.1.1+2, mixed mode) Exception in thread "main" java.lang.NullPointerException: Cannot read the array length because "<local3>" is null at utility.module.ModuleUtilities.findModuleRootDirectoriesHelper(ModuleUtilities.java:89) at utility.module.ModuleUtilities.findModuleRootDirectoriesHelper(ModuleUtilities.java:97) at utility.module.ModuleUtilities.findModuleRootDirectoriesHelper(ModuleUtilities.java:97) at utility.module.ModuleUtilities.findModuleRootDirectories(ModuleUtilities.java:81) at utility.module.ModuleUtilities.findModuleRootDirectories(ModuleUtilities.java:114) at ghidra.GhidraApplicationLayout.findGhidraModules(GhidraApplicationLayout.java:155) at ghidra.GhidraApplicationLayout.<init>(GhidraApplicationLayout.java:70) at ghidra.GhidraLauncher.initializeGhidraEnvironment(GhidraLauncher.java:99) at ghidra.GhidraLauncher.launch(GhidraLauncher.java:48) at ghidra.Ghidra.main(Ghidra.java:47) Additional info: pacman -Qi ghidra Name : ghidra Version : 10.1.4-1 Beschreibung : Software reverse engineering framework Architektur : x86_64 URL : https://ghidra-sre.org/ Lizenzen : Apache Gruppen : Nichts Stellt bereit : Nichts Hängt ab von : java-environment>=11 bash Optionale Abhängigkeiten : python2: Python feature [Installiert] pam: GhidraServer support [Installiert] Benötigt von : ghidra-extension-ghidra-cpp-class-analyzer-git Optional für : Nichts In Konflikt mit : Nichts Ersetzt : Nichts Installationsgröße : 916,07 MiB Packer : Frederik Schwan <freswa@archlinux.org> Erstellt am : Sa 21 Mai 2022 00:26:54 CEST Installiert am : Do 30 Jun 2022 15:38:48 CEST Installationsgrund : Ausdrücklich installiert Installations-Skript : Nein Verifiziert durch : Signatur archlinux-java status Available Java environments: java-18-openjdk (default) Steps to reproduce: try to start ghidra from gui - "nothing" happens from cli - error message(s) as stated above |
This task depends upon
Both have installed the same versions (ghidra + jdk).
It does not work in the VM (but has in the past), but works on my PC.
but I will try if I find some time at work...
--> as expected with no difference (why there should be any if it works with jdk18 on on PC and doesn't on another?)
I addes 2 files I generated with strace while jdk 11 was set globally
strace ghidra > ghidra_strace.txt 2>&1
strace ghidra -f > ghidra_strace_subprocesses.txt 2>&1
You can see the error in the first file and also that jdk 11 is used in the second one...