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 1m3Y25-0007De-Vh for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jul 2021 06:06:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m3Y23-0004Bk-UT for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jul 2021 06:06:07 +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 1m3Y23-0004Bc-3E for pgsql-hackers@lists.postgresql.org; Wed, 14 Jul 2021 06:06:07 +0000 Received: from forward3-smtp.messagingengine.com ([66.111.4.237]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3Y1x-0006cd-Ps for pgsql-hackers@lists.postgresql.org; Wed, 14 Jul 2021 06:06:06 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id 7A01719410F3; Wed, 14 Jul 2021 02:05:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 14 Jul 2021 02:05:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=MiVEYOPMFnuifeRuPkSsMB8cMDIzASn+GF3ZMTZV8 6w=; b=Idgz189V+w3DF205Cp20AbsHQjNiUzhq/5tdEgEkClOwVRFo82mrpqQJM gHZ1KoiBpsLO+oTHhhQ1ma4S4y2D4ZJtzODP0IuS1S/4zp4vuXCTO2+67Ipht5at MNHcLZE/LP1YJ049PO2LmGn4vpvJ9IwrOXTP370K1lrATQ3/Szho9XC+RurdJ4YD xX5NscSqC4oq5SU6VG6XixTcST0rLToNPaUSHcNVCEol3/Y7KBVFIBqspC6rQbdN CjiMttgaziyB67kJc+EwEbshmGoM3H9C2tFVUrkeM6IvtzxYPU8ieFnvaQzjAjGF CMYk8/DLQ7HX+OFpwcmgZpRCccasA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejgdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeelveehheeuieduieetiedt keeuteelfeetjeffieffudegvdffvdfftdeivdeukeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Jul 2021 02:05:56 -0400 (EDT) Subject: Re: printf %s with NULL pointer (was Re: BUG #17098: Assert failed on composing an error message when adding a type to an extension being dropped) To: Tom Lane , Ranier Vilela Cc: Laurenz Albe , PostgreSQL Hackers References: <17098-b960f3616c861f83@postgresql.org> <2468663.1626017338@sss.pgh.pa.us> <2984422.1626110456@sss.pgh.pa.us> <3227956.1626186568@sss.pgh.pa.us> <3280448.1626200778@sss.pgh.pa.us> From: Peter Eisentraut Message-ID: <06a9ff0f-d1e9-0340-2f3b-180cefe41c7a@enterprisedb.com> Date: Wed, 14 Jul 2021 08:05:54 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <3280448.1626200778@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.07.21 20:26, Tom Lane wrote: > Did you see my followup? The vast majority of live systems do not do > that, so we are accomplishing nothing of value by insisting it's a > crash-worthy bug. But there are no guarantees that that will be maintained in the future. In the past, it has often come back to bite us when we relied on implementation-dependent behavior in the C library or the compiler, because no optimization might invalidate old assumptions. In this particular case, I would for example be quite curious how those alternative minimal C libraries such as musl-libc handle this.