-
Notifications
You must be signed in to change notification settings - Fork 852
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
RecursionError in is_executable() #2110
Comments
@lucasballr can you show the error? |
Also please provide full steps to reproduce the issue. The dockerfile doesn't build nginx etc. :/ |
I was able to build and run this nginx using the following additional commands:
Idk where to break, I just hit ctrl+c and could reproduce the issue:
|
The problem seems to be comming from the fact that we reconfigure GDB to attach to the child process when a fork occurs, and it causes problem[s] with some of our logic. If we do |
This is really interesting. There is some quirk with debugging this nginx process that if we do
|
So in this case, we do not have vmmaps bcoz the process died when it started? or sth? lol |
Description
I am auditing an old version of nginx. I installed the .deb package of pwndbg v2024.02.14 in an ubuntu 16.04 container. Running the program works just fine, but when it forks for a connection, I get a recursion error in pwndbg.
Steps to reproduce
In a Dockerfile:
FROM ubuntu:16.04
...
RUN wget http://nginx.org/download/nginx-1.3.9.tar.gz
&& tar -xzvf nginx-1.3.9.tar.gz
&& rm nginx-1.3.9.tar.gz
RUN wget https://github.com/pwndbg/pwndbg/releases/download/2024.02.14/pwndbg_2024.02.14_amd64.deb
RUN apt install ./pwndbg_2024.02.14_amd64.deb
pwndbg --args /usr/local/nginx/sbin/nginx -g 'daemon off;'
run and connect with a basic connection.
If you break during the parsing of that http connection, the error will occur.
My setup
Gdb: 13.2
Python: 3.11.5 (main, Aug 24 2023, 12:23:19) [GCC 12.3.0]
Pwndbg: 2024.02.14
Capstone: 5.0.1280
Unicorn: 2.0.1
The text was updated successfully, but these errors were encountered: