From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Radosław Smogura <rsmogura(at)softperience(dot)eu> |
Cc: | PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Crash dumps |
Date: | 2011-07-04 04:58:46 |
Message-ID: | 4E114886.4010104@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 15/06/2011 2:37 AM, Radosław Smogura wrote:
> Hello,
>
> Because, I work a little bit on streaming protocol and from time to time
> I have crashes. I want ask if you wont crash reporting (this is one of
> minors products from mmap playing) those what I have there is mmaped
> areas, and call stacks, and some other stuff.
Core files already contain all that, don't they? They omit shared memory
segments by default on most platforms, but should otherwise be quite
complete.
The usual approach on UNIXes and linux is to use the built-in OS
features to generate a core dump of a crashing process then analyze it
after the fact. That way the crash is over as fast as possible and you
can get services back up and running before spending the time, CPU and
I/O required to analyze the core dump.
> This based reports works
> for Linux with gdb, but there is some pluggable architecture, which
> connects with segfault
Which process does the debugging? Does the crashing process fork() a
copy of gdb to debug its self?
One thing I've been interested in is giving the postmaster (or more
likely a helper for the postmaster) the ability to handle "backend is
crashing" messages, attach a debugger to the crashing backend and
generate a dump and/or backtrace. This might be workable in cases where
in-process debugging can't be done due to a smashed stack, full heap
causing malloc() failure, etc.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2011-07-04 06:30:44 | Re: Full GUID support |
Previous Message | Fujii Masao | 2011-07-04 03:19:16 | Re: Online base backup from the hot-standby |