pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-bugs@postgresql.org
Subject: Re: [HACKERS] Postgres process invoking exit resulting in sh-QUIT core
Date: Mon, 10 Jul 2017 22:17:15 +0200
Message-ID: <20170710201715.GB20216@hjp.at> (raw)
In-Reply-To: <CAMsr+YE_Bvf4+WFkJQ+m3X4bmj-jwX6N4C8JqF4qxWBK9yzGfQ@mail.gmail.com>
References: <AM5PR0701MB2642C0A387CE1C5FDE4EA98FD6D30@AM5PR0701MB2642.eurprd07.prod.outlook.com>
	<CAMsr+YHOrsR_-4Z2gPBGDbg1fnF2MRjhHuqDN7bX_h95xPXbRQ@mail.gmail.com>
	<AM5PR0701MB2642F865EFBEDF5CD415DD43D6D60@AM5PR0701MB2642.eurprd07.prod.outlook.com>
	<CAMsr+YGq__E_6ArFzfzw_PswwRW_qB3xkPZmVhn0CZoGbmyrPw@mail.gmail.com>
	<AM5PR0701MB264218C4D4068BEF61B59464D6AA0@AM5PR0701MB2642.eurprd07.prod.outlook.com>
	<CAMsr+YE_Bvf4+WFkJQ+m3X4bmj-jwX6N4C8JqF4qxWBK9yzGfQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2017-07-07 15:25:07 +0800, Craig Ringer wrote:
> Can't immediately explain the exit code, and SIGQUIT should _not_ generate a
> core file.

Yes, it should. The default action of SIGQUIT is to terminate the
process with a core file. 

From signal(7):

|      First the signals described in the original POSIX.1-1990 standard.
|
|      Signal     Value     Action   Comment
|      ──────────────────────────────────────────────────────────────────────
|      SIGHUP        1       Term    Hangup detected on controlling terminal
|                                    or death of controlling process
|
|      SIGINT        2       Term    Interrupt from keyboard
|      SIGQUIT       3       Core    Quit from keyboard
|      SIGILL        4       Core    Illegal Instruction
...

You can also easily test this by pressing Ctrl-\ in the shell while a
program is running:

% sleep 10
^\zsh: quit (core dumped)  sleep 10
%

        hp

-- 
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/;

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (11+ messages)  latest in thread

Message-ID: <20170710201715.GB20216@hjp.at>
Permalink:  ../20170710201715.GB20216@hjp.at/
Also on:    postgresql.org/message-id/20170710201715.GB20216@hjp.at

 · 

reply

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-bugs@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: [HACKERS] Postgres process invoking exit resulting in sh-QUIT core
  In-Reply-To: <20170710201715.GB20216@hjp.at>
  References: <AM5PR0701MB2642C0A387CE1C5FDE4EA98FD6D30@AM5PR0701MB2642.eurprd07.prod.outlook.com> <CAMsr+YHOrsR_-4Z2gPBGDbg1fnF2MRjhHuqDN7bX_h95xPXbRQ@mail.gmail.com> <AM5PR0701MB2642F865EFBEDF5CD415DD43D6D60@AM5PR0701MB2642.eurprd07.prod.outlook.com> <CAMsr+YGq__E_6ArFzfzw_PswwRW_qB3xkPZmVhn0CZoGbmyrPw@mail.gmail.com> <AM5PR0701MB264218C4D4068BEF61B59464D6AA0@AM5PR0701MB2642.eurprd07.prod.outlook.com> <CAMsr+YE_Bvf4+WFkJQ+m3X4bmj-jwX6N4C8JqF4qxWBK9yzGfQ@mail.gmail.com> <20170710201715.GB20216@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