Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsOv1-0000qr-5o for pgsql-bugs@arkaria.postgresql.org; Wed, 13 May 2015 05:09:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsOv0-0008Co-9V for pgsql-bugs@arkaria.postgresql.org; Wed, 13 May 2015 05:09:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YsOuz-0008Cd-Bg for pgsql-bugs@postgresql.org; Wed, 13 May 2015 05:09:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YsOuw-0004Up-CC for pgsql-bugs@postgresql.org; Wed, 13 May 2015 05:09:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t4D592nc009928; Wed, 13 May 2015 01:09:02 -0400 From: Tom Lane To: Artem Ignatyev cc: pgsql-bugs@postgresql.org, Heikki Linnakangas Subject: Re: 9.4.1 segfault while creating hash index on temporary table In-reply-to: References: Comments: In-reply-to Artem Ignatyev message dated "Tue, 12 May 2015 17:32:25 -0700" Date: Wed, 13 May 2015 01:09:02 -0400 Message-ID: <9927.1431493742@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Artem Ignatyev writes: > I am seeing this bug on my CentOS 6.6 PostgreSQL 9.4.1 db server > (installed from rpms of yum.postgresql.org), as well as on postgresql > 9.4.1 from Ubuntu 15.04 repository on my personal laptop. It's crashing because it's trying to acquire the content_lock on a local buffer, which of course doesn't have one. This appears to have been broken in 8fc23a9e. Oddly, HEAD does not have the problem because it looks like if ((mode == RBM_ZERO_AND_LOCK || mode == RBM_ZERO_AND_CLEANUP_LOCK) && !isLocalBuf) { LWLockAcquire(bufHdr->content_lock, LW_EXCLUSIVE); } but the back branches are missing the isLocalBuf bit. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs