I have a lengthy process in a docker container that I would like to connect gdb to see which threads are running and get the stack. I can connect to the process from the host, but I cannot allow any characters, because the executable file is located elsewhere in the file system (it is installed at the docking station level), and the general system libraries are all stuck in the docker file system image somewhere in / var / lib / docker.
I can generate the main file and use gdb to look at it, indicating the host path to the executable, but since the system libraries are in the wrong places and loaded in the wrong locations in the corefile, I do not get any information from this.
Do I have any options that I forgot?
source share