Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aOYzW-0007Il-BW for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Jan 2016 22:55:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aOYzV-0003WP-LQ for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Jan 2016 22:55:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aOWl7-00089x-1H for pgsql-bugs@postgresql.org; Wed, 27 Jan 2016 20:32:09 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aOWl2-0003DQ-6V for pgsql-bugs@postgresql.org; Wed, 27 Jan 2016 20:32:08 +0000 MIME-Version: 1.0 Subject: BUG #13893: PANIC: stuck spinlock To: pgsql-bugs@postgresql.org From: chris.bainbridge@gmail.com Date: Wed, 27 Jan 2016 20:31:19 +0000 Message-ID: <20160127203119.2537.78623@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 13893 Logged by: Chris Bainbridge Email address: chris.bainbridge@gmail.com PostgreSQL version: 9.4.5 Operating system: Debian Jessie Description: Sometimes on system shutdown postgresql hangs and the log shows: PANIC: stuck spinlock (0x7f6089f088e0) detected at /build/postgresql-9.4-CPUoxi/postgresql-9.4-9.4.5/build/../src/backend/storage/buffer/bufmgr.c:1292 or 2016-01-27 19:17:37 GMT [3351-1] PANIC: stuck spinlock (0x7f1de51dc8e0) detected at /build/postgresql-9.4-CPUoxi/postgresql-9.4-9.4.5/build/../src/backend/storage/buffer/bufmgr.c:1705 Which causes systemd to hang: Jan 27 19:16:33 debian postgresql@9.4-main[4959]: pg_ctl: server does not shut down Jan 27 19:16:33 debian systemd[1]: postgresql@9.4-main.service: control process exited, code=exited status=1 Jan 27 19:17:37 debian systemd[1]: postgresql@9.4-main.service: main process exited, code=exited, status=1/FAILURE Jan 27 19:17:37 debian systemd[1]: Stopped PostgreSQL Cluster 9.4-main. Jan 27 19:17:37 debian systemd[1]: Unit postgresql@9.4-main.service entered failed state. Jan 27 19:17:37 debian systemd[1]: Stopping system-postgresql.slice. Sometimes the shutdown continues after a timeout, other times it seems to hang indefinitely, sysrq-l shows postgres process as http://imgur.com/kRAtvxw (Linux 4.4 kernel) A similar bug was reported by another user a few months ago also for 9.4: http://www.postgresql.org/message-id/20150810204319.2695.22673@wrigleys.postgresql.org -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs