Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPmwE-0004hv-Jp for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Mar 2021 13:55:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lPmwD-0004qk-Hf for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Mar 2021 13:55:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPmwD-0004qd-B6 for pgsql-hackers@lists.postgresql.org; Fri, 26 Mar 2021 13:55:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPmwB-0004SD-AG for pgsql-hackers@lists.postgresql.org; Fri, 26 Mar 2021 13:55:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12QDtcZu1579328; Fri, 26 Mar 2021 09:55:38 -0400 From: Tom Lane To: Tomas Vondra cc: John Naylor , Alvaro Herrera , PostgreSQL Hackers Subject: Re: WIP: BRIN multi-range indexes In-reply-to: References: <20210303001725.GA1766@alvherre.pgsql> <23a0a854-8f1a-e965-7121-f76b1b2fc271@enterprisedb.com> <8e319879-32ff-1eb8-d7d3-6a3ac8a51728@enterprisedb.com> <35e866e9-d820-07de-b2be-69d5ac479179@enterprisedb.com> <71dfd257-c5ce-530d-90d3-7c744a28e97b@enterprisedb.com> <54b47e66-bd8a-d44a-2090-fd4b2f49abe6@enterprisedb.com> <357fb6d7-649f-822e-ff43-16b39aed68ee@enterprisedb.com> <1da94012-f512-ffc8-dd5e-888d862b662e@enterprisedb.com> Comments: In-reply-to Tomas Vondra message dated "Fri, 26 Mar 2021 14:38:50 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1579326.1616766938.1@sss.pgh.pa.us> Date: Fri, 26 Mar 2021 09:55:38 -0400 Message-ID: <1579327.1616766938@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > I recall seeing "bus error" on sparc with other patches because of > alignment issues, so I wonder if this is what's happening here. Try compiling with the address sanitizer enabled. Per c.h, * Testing can be done with "-fsanitize=alignment -fsanitize-trap=alignment" * on clang, or "-fsanitize=alignment -fno-sanitize-recover=alignment" on gcc. regards, tom lane