Open dshivashankar1994 opened 2 years ago
Expanding the issue a little bit
Because Zombie process are treated as existing (tried to solve in https://github.com/deshaw/pyflyby/commit/6ee02b8af32e9c2a23ca286024d88380c3ba0403), say we do 'py -d
Basically, GDB doesn't support connecting multiple GDB to same process and hence it exits when an active GDB is already connected with the process.
Couple of things to be modified to fix this issue are with inject method (here)
Since this is a public facing API, we should see how we can take care of the above changes as the signature gets modified with above change.
I noticed that here we exit the GDB launched using
inject
and the debugging happens outside of the GDB.The code in here checks for the presence of the gdb process and exits the debugging if not.
The gdb process stops and becomes a zombie process. Earlier the issue was not exposed as the zombie process was not considered as non-existing - which was fixed in commit 6ee02b8af32e9c2a23ca286024d88380c3ba0403.