2004-04-15 15:40:14

by slapin

[permalink] [raw]
Subject: multithreaded coredump in 2.6

Hi,

I have run into problem of getting multithreaded coredumps. All I am getting
is core file which under gdb shows only one thread out of my around 300
threads.

My original installation is RedHat 8.0 (kernel 2.4.18). I have browsed
Internet and found that it supposed to be fixed since 2.5.47. I have
installed 2.6.5 kernel but still get the same one-threaded dump.
I use GDB version 5.2.

What's wrong? Am I missing something? May be I should change some
kernel settings to enable kernel dump all threads?

I will appreciate any help.
Thanks,
Sergey Lapin


2004-04-15 15:58:20

by szonyi calin

[permalink] [raw]
Subject: Re: multithreaded coredump in 2.6

--- Sergey Lapin <[email protected]> a ?crit?: > Hi,
>
> I have run into problem of getting multithreaded coredumps.
> All I am getting
> is core file which under gdb shows only one thread out of my
> around 300
> threads.
>
>
> What's wrong? Am I missing something? May be I should change
> some
> kernel settings to enable kernel dump all threads?
>

AFAIK the default name of the core file is core. So if you have
300 threads they could overwrite the file to one another.
You can customize the core file naming:
/proc/sys/kernel/core_pattern

see Documentation/sysctl/kernel.txt in your kernel tree

> I will appreciate any help.
> Thanks,
> Sergey Lapin
> -

Calin

=====
--
A mouse is a device used to point at
the xterm you want to type in.
Kim Alm on a.s.r.






Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Cr?ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis gr?ce ? Yahoo! Messenger !T?l?chargez Yahoo! Messenger sur http://fr.messenger.yahoo.com

2004-04-15 16:25:29

by slapin

[permalink] [raw]
Subject: RE: multithreaded coredump in 2.6



> -----Original Message-----
> [email protected]] On Behalf Of szonyi calin


> AFAIK the default name of the core file is core. So if you have
> 300 threads they could overwrite the file to one another.
> You can customize the core file naming:
> /proc/sys/kernel/core_pattern
>
> see Documentation/sysctl/kernel.txt in your kernel tree
>

I use pid in a core file name so it looks like core.2345. It's not it.

Thanks,
Sergey Lapin