ghidra icon indicating copy to clipboard operation
ghidra copied to clipboard

Ghidra is freezing in welcome view.

Open usaribbon opened this issue 2 years ago • 14 comments

Dear ghidra's developper.

Hello. My ghidra is freezing from welcome view. (more than 10 mins...) I could run other PCs but not this one. Do you know hot to solve this or know to find error log?

Best Regards,

スクリーンショット 2022-09-06 18 39 35 スクリーンショット 2022-09-06 18 37 22

usaribbon avatar Sep 06 '22 09:09 usaribbon

What linux distro and window manager is that? Can you attach the results of jstack when its in this bad state?

jstack <pid>

A quick way to get the pid of a running java projcess is with the jps command.

ryanmkurtz avatar Sep 06 '22 13:09 ryanmkurtz

Hi, ryanmkurtz. Thank you for your reply.

I run my ghidra on docker ubuntu / VCN viewer. I attached a result of jstack and jps.

スクリーンショット 2022-09-07 12 10 46

I'd like to run Ghidra on docker ubuntu because I have many devices and want to run Ghidra on them without any custom.

Thank you for your support.

Regards, Minami

usaribbon avatar Sep 07 '22 03:09 usaribbon

Hi

I restarted my ghidra and jstack (sorry for not text but images...)

スクリーンショット 2022-09-07 12 44 11 スクリーンショット 2022-09-07 12 44 46 スクリーンショット 2022-09-07 12 45 08 スクリーンショット 2022-09-07 12 45 32 スクリーンショット 2022-09-07 12 46 17

usaribbon avatar Sep 07 '22 03:09 usaribbon

Thank you, i see some clues in there. Could you please attach your ~/.ghidra/.ghidra_<version>/application.log (or screenshots of any error messages/stack traces you see in there)?

ryanmkurtz avatar Sep 07 '22 04:09 ryanmkurtz

Hello. Thank you for your support. I will attach application.log application.log

usaribbon avatar Sep 07 '22 09:09 usaribbon

@usaribbon I took a peek at the log file. There are exceptions in there that should not be possible unless you have modified Ghidra's source code. Have you made any mods to Ghidra's source code? Have you installed an extensions?

dragonmacher avatar Sep 07 '22 12:09 dragonmacher

Also, have you added any new JVM arguments?

Does a fresh Ghidra 10.1.5 installation work?

ryanmkurtz avatar Sep 07 '22 13:09 ryanmkurtz

@dragonmacher @ryanmkurtz Thank you for you reply. I didn't install any extentions, modify source code and add JCM arguments...

Here is my Dockerfile. I installed ghidra_10.0_PUBLIC_20210621 and Java JDK11.

./gui/Dockerfile

FROM dorowu/ubuntu-desktop-lxde-vnc

RUN mkdir /root/firmusa/
RUN wget https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.0_build/ghidra_10.0_PUBLIC_20210621.zip -O /root/firmusa/ghidra_10.0_PUBLIC_20210621.zip
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
RUN apt-get update && apt-get install -y zip unzip
RUN unzip /root/firmusa/ghidra_10.0_PUBLIC_20210621.zip -d /root/firmusa/
RUN apt-get install -y openjdk-11-jdk openjdk-11-jre make gcc g++
RUN echo 'PATH="$PATH:/usr/lib/jvm/java-11-openjdk-amd64/bin"' >> /root/.bashrc

./docker-compose.yml

version: '3'
 
services:
  ubuntu-gui:
    build: ./gui
    container_name: 'ubuntu-gui'
    tty: true
    ports:
      - 8080:80
    deploy:
        resources:
            limits:
              cpus: 3
              memory: 8000M
            reservations:
              cpus: 2
              memory: 4000M
docker-compose build
docker-compose up -d
http://127.0.0.1:8080/

usaribbon avatar Sep 08 '22 03:09 usaribbon

Before I try to recreate your environment, can you please try Ghidra 10.1.5?

ryanmkurtz avatar Sep 08 '22 15:09 ryanmkurtz

Actually I went ahead and recreated your environment with the steps you outlined and I didn't run into any issues:

image

ryanmkurtz avatar Sep 08 '22 15:09 ryanmkurtz

@ryanmkurtz Tnank you for your feed back. It's surprising... Do you use windows/Mac? I use M1 Mac.

usaribbon avatar Sep 10 '22 01:09 usaribbon

My test was on an x86 Ubuntu 22.04 VirtualBox VM running on a Windows 11 PC.

ryanmkurtz avatar Sep 10 '22 05:09 ryanmkurtz

Are you running Docker under Rosetta 2? Does your container think it's running on x86?

ryanmkurtz avatar Sep 10 '22 05:09 ryanmkurtz

I again used the docker steps you outlined on an M1 and didn't have the issue. I'm not sure what more I can do at this point.

ryanmkurtz avatar Sep 11 '22 05:09 ryanmkurtz

Thank you for you all

Finally I could run Ghidra on my docker. I was able to run these on Windows11 and Ubuntu. Only M1 Mac was fault to run.

Thank you for your support.

usaribbon avatar Sep 29 '22 04:09 usaribbon