From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: core. files inside base directory
Date: Thu, 26 Mar 2020 14:17:10 +0100
Message-ID: <20200326131710.GA12141@hjp.at> (raw)
In-Reply-To: <MWHPR01MB252629F78354D73981191774E5CF0@MWHPR01MB2526.prod.exchangelabs.com>
References: <MWHPR01MB252629F78354D73981191774E5CF0@MWHPR01MB2526.prod.exchangelabs.com>
On 2020-03-26 10:42:46 +0000, Daulat Ram wrote:
> Hello, I have the core. Files inside the base directory of my postgres 10 setup
> . Would you please let me know the importance of these files . When they
> generate . Can we delete them ?
Core files are created by the kernel when a process crashes. Unless you
already know which program crashed and why, it is probably worth
investigating.
As a first step you could just use the file utility to find out which
program crashed.
file core.*
should print something like
core.26166: ELF 64-bit LSB core file x86-64, version 1 (SYSV),
SVR4-style, from 'sleep 120', real uid: ... execfn: '/bin/sleep' ...
for each file. (Of course the program won't be "sleep" in your case.
To analyze the coredumps further you would have to use a debugger (e.g.
gdb).
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: core. files inside base directory
In-Reply-To: <20200326131710.GA12141@hjp.at>
References: <MWHPR01MB252629F78354D73981191774E5CF0@MWHPR01MB2526.prod.exchangelabs.com> <20200326131710.GA12141@hjp.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox