Re: BUG #14781: server process was terminated by signal 11: Segmentation fault

From: Maksim Karaba <Maksim_Karaba(at)epam(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14781: server process was terminated by signal 11: Segmentation fault
Date: 2017-08-16 15:01:36
Message-ID: 5eaf3b7e1ee34fe3bd138cc5339011c1@EPBYMINSA0001.epam.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(at)epam(dot)com
Minsk, Belarus (GMT+3) epam.com

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

maksim_karaba(at)epam(dot)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

Attachment Content-Type Size
tcce_part.sql application/octet-stream 11.1 KB
explain_verbose.png image/png 391.2 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-08-16 15:10:00 Re: BUG #14781: server process was terminated by signal 11: Segmentation fault
Previous Message Tom Lane 2017-08-16 13:46:44 Re: BUG #14781: server process was terminated by signal 11: Segmentation fault