Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java process exit #99

Open
syjzwjj opened this issue Sep 3, 2024 · 1 comment
Open

Java process exit #99

syjzwjj opened this issue Sep 3, 2024 · 1 comment

Comments

@syjzwjj
Copy link

syjzwjj commented Sep 3, 2024

When I use the docker Image (latest version), it encountered with error below:

zwjj@machine:~$ csudo docker run -it --rm -v $(pwd)/ghidriffs:/ghidriffs ghcr.io/clearbluejar/ghidriff:latest ghidriffs/1.dll ghidriffs/2.dll
INFO | ghidriff | Init Ghidra Diff Engine...
INFO | ghidriff | Engine Console Log: INFO
INFO | ghidriff | Engine File Log:  ghidriffs/ghidriff.log INFO
INFO | ghidriff | Starting Ghidra...
ERROR| pyhidra.launcher | An error occured launching Ghidra: Command 'java -cp "/home/zwjj/Downloads/ghidra_10.3.2_PUBLIC/support/LaunchSupport.jar" LaunchSupport "/home/zwjj/Downloads/ghidra_10.3.2_PUBLIC" -jdk_home -save' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/usr/local/bin/ghidriff", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/ghidriff/__main__.py", line 53, in main
    d: GhidraDiffEngine = DiffEngine(args=args,
                          ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/ghidriff/ghidra_diff_engine.py", line 121, in __init__
    launcher.start()
  File "/usr/local/lib/python3.12/dist-packages/pyhidra/launcher.py", line 309, in start
    self._report_fatal_error("An error occured launching Ghidra", str(e), e)
  File "/usr/local/lib/python3.12/dist-packages/pyhidra/launcher.py", line 220, in _report_fatal_error
    raise cause
  File "/usr/local/lib/python3.12/dist-packages/pyhidra/launcher.py", line 260, in start
    os.environ['JAVA_HOME'] = str(self.java_home)
                                  ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/pyhidra/launcher.py", line 159, in java_home
    home = subprocess.check_output(cmd, encoding="utf-8", shell=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'java -cp "/home/zwjj/Downloads/ghidra_10.3.2_PUBLIC/support/LaunchSupport.jar" LaunchSupport "/home/zwjj/Downloads/ghidra_10.3.2_PUBLIC" -jdk_home -save' returned non-zero exit status 1.

I've checked the jdk version inside docker images, seems it's jdk 11 and it's old? Have you ever encountered this issue before? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@syjzwjj and others