Open mariaWitch opened 1 year ago
ping @meowmeowxw @nneonneo @NextLight
Duplicate of #17. I don't really understand what's happening here; I see some scattered references to a similar issue elsewhere online, but I cannot replicate this locally. It's odd that we have it happening on both Linux (which I presume you're using) and Windows (#17). I'd be interested to know what jar you're using, etc.
So I haven't tried this in a while, but the last time I recall, this was on ghidra 10.1.2, and I used the latest release of ghidra2dwarf. And yes I am using Linux. Doing some quick inspections on the environment show that the following openjdks are installed. java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
The system is running Ubuntu 22.04, and is running the 6.2.1 linux kernel.
@nneonneo If you have any specific information that you would like me to collect about my setup I can do that for you. Also what version of OpenJDK are you using?
I guess I'd like to know how you're running Ghidra (e.g. how is it packaged?), and which JDK you're actually running Ghidra with.
I'm on macOS, with the following Java:
$ java -version
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment GraalVM CE 22.3.2 (build 17.0.7+7-jvmci-22.3-b18)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.2 (build 17.0.7+7-jvmci-22.3-b18, mixed mode, sharing)
It's packaged like any other ghidra release. I don't exactly know what you are asking for me with that. I run it with the ghidraRun script. What version of Ghidra are you testing on? An older version of Ghidra may have a different version of jython, when I open up the python interpreter in Ghidra, this is what it says.
Python Interpreter for Ghidra
Based on Jython version 2.7.2 (v2.7.2:925a3cc3b49d, Mar 21 2020, 10:03:58)
[OpenJDK 64-Bit Server VM (Private Build)]
Press 'F1' for usage instructions
In your Jython interpreter in Ghidra, can you post the output of “import sys; print sys.path”?
Here's what the output was:
['/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/dev/jython_cachedir/python-src',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/Python/data/jython-2.7.2/Lib',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/Python/lib/jython-standalone-2.7.2.jar/Lib',
'__classpath__',
'__pyclasspath__/',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/Python/data/jython-2.7.2/Lib/site-packages',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Processors/DATA/ghidra_scripts',
'/home/maria/Downloads/ghidra2dwarf',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/Decompiler/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/FunctionID/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/GnuDemangler/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Debug/Debugger-agent-dbgmodel-traceloader/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/FileFormats/ghidra_scripts',
'/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/Extensions/ghidra-xbe/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Debug/Debugger/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/Base/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Processors/PIC/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Processors/8051/ghidra_scripts',
'/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/Extensions/retsync/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/Python/ghidra_scripts',
'/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/Extensions/kaiju/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/VersionTracking/ghidra_scripts',
'/home/maria/Downloads/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/MicrosoftCodeAnalyzer/ghidra_scripts',
'/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/Extensions/Ghidra-Cpp-Class-Analyzer/ghidra_scripts',
'/home/maria/Downloads/ghidra_10.1.2_PUBLIC_20220125/ghidra_10.1.2_PUBLIC/Ghidra/Features/BytePatterns/ghidra_scripts',
'/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/osgi/compiled-bundles',
'/home/maria/.ghidra/.ghidra_10.1.2_PUBLIC/osgi/felixcache']
10.1.2 is a bit old. What happens with e.g. 10.3?
Have you tried using a clean install with no extensions? Move or rename /home/maria/.ghidra
so it starts from a clean state without migrating any settings, add just ghidra2dwarf
to the script path, and see if the problem occurs then.
I have OpenJDK 17.0.5 and python 3 both installed, and I receive the following error when I use it on my file.