pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alexey.kuntsevich@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14218: pg_logical_slot_get_changes causes segmentation fault
Date: Wed, 29 Jun 2016 07:10:22 +0000
Message-ID: <20160629071022.1407.10647@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14218
Logged by:          Alexey Kuntsevich
Email address:      alexey.kuntsevich@gmail.com
PostgreSQL version: 9.5.2
Operating system:   Debian Jessie 8.4 x64
Description:        

We enabled logical replication on our postgresql cluster, created a new
replication slot with vanilla test_decoding decoder and ran an app that
polls 10000 rows from this slot once per second. It ran fine for a day,
survived several bulk uploads of ~1mln rows until we did bulk upload of
~8mln rows at once. During the upload our postgresql instance disconnected
all clients and reported that it is in recovery. Core dump was created and
when we checked the logs we saw

2016-06-28 22:16:55 GMT [23598]: [28-1] db=,user=,app=,client= LOG:  00000:
server process (PID 8369) was terminated by signal 11: Segmentation fault
2016-06-28 22:16:55 GMT [23598]: [29-1] db=,user=,app=,client= DETAIL: 
Failed process was running: SELECT * FROM
pg_logical_slot_get_changes('regression_slot', NULL, NULL) LIMIT 10000;
2016-06-28 22:16:55 GMT [23598]: [30-1] db=,user=,app=,client= LOCATION: 
LogChildExit, postmaster.c:3471
2016-06-28 22:16:55 GMT [23598]: [31-1] db=,user=,app=,client= LOG:  00000:
terminating any other active server processes
2016-06-28 22:16:55 GMT [23598]: [32-1] db=,user=,app=,client= LOCATION: 
HandleChildCrash, postmaster.c:3191
2016-06-28 22:16:55 GMT [24845]: [85-1]
db=dw,user=app,app=monitor_node,client=<hidden ip1> WARNING:  57P02:
terminating connection because of crash of another server process
2016-06-28 22:16:55 GMT [24845]: [86-1]
db=dw,user=app,app=monitor_node,client=<hidden ip1> DETAIL:  The postmaster
has commanded this server process to roll back the current transaction and
exit, because another server process exited abnormally and possibly
corrupted shared memory.
2016-06-28 22:16:55 GMT [24845]: [87-1]
db=dw,user=app,app=monitor_node,client=<hidden ip1> HINT:  In a moment you
should be able to reconnect to the database and repeat your command.
2016-06-28 22:16:55 GMT [24845]: [88-1]
db=dw,user=app,app=monitor_node,client=<hidden ip1> LOCATION:  quickdie,
postgres.c:2612
2016-06-28 22:16:55 GMT [24849]: [193-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> WARNING:  57P02:
terminating connection because of crash of another server process
2016-06-28 22:16:55 GMT [24849]: [194-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> DETAIL:  The postmaster
has commanded this server process to roll back the current transaction and
exit, because another server process exited abnormally and possibly
corrupted shared memory.
2016-06-28 22:16:55 GMT [24849]: [195-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> HINT:  In a moment you
should be able to reconnect to the database and repeat your command.
2016-06-28 22:16:55 GMT [24849]: [196-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> LOCATION:  quickdie,
postgres.c:2612
2016-06-28 22:16:55 GMT [8370]: [58059-1]
db=dw,user=app,app=BonusService,client=<hidden ip2> WARNING:  57P02:
terminating connection because of crash of another server process
2016-06-28 22:16:55 GMT [8370]: [58060-1]
db=dw,user=app,app=BonusService,client=<hidden ip2> DETAIL:  The postmaster
has commanded this server process to roll back the current transaction and
exit, because another server process exited abnormally and possibly
corrupted shared memory.
2016-06-28 22:16:55 GMT [8370]: [58061-1]
db=dw,user=app,app=BonusService,client=<hidden ip2> HINT:  In a moment you
should be able to reconnect to the database and repeat your command.
2016-06-28 22:16:55 GMT [8370]: [58062-1]
db=dw,user=app,app=BonusService,client=<hidden ip2> LOCATION:  quickdie,
postgres.c:2612
2016-06-28 22:16:55 GMT [24848]: [63-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> WARNING:  57P02:
terminating connection because of crash of another server process
2016-06-28 22:16:55 GMT [24848]: [64-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> DETAIL:  The postmaster
has commanded this server process to roll back the current transaction and
exit, because another server process exited abnormally and possibly
corrupted shared memory.
2016-06-28 22:16:55 GMT [24848]: [65-1]
db=dw,user=app,app=monitor_node,client=<hidden ip2> HINT:  In a moment you
should be able to reconnect to the database and repeat your command.

We're able to reproduce the issue atm. 


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


view thread (4+ messages)  latest in thread

Message-ID: <20160629071022.1407.10647@wrigleys.postgresql.org>
Permalink:  ../20160629071022.1407.10647@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160629071022.1407.10647@wrigleys.postgresql.org

 · 

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: alexey.kuntsevich@gmail.com
  Subject: Re: BUG #14218: pg_logical_slot_get_changes causes segmentation fault
  In-Reply-To: <20160629071022.1407.10647@wrigleys.postgresql.org>
  References: <20160629071022.1407.10647@wrigleys.postgresql.org>

* 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