-
Notifications
You must be signed in to change notification settings - Fork 845
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
fails to load on startup with "NameError: name 'CS_ARCH_RISCV' is not defined" #1870
Comments
Hi, it seems to me that you are running an old version of casptone. We updated this dependency recently and here is where the constant should come from. Can you try to re-run setup.sh? |
Hmm... that was #1790, weird that a different constant is missing here |
I did rerun setup and it didn't help. These capstone packages are installed:
after running setup, the following python packages are installed in the virtual environment.
|
Also I'm not trying to debug a RISC program, I don't even have a RISC V processor anywhere near me. I only care about x86 and x86_64 and very occasionally aarch64. The error above happens when starting gdb without any parameters. It also happens when starting with an x86_64 executable |
Can you show |
Nvm, you showed it. Weird |
Can yo try without sourcing |
i commented it out, same error occurs. |
@FalcoGer Can you show the output of this command?:
|
Well there is the problem. Or at least the symptom of it. How would I fix that though?
|
What's more...
|
however when I do this deactivate
python -c 'import capstone; print(capstone.__version__)' it prints |
For some reason it still sees old capstone. |
@FalcoGer can you join our discord? may be easier to diagnoze all this (https://discord.gg/yxrAYkfvsy) |
An easy fix can be to do Lines 53 to 54 in 0fbe6cf
|
Made PR #1872 |
Description
I just updated pwndbg and ran setup.sh. Afterwards gdb just fails to load pwndbg.
Steps to reproduce
My setup
OS: Ubuntu Mate 22.04
pwndbg: 0fbe6cf
gdb: GNU gdb (Ubuntu 12.0.90-0ubuntu1) 12.0.90
~/.gdbinit
The text was updated successfully, but these errors were encountered: