Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ft4xm-0002YT-B7 for pgsql-committers@arkaria.postgresql.org; Fri, 24 Aug 2018 05:48:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ft4xi-0008F3-7E for pgsql-committers@arkaria.postgresql.org; Fri, 24 Aug 2018 05:48:46 +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.89) (envelope-from ) id 1ft4xg-0008Eo-By for pgsql-committers@lists.postgresql.org; Fri, 24 Aug 2018 05:48:45 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ft4xP-0005YQ-Hj for pgsql-committers@lists.postgresql.org; Fri, 24 Aug 2018 05:48:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 508202203E; Fri, 24 Aug 2018 01:48:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 24 Aug 2018 01:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=PY9kux+gqrrBeuwOclmR++VMPpGm7Ta+MNonZ3M21nY=; b=nimm0Spt 3ZmsRIzCgdjTrlsexRLf9tmdQAb/LS5uD5+3g09/Y7Ml3/Vq5uYfS1250+MS1+MR LzrEswcD/PFuxs9K8d34kMN317BT4xA1PdBggbPOpCqWn1T70ubZgyKNOCDR1htK aEChezIuT741YzXY0cQsRG0eG8qwRy1g9LwFUb2Fv/mbTRCFygpMVCj/5tzV7Prb OR5ePiosuR9u5katq/PBeNcEVEnjIui0kAt7S93O+H2ETWmryURoezPK1L+uHO9g r47LfIL2I0FQUNquVxchCPEJj4+IvsT12eFFpEACgl4jKRP8XB9T3ZdWUjRQdsIZ I+HtI9go47nVNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=PY9kux+gqrrBeuwOclmR++VMPpGm7 Ta+MNonZ3M21nY=; b=PNRfOqd1Hot983lPQkCBwaJQI3jbOgTdMyOJ8HUHJxUXn gXBKu+okZRvvI0JrpFMhiBI8xoZ1KQH6QXwqFw+zCHSLCSfwBF+pohwaj9dUS2by RGi8A7NIKBc+LXAscVB7nI3svcSiBEMJA14oqP8LGcdRqBi2eIVodUQxFPU7j7qR eVRU9ezyL9wbs7VId594C44orpdAQc2Nk6nQ7x0U+7aS0lLLvCtTZ+0isyVtPX9c d/9zZYzc3+6qHewwaGMmAGwssWY+68yrSuVljuhOs7p1EOzW5sELOtWHjZOHcfHW oR26/Z42g/Eu618CoVTXOsqxR6iJXpoD/iQYBV/IA== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id AC14110273; Fri, 24 Aug 2018 01:48:25 -0400 (EDT) Date: Thu, 23 Aug 2018 22:48:24 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix configure's snprintf test so it exposes HP-UX bug. Message-ID: <20180824054824.o6sc6jhcbfnwdk4o@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-08-17 14:38:41 +0000, Tom Lane wrote: > Fix configure's snprintf test so it exposes HP-UX bug. > > Since commit e1d19c902, buildfarm member gharial has been failing with > symptoms indicating that snprintf sometimes returns -1 for buffer > overrun, even though it passes the added configure check. Some > google research suggests that this happens only in limited cases, > such as when the overrun happens partway through a %d item. Adjust > the configure check to exercise it that way. Since I'm now feeling > more paranoid than I was before, also make the test explicitly verify > that the buffer doesn't get physically overrun. > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/9bed827b18cc4f27fb7cd7c02ad301519eca6d29 > > Modified Files > -------------- > config/c-library.m4 | 11 ++++++++--- > configure | 9 ++++++--- > 2 files changed, 14 insertions(+), 6 deletions(-) Afaictl this does not seem to have done the trick, gharial is still red? Greetings, Andres Freund