GuidoBartoli / sherloq

An open-source digital image forensic toolset
GNU General Public License v3.0
2.6k stars 238 forks source link

python3 sherloq.py returns "Illegal Instruction" Ubuntu 22.04.4 LTS #97

Open arbuquerquer opened 2 months ago

arbuquerquer commented 2 months ago

followed the installation instructions with all packages and libraries from requirements.txt:

git clone https://github.com/GuidoBartoli/sherloq.git
cd sherloq/gui
sudo apt install python3-distutils python3-dev python3-testresources subversion
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
rm get-pip.py
sudo pip install virtualenv virtualenvwrapper
echo -e "\n# Python Virtual Environments" >> ~/.bashrc
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc
mkvirtualenv sq -p python3
pip install -r requirements.txt
python3 sherloq.py

running the command python sherloq.py throws an error Illegal operation

any way to troubleshoot where the issue is coming from?

screenshot

GuidoBartoli commented 1 month ago

This is really strange, I cannot replicate your issue on my Ubuntu, same version... are you trying this inside a Virtual Machine?

migueletto commented 1 month ago

Does it always give 'Illegal instruction' ? Perhaps you could run the command with gdb (assuming your machine has gnu debugger installed). Like this: gdb --args python3 sherloq.py When the '(gdb)' prompt appears, enter the 'run' command: (gdb) run If the program faults again, gdb will hopefully give some hint where it is happening.

chunghanlaugambit commented 1 month ago

This is really strange, I cannot replicate your issue on my Ubuntu, same version... are you trying this inside a Virtual Machine?

hi there! thank you for responding. yes, I'm testing it out inside a virtual machine

chunghanlaugambit commented 1 month ago

Does it always give 'Illegal instruction' ? Perhaps you could run the command with gdb (assuming your machine has gnu debugger installed). Like this: gdb --args python3 sherloq.py When the '(gdb)' prompt appears, enter the 'run' command: (gdb) run If the program faults again, gdb will hopefully give some hint where it is happening.

let me have a look and see whether this returns anything interesting. thank you!