pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chris.bainbridge@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13893: PANIC:  stuck spinlock
Date: Wed, 27 Jan 2016 20:31:19 +0000
Message-ID: <20160127203119.2537.78623@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:      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



Message-ID: <20160127203119.2537.78623@wrigleys.postgresql.org>
Permalink:  ../20160127203119.2537.78623@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160127203119.2537.78623@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: chris.bainbridge@gmail.com
  Subject: Re: BUG #13893: PANIC:  stuck spinlock
  In-Reply-To: <20160127203119.2537.78623@wrigleys.postgresql.org>
  References: <20160127203119.2537.78623@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