splitmind
splitmind copied to clipboard
Getting Permissions issue when running gdb
I'm running gdb with pwngdb installed and splitmind. I get the following error when first launching:
or more info invoke `set exception-verbose on` and rerun the command │
or debug it by yourself with `set exception-debugger on` │
Traceback (most recent call last): │
File "<string>", line 2, in <module> │
File "/home/kronos/Downloads/splitmind/splitmind/mind.py", line 85, in build │
self.thinker.setup(self.splitter.splits(), **kwargs) │
File "/home/kronos/Downloads/splitmind/splitmind/thinker/pwndbg.py", line 31, in setup │
self.banners(s for s in splits if s.tty is not None) │
File "/home/kronos/Downloads/splitmind/splitmind/thinker/pwndbg.py", line 13, in banners │
with open(tty,"w") as out: │
PermissionError: [Errno 13] Permission denied: '/dev/pts/9' │
/home/kronos/.gdbinit:19: Error in sourced command file: │
Error while executing Python code. │
Reading symbols from ./tut02-shellcode/target... │
pwndbg>
I know it's been a minute but I'm pretty sure this is due to there not being any way to check if a command fails during setup and therefore the pts that should be associated with it not existing. In my case, I copy/pasted the example init which included a call to ipython
which I did not have installed. By changing that command to ipython3
I was able to get things running again.
I know it's been a minute but I'm pretty sure this is due to there not being any way to check if a command fails during setup and therefore the pts that should be associated with it not existing. In my case, I copy/pasted the example init which included a call to
ipython
which I did not have installed. By changing that command toipython3
I was able to get things running again.
Could you elaborate on that please?
I am facing the same issue however I don't where ipython
is being used.
I can't be sure how you're using it, but this is the example .gdbinit
that I copy/pasted to start working from which had a call to ipython
for one of the panes. I'd double check the commands you have in your .gdbinit
and ensure they can all run successfully. If that doesn't work, then I'm afraid you're having a different issue than I. Good luck!
I can't be sure how you're using it, but this
Thanks, I was using the same example slightly modified, installing ipython3 and changing the command removed the error.