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

Python Exception <class 'Exception'>: Unable to find the text segment base addr, please report this! #79

Closed
WarmW1Nd opened this issue Nov 28, 2023 · 4 comments · Fixed by #80

Comments

@WarmW1Nd
Copy link
Contributor

if use not gef, when connect IDA error with this.
because the file path have space

solve:
decomp2dbg/clients/gdb/utils.py
fix function vmmap_base_addrs():

addr = int(re.findall(r"0x[0-9a-fA-F]+", mapping)[0], 16)
path = re.findall(r" r..p (.*)", mapping)[0].strip()

@WarmW1Nd
Copy link
Contributor Author

submit this code can fix this error

@WarmW1Nd
Copy link
Contributor Author

only test on Ubuntu 22.04

@WarmW1Nd
Copy link
Contributor Author

path = re.findall(r"(/.*)", mappings)[0].strip()

this new code can run on Ubuntu 22 and Ubuntu 20

@mahaloz
Copy link
Owner

mahaloz commented Nov 28, 2023

Hi, if you have proposed fixes, could you open a PR?

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

Successfully merging a pull request may close this issue.

2 participants