Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2286B1927160 for ; Tue, 26 Jun 2012 14:02:53 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjZAB-00086Y-BA for pgsql-bugs@postgresql.org; Tue, 26 Jun 2012 17:02:52 +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 q5QH2Zp8008741; Tue, 26 Jun 2012 13:02:35 -0400 (EDT) From: Tom Lane To: Merlin Moncure cc: Peter Eisentraut , pgsql-bugs Subject: Re: server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0" In-reply-to: References: <21870.1340636260@sss.pgh.pa.us> Comments: In-reply-to Merlin Moncure message dated "Tue, 26 Jun 2012 11:25:11 -0500" Date: Tue, 26 Jun 2012 13:02:35 -0400 Message-ID: <8740.1340730155@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/217 X-Sequence-Number: 33444 Merlin Moncure writes: > I suspect (but haven't had time to prove and may not for several days > -- unfortunately going on vacation momentarily) that this might be > caused by pl/sh. Hm. The reported symptoms might be explainable if something had caused multiple threads to become active within the backend process --- then it would be plausible for it to try to do proc_exit cleanup twice. Which would explain the first two errors, though I'm not sure how that leads to failing to disown the process latch, as the third error suggests must have happened. But I don't know enough about pl/sh to know if it could cause threading activation. > In particular, we have a routine that was > inadvertently applied to the database in with windows cr/lf instead of > the normal linux newline. This doesn't seem real promising as an explanation ... regards, tom lane