[patch] Suggest running gdbserver for a PID in container

Daniel Colascione dancol@dancol.org
Tue Mar 15 22:11:00 GMT 2016


On 03/15/2016 03:07 PM, Jan Kratochvil wrote:
> Hi,
> 
> currently
> 	gdb -p <pid from a container>
> will print:
> 	warning: Target and debugger are in different PID namespaces; thread lists and other data are likely unreliable
> 
> BTW it is a bit lost in all the other messages.  Full screen output is in:
> 	https://sourceware.org/bugzilla/show_bug.cgi?id=19828
> 
> It correctly states the problem but it does not say how to solve it.

We (FB) just treat the container as an entirely separate machine and
debug processes inside it using gdbserver.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20160315/0a72b01a/attachment.sig>


More information about the Gdb-patches mailing list