Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqmso-0002fw-7t for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 19:24:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqmsn-0000NX-NS for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 19:24:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqmsn-0000Ld-1b for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 19:24:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqmsk-0002oV-BY for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 19:24:51 +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 u3EJOeHV015414; Thu, 14 Apr 2016 15:24:40 -0400 From: Tom Lane To: Andres Freund cc: Christoph Berg , PostgreSQL Bugs Subject: Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc) In-reply-to: <20160414185552.szg5zzwf4q7afz2q@alap3.anarazel.de> References: <20160413211152.GA21711@msg.credativ.de> <20160413175827.dmlbtdf7c3mgmnex@alap3.anarazel.de> <20160414092919.GA11804@msg.df7cb.de> <20160414112518.GE11804@msg.df7cb.de> <423.1460653903@sss.pgh.pa.us> <20160414185552.szg5zzwf4q7afz2q@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 14 Apr 2016 11:55:52 -0700" Date: Thu, 14 Apr 2016 15:24:40 -0400 Message-ID: <15413.1460661880@sss.pgh.pa.us> X-Pg-Spam-Score: -2.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 Andres Freund writes: > On 2016-04-14 13:11:43 -0400, Tom Lane wrote: >> Proposed patch attached, but I'm still wondering why the alignment-picky >> buildfarm members aren't all failing on this. It seems to strongly >> suggest that the regression tests' coverage is lacking here. > Well, then Christoph's build wouldn't have caught the issue either? > Coverage isn't perfect, but it's not bad: > http://coverage.postgresql.org/src/backend/replication/logical/reorderbuffer.c.gcov.html BTW, so far as that goes, the question is whether we ever come through here with two tuples of which the first has a t_len that's not aligned at least on a 4-byte boundary. gcov can't tell you that. I put in an Assert and satisfied myself that the current tests do *not* ever create such a case. I tried modifying the test by adding updates that set a trailing text field to different-length strings, and still couldn't make it happen. So something is rounding off the tuple length, though only to sizeof(int) not to maxalign, which is very curious. 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