Received: from wolfsden.cz (wolfsden.cz [37.205.8.62]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 5A291781AEB for <~alpine/devel@lists.alpinelinux.org>; Tue, 19 May 2020 10:34:19 +0000 (UTC) Received: by wolfsden.cz (Postfix, from userid 110) id ECF462DFE98; Tue, 19 May 2020 10:34:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_ALL autolearn=no autolearn_force=no version=3.4.2 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 74E5E2DF9AC; Tue, 19 May 2020 10:34:17 +0000 (UTC) Date: Tue, 19 May 2020 12:34:16 +0200 From: Wolf To: Laurent Bercot Cc: ~alpine/devel@lists.alpinelinux.org Subject: Re: Disable assert statements by default? Message-ID: <20200519103416.rbo3mhlhjo5gmmte@wolfsden.cz> References: <1ZU8S8ERRPKR9.35CUIBSS8QET7@8pit.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5d7ca5w2pescya4l" Content-Disposition: inline In-Reply-To: --5d7ca5w2pescya4l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-05-18 19:34:19 +0000, Laurent Bercot wrote: > [..] >=20 > My personal taste would be to tailor the distro towards production, > because that should be the majority of users, and thus, disable > asserts. There is software that even in production relies on asserts to make sure things work like they should and no invariants are violated. Disabling asserts would lead to data corruption and hard-to-debug segfaults (especially since now your error message does not match rest of the internet). Any disabling of asserts IMHO needs to be done on per-package basis after making sure it is something that software can tolerate. I think that maintaining whitelist will easier then blacklist. How upstream compiles (or recommends to compile) their package for production use should also be taken into account. W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --5d7ca5w2pescya4l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE7BIrb0FxyZaks1p7hTP5S2N55TgFAl7DtiQACgkQhTP5S2N5 5Tgwmw//XfNTD/5T6IK8LXw8FfB9D3B+stVbO0x6mlvCgpB5dtE3oVLIhnCfUOn1 24usAcp37CtAuyrlIZ/E+Bi+tkUx9wsKpB8W3WZH3yOVvmLbw+q/yI3qWv4fXvFN tyYBN36GMGl2NULwshYDFboI/JaXiePpxC5MnojFe+JAK24hPirZ7Ef8pg58w87u /IszjS6NIiiYcGexgGabFm61yz/pc6K6OjSpJlPYdpwb6G+THF4rp66tPwM9kubz gStdBxxQrnZS2Pmf1xiHvdT9BPbIMcfeei2R2SpgXtwcqbnGBt9wKm90ThKP5Lfy 8E8gi7hUXhQVKtgGdcYALQ9hX/JCYe95kUSXoR+b64+Dr8bUR9G4fTXwNXsE1rfW lqdd0Wc43yU/VRKNISmqUgHaWLb0Tfz+x2OtesVoqdW9P8p4UXZ+ReoWnG2v6GzE mLLAWQNYHm3UJ8+ur5q2p19H45aF5HDmv93VcxNGZYuFBJtlC3QoaYwJ7VNBaV1z 3CGjSsNZ7XxUPO63mqq6M+0DCswZG9og7xO+Kk90ppiy5tJ0Nk2i9WpysH+/koJi 4/YGn4VjrP23Z6wp5BF0yhm8dVq7cDIs8fhDgyEGrFqIEVqDLpfLCOHwweY00AYo 2aDwTTwMgESJ3Ohrpg+jN/tZPEqZoGlLiAXRq8s0hoh+yzix49Y= =EI+s -----END PGP SIGNATURE----- --5d7ca5w2pescya4l--