Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8xu1-0008Hz-Qh for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 22:17:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8xu0-00022c-B6 for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 22:17:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8xtz-00021w-Dg for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 22:16:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8xtw-0003Jt-Jk for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 22:16:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tBFMGtqO004666; Tue, 15 Dec 2015 17:16:55 -0500 From: Tom Lane To: ryan@runscope.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13818: PostgreSQL crashes after cronjob runs as "postgres" In-reply-to: <20151214224729.2624.99840@wrigleys.postgresql.org> References: <20151214224729.2624.99840@wrigleys.postgresql.org> Comments: In-reply-to ryan@runscope.com message dated "Mon, 14 Dec 2015 22:47:29 +0000" Date: Tue, 15 Dec 2015 17:16:55 -0500 Message-ID: <4665.1450217815@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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