pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Márcio Antônio Sepp <marcio@zyontecnologia.com.br>
To: pgsql-general@postgresql.org
Subject: Re: RES: Postgresql Crasching
Date: Fri, 25 Jan 2019 12:28:06 -0800
Message-ID: <6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com> (raw)
In-Reply-To: <004301d4b4de$d4a54f90$7defeeb0$@com.br>
References: <003c01d4b4da$d2c0ade0$784209a0$@com.br>
	<d94ef28c-bf1a-09ed-3f42-88cd7ea988e3@aklaver.com>
	<004301d4b4de$d4a54f90$7defeeb0$@com.br>

On 1/25/19 10:50 AM, Márcio Antônio Sepp wrote:
>>
>> On 1/25/19 10:21 AM, Márcio Antônio Sepp wrote:
>>>
>>> Hi all,
>>>
>>>
>>> We are experiencing the follow error in last few weeks:
>>>
>>> Jan 25 16:03:51 FreeBSD11 kernel: pid 78639 (postgres), uid 770: exited
>> on
>>> signal 11 (core dumped)
>>> Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-1] 2019-01-25 16:03:51.135
>> -02
>>> [73403] WARNING:  terminating connection because of crash of another
>> server
>>> process
>>> Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-2] 2019-01-25 16:03:51.135
>> -02
>>> [73403] DETAIL:  The postmaster has commanded this server process to roll
>>> back the current transacti
>>> on and exit, because another server process exited abnormally and
>> possibly
>>> corrupted shared memory.
>>> Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-3] 2019-01-25 16:03:51.135
>> -02
>>> [73403] HINT:  In a moment you should be able to reconnect to the
>> database
>>> and repeat your command.
>>
>> What is the logs just before the above?
> 
> 
> Jan 25 16:01:55 FreeBSD11 postgres[71605]: [6-2] 2019-01-25 16:01:55.733 -02 [71605] DETAIL:  Key (tdoemp, codemp, codfil, origem, sercai, numdoc, tdopes, codpes, datpar)=(1, 59
> 84305, 1, 55, 1, 160, 1, 5984305000107, 201901) is not present in table "e026pag_p2019".
> Jan 25 16:01:55 FreeBSD11 postgres[71605]: [6-3] 2019-01-25 16:01:55.733 -02 [71605] STATEMENT:  COMMIT
> Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-1] 2019-01-25 16:02:35.184 -02 [73403] ERROR:  insert or update on table "e026par_p2019" violates foreign key constraint "e026par_p
> 2019_tdoemp_fkey"
> Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-2] 2019-01-25 16:02:35.184 -02 [73403] DETAIL:  Key (tdoemp, codemp, codfil, origem, sercai, numdoc, tdopes, codpes, datpar)=(1, 59
> 84305, 1, 55, 1, 160, 1, 5984305000107, 201901) is not present in table "e026pag_p2019".
> Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-3] 2019-01-25 16:02:35.184 -02 [73403] STATEMENT:  COMMIT
> Jan 25 16:03:51 FreeBSD11 kernel: pid 78639 (postgres), uid 770: exited on signal 11 (core dumped)
> 

Hmm, a 1:16 between the query failing and the crash. Hard to say if 
there is a cause and effect. I would follow Tom Lane's advice and see if 
you can get a stack trace.


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (2+ messages)

Message-ID: <6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com>
Permalink:  ../6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com/
Also on:    postgresql.org/message-id/6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, marcio@zyontecnologia.com.br
  Subject: Re: Postgresql Crasching
  In-Reply-To: <6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com>
  References: <003c01d4b4da$d2c0ade0$784209a0$@com.br> <d94ef28c-bf1a-09ed-3f42-88cd7ea988e3@aklaver.com> <004301d4b4de$d4a54f90$7defeeb0$@com.br> <6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com>

* 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