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 1lxm4F-0005rw-Np for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jun 2021 07:52:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lxm4D-0007y8-Ck for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jun 2021 07:52:29 +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 1lxm4D-0007y0-56 for pgsql-hackers@lists.postgresql.org; Mon, 28 Jun 2021 07:52:29 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxm46-0001xd-LP for pgsql-hackers@postgresql.org; Mon, 28 Jun 2021 07:52:27 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 91D233200319; Mon, 28 Jun 2021 03:52:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 28 Jun 2021 03:52:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=Y+rv+MjeJA1RywtdgMOBdiG6IUP h9a8IZnk7TD9ZqIw=; b=jyA75qj+qD2ZsKSmZRrq7iP7pdEec+z9kOGGaxuZPJj /klIpLUav8lOQc/GwrnvNcQ4BAemXUesfqbHUTVl8Nc5eUpFn5HZ6Y9Z9smNFiOA +H37kqIWbStMZWWjzf152///0YmK/JLak+oaxAfeg0aDYVH+0Q584J8jk/SMIkjY QgBd8mTOUpbCwvdNmA0uvDmHN36qIB5VaiLyj6Vbf4dmCZd3wVUdiRSR5GBg703P XNT+RlqjA0udbRWMHxn9oIpceLaaEocYZkTKtgCcffucSoAIxmCC62lT02IHFYey VKGumqxztmCiNvu+XUvYX98xbi/er1+D9iJIbqR9WLw== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Y+rv+M jeJA1RywtdgMOBdiG6IUPh9a8IZnk7TD9ZqIw=; b=bctYuVAY2EI3zQRH/iRUOo zyjj0F30ZcQYJCjDd9MN+uWLhyEDFUk7aYiiSkmwLNASlsykR11EJ+NA9BoLdEHy C0YLY40Y71SZcGi+jehCba3FbVz92dnczow0GJ5fAS+kxRJt6cin8lpVmDFUhm/Y A3d3dWBGlc6gykkHTnf2lefNarBDSFOMohFPm3Yx18CRRdl0BFBW0nLCw82rNIa7 LlARwJusf7w+vvD+d8bAswx5xHtZTeMjVlby3b1bAjS6DwKx98cRAD/QLeiz7XTL y3UZPFRNH8h/nuF3yCgiwp/GxxZAEg96WkD2+tQpPQNQM31DdF95oYNn3TxreXIg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehfedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Jun 2021 03:52:17 -0400 (EDT) Date: Mon, 28 Jun 2021 16:52:12 +0900 From: Michael Paquier To: Tom Lane Cc: Jacob Champion , "pgsql-hackers@postgresql.org" , Daniel Gustafsson Subject: Re: Preventing abort() and exit() calls in libpq Message-ID: References: <3128896.1624742969@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j1MsFdus3/zhqEQ7" Content-Disposition: inline In-Reply-To: <3128896.1624742969@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --j1MsFdus3/zhqEQ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jun 26, 2021 at 05:29:29PM -0400, Tom Lane wrote: > I'll stick this into the CF list to see if the cfbot agrees that > it finds the abort() problems... The CF Bot is finding those problems. > +# Check for functions that libpq must not call. > +# (If nm doesn't exist or doesn't work on shlibs, this test will silently > +# do nothing, which is fine.) > +.PHONY: check-libpq-refs > +check-libpq-refs: $(shlib) > + @! nm -A -g -u $< 2>/dev/null | grep -e abort -e exit "abort" and "exit" could be generic terms present in some other libraries. Could be be better to match with "U abort" and "U exit" instead? MinGW has a nm command, and it has a compatible option set, so I think that it should work. -- Michael --j1MsFdus3/zhqEQ7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDZf6wACgkQnvQgOdby QH2wzw/+MJDqaNck4qAjE0QGRxNNyT61p2mW2cbOwIs/JPobslEbgL1tjpIb8V9U djxNRv1bJLRGMhMzsm5tpag4hjjkeWGXZZIBX+1ovHU4riIM+5O7m6LWIIWCN8vP 6TMVhObCalxXaAsZzJvHdaIhv0t/e15Wj7O9xFq1SDeXvGhYA+9gTVsYPdiSoKlc 7BnvsRx7meO65s12pPJiRPatkWMivG+aAm97TPHU0ioETVafoYgah7I4Em0OdGNe lgXz2y91JiZIvG+bdmKD6IV6ruvgRUWHpQ4z1PQF3C9BIVeh5psJuw0GOKp4fQC7 qfDzBShEQ1l0cQ1XZLyy29b5j/z2dToca04bWuLBrg/paShVw65oiwbT5McX8tZW XpMLUuKW1EWqLD2Jke85C4ZrRR1T8vQk8Da+3adn/2AGIL8TAs+V8R0pjbvchVSw +Dcea18zbbQEG5mAl7gLHn+FPaqRIqq/3svgaXgUEK/prsU/KSz6ZqYbyZy/dRdI q9vHZUMRHheSmnKBLLoUYg6UgVj1jG5U8ZQ8MkUT5PkKzX54agOlC9EUInpYXGqj kOxs9LKGukO8flcjFX4ooAq1Ge48ufuZeHMV2bdrhlQh68pjJahwXWDpY7jiMJRq N/qFXjP2CBQ2vbzoY/y5czwdIoMH/b85vNjHdeAGR9OZgYeReqw= =4z4H -----END PGP SIGNATURE----- --j1MsFdus3/zhqEQ7--