Re: [HACKERS] Debian no longer dumps cores?

Lists: pgsql-generalpgsql-hackers
From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Pg General <pgsql-general(at)postgresql(dot)org>
Subject: Debian no longer dumps cores?
Date: 2008-10-20 20:49:04
Message-ID: 20081020204904.GF4116@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Hi,

My Debian system (now running Linux 2.6.26) is no longer dumping core
files, and I can't figure out why :-(

Of course, I've set ulimit -c to unlimited, and I'm running the
postmaster directly in the same shell (no pg_ctl or init scripts), but
it's still not working. I'm not sure where else to look; Google
searches return tons of junk but nothing useful.

The kernel was compiled by me to add oprofile support, though I used
Debian's .config to generate the base config, and changed nothing else
(no time to fiddle).

If anybody has any idea of what's going on I'd appreciate it.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Pg General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] Debian no longer dumps cores?
Date: 2008-10-20 21:51:41
Message-ID: Pine.GSO.4.64.0810201719350.1207@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Mon, 20 Oct 2008, Alvaro Herrera wrote:

> My Debian system (now running Linux 2.6.26) is no longer dumping core
> files, and I can't figure out why :-(

My guess is that you're being nailed by one of the changes related to
implementing the improved capabilities interface made in 2.6.25 or 2.6.26.
I know that broke some libpcap versions for example:
http://lkml.org/lkml/2008/4/22/18

I haven't upgraded a Debian system to a kernel that new yet myself to know
specifically what's wrong, the blog posting at
http://linux-man-pages.blogspot.com/2008/05/capabilities-have-fully-arrived-finally.html
is a good starter point to dig for more info. If I had to make a guess
I'd suspect whatever is dumping core doesn't have the CAP_SYS_RAWIO
capability needed to access /proc/kcore and you need to tweak a file
related to that area rather than the ulimit stuff.

Also worth mentioning is that you may need to adjust
/proc/sys/fs/suid_dumpable (see
http://manpages.courier-mta.org/htmlman5/proc.5.html ) and that there have
been distributions that just broke even the CAP_SYS_RAWIO interface at the
kernel level; see http://vir.homelinux.org/blog/archives/30-Lost-time.html
for an example.

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD


From: tomas(at)tuxteam(dot)de
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Pg General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] Debian no longer dumps cores?
Date: 2008-10-21 06:06:12
Message-ID: 20081021060612.GA22593@tomas
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 20, 2008 at 05:49:04PM -0300, Alvaro Herrera wrote:
> Hi,
>
> My Debian system (now running Linux 2.6.26) is no longer dumping core
> files, and I can't figure out why :-(

FWIW, same happens here, out-of-the-box 2.6.26-1 vanilla Debian. Booting
with 2.6.24-1 "fixes" this. Didn't try 2.6.25-1 yet.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI/XFUBcgs9XrR2kYRAmATAJ96SU3oNvNWeJw0VOB7RMBcL66npQCfeZ1Q
YlMSHwJ5c/XxgH3sFpDuA94=
=a1Vq
-----END PGP SIGNATURE-----


From: tomas(at)tuxteam(dot)de
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Pg General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] Debian no longer dumps cores?
Date: 2008-10-21 07:49:44
Message-ID: 20081021074944.GC23370@tomas
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 20, 2008 at 05:49:04PM -0300, Alvaro Herrera wrote:
> Hi,
>
> My Debian system (now running Linux 2.6.26) is no longer dumping core
> files, and I can't figure out why :-(

Tested now with 2.6.25-2. Coredumps still work there. I submitted it as
a bug:

<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502948>

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI/YmYBcgs9XrR2kYRAufMAJ9J4wdGWHSLwLPSd0mENDP5Nk/C6QCdEXOY
wFk4MDQl0HfaKAXmTMUuRZs=
=0J4V
-----END PGP SIGNATURE-----