Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0fN7-0003pz-9E for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jan 2014 22:43:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0fN6-000567-Lh for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jan 2014 22:43:40 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0fN5-000560-GD for pgsql-bugs@postgresql.org; Tue, 07 Jan 2014 22:43:39 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0fN2-0002iM-A6 for pgsql-bugs@postgresql.org; Tue, 07 Jan 2014 22:43:38 +0000 Received: by mail-lb0-f173.google.com with SMTP id z5so761205lbh.4 for ; Tue, 07 Jan 2014 14:43:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=q4BDoFGCftwzqV4NnxIMXi0fOByjMWpbmACn8r2t71g=; b=fXsnAOWCfVI68NJhgA9rLgmlQl5yRRMaGRa985588Kejj4uTe+9mWNkyuvhokPxrx6 6aWJfpkVhFcShDsVBufiu1doU060OC/R98Ou/EELooKum4sG2i90YEz+hGj7IDKRUd6T vnWD/fNyX1MbuXvQLpvs4D9F64yf0JjJX/1IoryqJ4ovDBbfx9lyTEHRUa33iIXpU6Ln i94/vERSw1VbitD/vSkFz6rECo/PGWyKgkchtqZKbu36lEdOKlsa3PL+ACO69uzR9Wyd VTX5m3OgbCVuM1+qi0366nYqZga/+GYvuF+4QHOWp/u7c+f54ZZn4ojGbPLZ9Fo8GBN6 e2Aw== X-Gm-Message-State: ALoCoQmwrsmNJaMagLiM2NtExmaSoUruJxhMhD8jD0Qml9FfZuxWzF9hFsl4ZRlXuYYoSeyjFbRH X-Received: by 10.152.228.168 with SMTP id sj8mr4224691lac.59.1389134614003; Tue, 07 Jan 2014 14:43:34 -0800 (PST) Received: from dalli.local (c-5eeaaa28-74736162.cust.telenor.se. [94.234.170.40]) by mx.google.com with ESMTPSA id mv9sm45811755lbc.0.2014.01.07.14.43.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 14:43:32 -0800 (PST) Message-ID: <52CC830A.2050602@joh.to> Date: Tue, 07 Jan 2014 23:43:22 +0100 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Backends stuck in LISTEN Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 Hi people, Today we had a problem where around 30-40 backends were stuck in LISTEN for a long time. I snatched a core dump before we had to kill the server, and the backtrace looks like this: #0 0x00007f26dd17d5b7 in monstartup () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007f26d79e5c70 in ?? () #2 0x00007f26d79e5c80 in ?? () #3 0x00007f254d772b60 in ?? () #4 0x00000000006359c5 in LWLockAcquire (lockid=87, mode=LW_SHARED) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/storage/lmgr/lwlock.c:464 #5 0x000000000049fabb in SimpleLruWaitIO (slotno=6, ctl=) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/slru.c:306 #6 0x000000000049fe00 in SlruSelectLRUPage (ctl=, pageno=34331) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/slru.c:994 #7 0x00000000004a02ab in SimpleLruReadPage (ctl=0xb046a0, pageno=34331, write_ok=1 '\001', xid=1124964531) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/slru.c:366 #8 0x0000000000487fb3 in TransactionIdGetStatus (xid=1124964531, lsn=0x7fffe8503750) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/clog.c:400 #9 0x0000000000488460 in TransactionLogFetch (transactionId=1124964531) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/transam.c:83 #10 TransactionLogFetch (transactionId=1124964531) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/transam.c:56 #11 0x00000000004885b1 in TransactionIdDidCommit (transactionId=) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/transam.c:133 #12 0x00000000005159f4 in asyncQueueProcessPageEntries (page_buffer=0x7fffe85038b0 "$", stop=..., current=) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/commands/async.c:1998 #13 asyncQueueReadAllNotifications () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/commands/async.c:1923 #14 0x0000000000516926 in Exec_ListenPreCommit () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/commands/async.c:977 #15 PreCommit_Notify () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/commands/async.c:801 #16 0x000000000048c863 in CommitTransaction () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/xact.c:1827 #17 0x000000000048ce8d in CommitTransactionCommand () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/access/transam/xact.c:2563 #18 0x000000000063fafb in finish_xact_command () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/tcop/postgres.c:2452 #19 finish_xact_command () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/tcop/postgres.c:2441 #20 0x0000000000641e92 in PostgresMain (argc=, argv=, dbname=0xc5dee0 "gluepay", username=) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/tcop/postgres.c:4153 #21 0x0000000000603f83 in BackendRun (port=0xca6f50) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/postmaster/postmaster.c:3612 #22 BackendStartup (port=0xca6f50) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/postmaster/postmaster.c:3302 #23 ServerLoop () at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/postmaster/postmaster.c:1466 #24 0x00000000006049f1 in PostmasterMain (argc=, argv=) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/postmaster/postmaster.c:1127 #25 0x000000000045a600 in main (argc=5, argv=0xc5d180) at /build/buildd/postgresql-9.1-9.1.9/build/../src/backend/main/main.c:199 This is on 64-bit Linux, version 9.1.9 from the apt repositories. Any idea what could cause this? It took around 30 seconds for the backends to respond to pg_terminate_backend(). Regards, Marko Tiikkaja -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs