pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maksim Karaba <Maksim_Karaba@epam.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14781: server process was terminated by signal 11: Segmentation fault
Date: Wed, 16 Aug 2017 15:01:36 +0000
Message-ID: <5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.com> (raw)
In-Reply-To: <18665.1502891204@sss.pgh.pa.us>
References: <20170816113206.27368.44100@wrigleys.postgresql.org>
	<18665.1502891204@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thank you for your answer so quickly.

>(gdb) p debug_query_string
>$1 = 0x2c2e748 "DO $$DECLARE\nBEGIN\n PERFORM dwh.load_trade_record_inc();\nEND$$;"

We added logging to the function and found out that the error always occurs on the same update
(in attachments)
Plan explain verbose in attachments


MAKSIM KARABA
Senior Systems Engineer, EPAM 
Office: +375 17 389 0100 x 53194   Cell: +375296772871   Email: maksim_karaba@epam.com
Minsk, Belarus (GMT+3)   epam.com



-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Wednesday, August 16, 2017 4:47 PM
To: Maksim Karaba <Maksim_Karaba@epam.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #14781: server process was terminated by signal 11: Segmentation fault

maksim_karaba@epam.com writes:
> We are getting error "server process was terminated by signal 11:
> Segmentation fault" and server goes to recovery mode on production system.
> It repeats several times a day, always on complicated updates using 
> postgres_fdw.

Please show the failing query or queries.  (If you don't have postmaster logs showing them, "p debug_query_string" in the core files should get the info.)  Also, please show EXPLAIN VERBOSE plans for the query(s), as well as schema information (psql \d output would do) for the referenced tables.

https://wiki.postgresql.org/wiki/Guide_to_reporting_problems

			regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

  tcce_part.sql (application/octet-stream, 11.1K) download

explain_verbose.png (image/png, 391.2K) download view image

view thread (9+ messages)  latest in thread

Message-ID: <5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.com>
Permalink:  ../5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.com/
Also on:    postgresql.org/message-id/5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.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-bugs@postgresql.org
  Cc: Maksim_Karaba@epam.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14781: server process was terminated by signal 11: Segmentation fault
  In-Reply-To: <5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.com>
  References: <20170816113206.27368.44100@wrigleys.postgresql.org> <18665.1502891204@sss.pgh.pa.us> <5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.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