Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exvk9-0007bn-Nv for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Mar 2018 14:26:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1exvk7-0007tS-SS for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Mar 2018 14:26:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exvk7-0007tJ-Ly for pgsql-bugs@lists.postgresql.org; Mon, 19 Mar 2018 14:26:31 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1exvjt-0007ai-Km for pgsql-bugs@lists.postgresql.org; Mon, 19 Mar 2018 14:26:30 +0000 Received: by mail-wm0-x235.google.com with SMTP id t6so16165999wmt.5 for ; Mon, 19 Mar 2018 07:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fZGs1IyPeoe6SbOhBU3X/hBz9IvMEtOROirXeV2I1mg=; b=dcwN8sBVEOdR7cQbGjuS4U1MZ3tHrQYE9WTqIayDpvhqdX0UhPD/Hviw089gw+0azc q0NAnjLt67sPYTpotxcC4ZMrhXq/BJFZ4ebLOJSAfAPBuRGrxIkGaHz9zzLcIQaPWZ8N sMw+zBn4IqHCjhvP0UKQo79FexqxlF7EXloyhRjqKvEyyaXc3132zNTRfosXAUAdCLe3 zKLCId32dHKqhy4rsrqM8+yr1BwOOpGjgk2ogK/mfnTvLwnF0SuZ0EwAdbFiQdEprvCm mHGl8DKv9Y7WfDnKV8xAqZH7kq2rWx0+1YpSuSi1Ggji1WL50zJocIF3nG1wN6NJa6cL CcOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fZGs1IyPeoe6SbOhBU3X/hBz9IvMEtOROirXeV2I1mg=; b=DTivHJfSBXRFBWwkFl0HzpoCdtQ1BdZHsHRFwh5a9rW0DYdxfWIuzbZBzQhq8hafeJ Nk+8+TdU5RODNR9KiMhPQJRBQpGNC2lqn4Qhk6/QW5rCPANqTpWf//UQNzFbLU3om5/l 0J6bnDMHJ7Ar11CuIE3EFJIL+RaJfEIfie+5D8DUgWZQyB/CRqGbxSPT3whgyQI+CW0G uqw0wEqSeUvhYDgrIREibk9YOkwrX7rqRTjT2o9feC4sMdg0lCYmFaaYXKv3eotlhGFw b20K/DwBqDp232sJMyVLfodWjliPNtvCDfkAPeEQWqx7RsBxF23mIjPzWgxSPpZJdcF+ zgBg== X-Gm-Message-State: AElRT7FXFq9IeiG9HMXLDAxsaS17XhBN1HxZAMkVnGXF+1iTFeFZLH2b otLVUBzj9oIkKou8KOGhwbT4SA== X-Google-Smtp-Source: AG47ELs2pIWU4EDnQAi3H0sC8JmGxkKYodFL4LP1pcbaNdBIBJ/BOib+GnJ2HLsi9KFo0Qpi/EW22Q== X-Received: by 10.28.206.65 with SMTP id e62mr8778679wmg.26.1521469576351; Mon, 19 Mar 2018 07:26:16 -0700 (PDT) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id n29sm672280wmi.32.2018.03.19.07.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 07:26:15 -0700 (PDT) Subject: Re: BUG #15121: Multiple UBSAN errors To: =?UTF-8?Q?Martin_Li=c5=a1ka?= Cc: pgsql-bugs@lists.postgresql.org, PG Bug reporting form References: <152140318583.11955.7731957058248462341@wrigleys.postgresql.org> <7df78014-c931-6c75-6f92-ec48f390b2b9@2ndquadrant.com> From: Tomas Vondra Message-ID: <46a345c1-1f8d-fd0d-c334-d8ca577719a9@2ndquadrant.com> Date: Mon, 19 Mar 2018 15:26:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/19/2018 09:59 AM, Martin Liška wrote: > On 19 March 2018 at 01:34, Tomas Vondra wrote: > > ... >> >> Again, the line numbers don't really match the code I have, but I guess >> it's the same issue as for pg_comp_crc32c_sse42. This is apparently >> related to array serialization, and I guess we have a compact structure >> (intentionally, to make it smaller), and we accept the unaligned access. > > Note that building postgresql with -03, I see some array tests failing. > I'm unable to reproduce that. I do get a bunch of compile-time warnings about possibly uninitialized variables (which seem bogus after a quick inspection), but no failures. Which gcc version are you using? Mine is 6.4.1. Do the failures happen every time or rarely? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services