Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2F69A2B2868 for ; Mon, 25 Jun 2012 11:57:58 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjAji-0003Cs-DG for pgsql-bugs@postgresql.org; Mon, 25 Jun 2012 14:57:57 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q5PEveP4021871; Mon, 25 Jun 2012 10:57:40 -0400 (EDT) From: Tom Lane To: Merlin Moncure cc: pgsql-bugs Subject: Re: server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0" In-reply-to: References: Comments: In-reply-to Merlin Moncure message dated "Mon, 25 Jun 2012 09:41:12 -0500" Date: Mon, 25 Jun 2012 10:57:40 -0400 Message-ID: <21870.1340636260@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/206 X-Sequence-Number: 33433 Merlin Moncure writes: > 2012-06-25 09:08:08 CDT [postgres@ysanalysis_hes]: LOG: could not > send data to client: Broken pipe > 2012-06-25 09:08:10 CDT [postgres@ysanalysis_hes]: LOG: unexpected > EOF on client connection > 2012-06-25 09:08:10 CDT [postgres@ysanalysis_hes]: LOG: process 22821 > releasing ProcSignal slot 32, but it contains 0 > 2012-06-25 09:08:10 CDT [postgres@ysanalysis_hes]: LOG: failed to > find proc 0x7f48617e2ab0 in ProcArray > [and a bit later] > 2012-06-25 09:08:24 CDT [postgres@ysanalysis_hes]: FATAL: latch already owned I think what we're looking at here is a screw-up in the process shutdown sequence. Perhaps caused by bad recovery from an attempt to send an error message to the already-disconnected client; but that's just speculation, and it's hard to see how to get more info without a core dump. I wonder whether we shouldn't promote some or all of these three error cases to PANIC, as they certainly suggest shared-memory corruption. And if it did panic, we could hope to get a core dump for debugging purposes. regards, tom lane