2002-06-14 21:33:52

by mgross

[permalink] [raw]
Subject: [PATCH] Multi-threaded core dumps for 2.4.18 non-O(1) kernels.

The following patch is a back port of the 2.5.18 tcore patch I posted last
week.

It applies cleanly to the 2.4.18 base tree.

It has some warnings and one simple regection when applied to the 2.4.18-ia64
tree due to a patch collision with the ia64 patch. I have a ia64 version of
this patch available, upon request, which will apply cleanly to the ia64
kernel.

This patch has been tested on SMP and UP i386 architectures and works very
well. The ia64 SMP version has also been tested and works very well.

To use this patch you will need to strip the objects from the libpthread
module loaded by GDB at post mortem debug time.
('strip /lib/libpthread-0.9.so for my system', YMMV)

I would like to see this feature added to the linux kernel. Support for
multi-threaded core dumps has been in Solaris for a LONG time now, and its
silly for it to not exist in Linux. ISV's need this type of support from the kernel.

Please apply this patch. Its a good thing.

--mgross





Attachments:
tcore-i386-2418.pat (25.12 kB)

2002-06-18 22:08:31

by mgross

[permalink] [raw]
Subject: Re: [PATCH] Multi-threaded core dumps for 2.4.18 non-O(1) kernels.

Updated version fixing the redundant collection of the current tasks'
register state as noted by Vamsi Krishna. See attached.

--mgross

On Friday 14 June 2002 02:40 pm, mgross wrote:
> The following patch is a back port of the 2.5.18 tcore patch I posted last
> week.
>
> It applies cleanly to the 2.4.18 base tree.
>
> It has some warnings and one simple regection when applied to the
> 2.4.18-ia64 tree due to a patch collision with the ia64 patch. I have a
> ia64 version of this patch available, upon request, which will apply
> cleanly to the ia64 kernel.
>
> This patch has been tested on SMP and UP i386 architectures and works very
> well. The ia64 SMP version has also been tested and works very well.
>
> To use this patch you will need to strip the objects from the libpthread
> module loaded by GDB at post mortem debug time.
> ('strip /lib/libpthread-0.9.so for my system', YMMV)
>
> I would like to see this feature added to the linux kernel. Support for
> multi-threaded core dumps has been in Solaris for a LONG time now, and its
> silly for it to not exist in Linux. ISV's need this type of support from
> the kernel.
>
> Please apply this patch. Its a good thing.
>
> --mgross


Attachments:
tcore-2418-061802.pat (25.85 kB)