Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h22ze-0008U7-Kx for pgsql-admin@arkaria.postgresql.org; Fri, 08 Mar 2019 00:04:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h22yd-0007wq-K0 for pgsql-admin@arkaria.postgresql.org; Fri, 08 Mar 2019 00:03:03 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h22yd-0007wi-A1 for pgsql-admin@lists.postgresql.org; Fri, 08 Mar 2019 00:03:03 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h22ya-0005vj-NJ for pgsql-admin@lists.postgresql.org; Fri, 08 Mar 2019 00:03:02 +0000 Received: by mail-oi1-x242.google.com with SMTP id b4so14488752oif.6 for ; Thu, 07 Mar 2019 16:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=OzFjSYjkfcO8zLM1w2TYfmiIdIeqfwLUaByy14hRK4Q=; b=u0ikK111UqoNpnLfWWTOCG0CUQXeQyRwg7fdLgsjto7WC9HXTADnHbEQHqItH5Pg9Q SQsKTuZksrLSj+TxQvaioOimWURjT5G4H3uJjhZIs2OobcD7OWtacRKIpu5zygtNfS9o 8uyx65V8YgLjWIjTuCXZyQpNISp4qLhAif8fR7scTRuTdtBBfjhO3sOu/KuEumDqWhqK Hai7Rsw7toqAClJlQDVaHryDrFR4vpyIoiG1+BefNWAjZzyzWVWI/kz5X8Nfw5FIMMI+ YBCJ5uMrinP+sP15Kqz7z/JJsCO0wMvui7AF3nKiltLMpo+pl9JlBAxPpZ+dnKncRddT mv3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=OzFjSYjkfcO8zLM1w2TYfmiIdIeqfwLUaByy14hRK4Q=; b=XUaVxWGQMzEecPjK8dXymxCbg+Q7+5fS4jns5V3tVzyyBXNpnydn8KJOdEpHCItOWR ulkHPWT2Es8dj1f8xqLurLfYWAxfSYgt/e2u4olBoUXS8xwHGCfjwsUwEc4vQX8yjRoN w1yyxpqccyEZDtxWAniD7aA7CdavCu69xszZapKPOgXFgFaK1g/Y+XtniMqVc5gMfRK0 pslw1UpoF5YcQONHm/mOr/obLbHPImqYuQMKZvk0i6ZX16WHk4VfMLhinqrD34xSxs6E bFu45vg7gsZEYjE/HtcvTR+iwbl+f81qmhQWaUTMnV90oyezeIkFA7duIRAYEhzo3bQv OP1w== X-Gm-Message-State: APjAAAWwtP+WiIZw9CHjhp6o2lILvt5d8ZbTyHWAp7KPDeATX6K30o33 v471rT30nxqFvPe0CIsnaYkmG0ed X-Google-Smtp-Source: APXvYqyHw3lyRyc1Xx/TLH89T1ImV0tCxOJyGCD64khuXoOfaeHPTN3JTLHbkW0MuzAXcCvAw9Hsxg== X-Received: by 2002:aca:5785:: with SMTP id l127mr6412268oib.14.1552003377752; Thu, 07 Mar 2019 16:02:57 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id r124sm2398556oih.7.2019.03.07.16.02.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 16:02:56 -0800 (PST) Subject: Re: Upgrade 10.5->10.6 : db crash BUS ERROR (sig 10), reproducible To: pgsql-admin@lists.postgresql.org References: <20190307140421.GA8362@gate.oper.dinoex.org> <874l8ed31p.fsf@news-spur.riddles.org.uk> <87tvgeb796.fsf@news-spur.riddles.org.uk> From: Ron Message-ID: <48e7067e-d7d6-2a6b-8368-34d529bbd1ed@gmail.com> Date: Thu, 7 Mar 2019 18:02:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <87tvgeb796.fsf@news-spur.riddles.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/7/19 5:30 PM, Andrew Gierth wrote: >>>>>> "Palle" == Palle Girgensohn writes: > >> Clang's __builtin_isinf(x) function, which is supposed to test if x is > >> infinite, does not work reliably on i386 when the x87 registers are used > >> for floating point. It does work if the SSE2 registers are used instead, > >> which clang will do if the -msse2 option is used. The downside of course > >> is that the code will no longer run on CPUs that are old enough to vote. > > Palle> For this reason, we build i386 with gcc starting with version > Palle> 10.6. the CFLAGS+=--msse2 was not realiable for all CPU:s since > Palle> not all i386 CPU:s support SSE2. > > Palle> We had one report of a user who had SSE2 flag still on (int > Palle> /etc/make.conf) when building, and got the same problem. > Palle> [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236025 > Palle> ] > > The user in that bug report was using a Pentium 4, which supports SSE2, > so it's not the lack of SSE2 that caused the problem. But if it's compiled for i386 instead of i686? > Furthermore, the crash was in XLogReadRecord, which does not use floats. > > So I'm going to guess that your bug 236025 is actually an alignment > problem, with the compiler making some assumption about alignment that > we're violating. I'll investigate and see what I can find. -- Angular momentum makes the world go 'round.