hooking up gdb (was Re: [Zope-dev] More signal 11 restarts....)

Matthew T. Kromer matt@zope.com
Thu, 06 Dec 2001 10:22:33 -0500


Andy Dustman wrote:

>
>If you don't think a core dump is going to be useful, gdb isn't going to
>be either.
>

Well, the problem is on Linux, the core file is from the process that 
received the SIG11, not the one that caused it, in most cases (due to 
the way Linux implements threads).  To the best of my knowledge, the 
core does NOT contain the necessary registers of the remaining threads; 
thus gdb can't show you which thread dumped core.

However, attaching gdb to the running zope usually does work, since gdb 
can inspect the processes when they are running to get the thread 
information.