Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E4C19B5DBCE for ; Fri, 17 Jun 2011 11:28:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 70398-06 for ; Fri, 17 Jun 2011 14:28:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 857C6B5DBD9 for ; Fri, 17 Jun 2011 11:28:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p5HES6Oc016156; Fri, 17 Jun 2011 10:28:06 -0400 (EDT) To: "Ben" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6065: FATAL: lock 0 not held In-reply-to: <201106170756.p5H7upxU053734@wwwmaster.postgresql.org> References: <201106170756.p5H7upxU053734@wwwmaster.postgresql.org> Comments: In-reply-to "Ben" message dated "Fri, 17 Jun 2011 07:56:51 +0000" Date: Fri, 17 Jun 2011 10:28:06 -0400 Message-ID: <16155.1308320886@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/148 X-Sequence-Number: 30527 "Ben" writes: > Operating system: üLinux version 2.6.21-uc0 on ARM processor > (NXP-LPC2478) > Description: FATAL: lock 0 not held > Details: > while initialising with initdb, after creating and filling new WAL file. > We see LWLockAcquire(11) followed by LWLockRelease(0) and then a FATAL: > lock 0 is not held. Compiler bug? It's pretty hard to credit that you've found some new code path through bootstrap where the wrong lock number gets frobbed. We do have at least one buildfarm member running on ARM, so that architecture does get tested regularly, which eliminates various other theories about PG portability problems. regards, tom lane