Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsQvi-0006xF-68 for pgsql-bugs@arkaria.postgresql.org; Wed, 13 May 2015 07:18:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsQvh-0000C0-NT for pgsql-bugs@arkaria.postgresql.org; Wed, 13 May 2015 07:18:09 +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 1YsQvh-0000Bu-36 for pgsql-bugs@postgresql.org; Wed, 13 May 2015 07:18:09 +0000 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YsQve-000736-Hy for pgsql-bugs@postgresql.org; Wed, 13 May 2015 07:18:08 +0000 Received: by widdi4 with SMTP id di4so43715223wid.0 for ; Wed, 13 May 2015 00:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=JRgIWLBKlIzQBSbIo1Juo/0iTtBtKNURwitMheobuaY=; b=ocHFTaZ2aBOVyAYUsIRp47qPM3NjL/l0ae9/UlpFYmUDZNE2jfJ+y2nL0BkFeLXKg9 eQDNoLuQhjxacQIKydMVGvxvXGbhUCmyglP/lmvrJoiDgOY3mmZusyvZ9Qz/mbPMlwfx TslOMXoY1usr1EONKr1u4m6Cd4Ol8Khbt1BlLii3PdB3sTa7DRFz0I+PZ09y9GBcpnd3 7iAy1enW7O/PkduGbP8m8CIhU5KXnE6dq/I1wZQfEq5Q6sGThFKTnRq7afIFkslroRSU qVwupFi2Fwfh5VkaVbPsPSmzeEKnUMwXJD1cKxm2gbulrjajuk2iMujliV0luzS5qHGz UiOQ== X-Received: by 10.180.84.97 with SMTP id x1mr11634585wiy.1.1431501485810; Wed, 13 May 2015 00:18:05 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id wv3sm1289067wjc.0.2015.05.13.00.18.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 00:18:04 -0700 (PDT) Message-ID: <5552FAA9.3050303@iki.fi> Date: Wed, 13 May 2015 10:18:01 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Tom Lane , Artem Ignatyev CC: pgsql-bugs@postgresql.org Subject: Re: 9.4.1 segfault while creating hash index on temporary table References: <9927.1431493742@sss.pgh.pa.us> In-Reply-To: <9927.1431493742@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; 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 On 05/13/2015 08:09 AM, Tom Lane wrote: > 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. Odd indeed. I must've added that at the last minute to the master-version, but forgot the other branches. Fixed now, thanks for the report and analysis. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs