From: Tom Lane <tgl@sss.pgh.pa.us>
To: ryan@runscope.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13818: PostgreSQL crashes after cronjob runs as "postgres"
Date: Tue, 15 Dec 2015 17:16:55 -0500
Message-ID: <4665.1450217815@sss.pgh.pa.us> (raw)
In-Reply-To: <20151214224729.2624.99840@wrigleys.postgresql.org>
References: <20151214224729.2624.99840@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
ryan@runscope.com writes:
> We are running PostgreSQL 9.4.5 on CentOS 7, uising the RPM from
> postgresql.org. We perform automatic OS updates, so our server was just
> upgraded from CentOS 7.1 to CentOS 7.2. Since the upgrade we've been seeing
> PostgreSQL crash after a cronjob is run as the "postgres" user.
> Here's the syslog output from /var/log/messages when the cronjob runs:
> ...
> Dec 14 18:24:01 prod118 postgres[52611]: [2584-1] PANIC:
> semop(id=57311261) failed: Invalid argument
That seems to mean that something has decided to remove Postgres' SysV
semaphores --- the only plausible reason for EINVAL from semop() is that
the semaphore set no longer exists. Now, Postgres itself certainly did
not do that.
I would bet that what you are looking at is a kernel or systemd bug
associated with this "slice" feature. Perhaps it's miscategorizing
Postgres' existing semaphores as belonging to the new slice and then
destroying them when it destroys the slice.
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
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: tgl@sss.pgh.pa.us, ryan@runscope.com
Subject: Re: BUG #13818: PostgreSQL crashes after cronjob runs as "postgres"
In-Reply-To: <4665.1450217815@sss.pgh.pa.us>
References: <20151214224729.2624.99840@wrigleys.postgresql.org> <4665.1450217815@sss.pgh.pa.us>
* 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