From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11024 Path: news.gmane.org!.POSTED!not-for-mail From: lists@chuckremes.com Newsgroups: gmane.linux.lib.musl.general Subject: behavior errata Date: Sat, 11 Feb 2017 17:28:37 -0600 Message-ID: <3DD147FE-6B27-41BB-8C09-4F569D62F74B@chuckremes.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486856187 19314 195.159.176.226 (11 Feb 2017 23:36:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2017 23:36:27 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11039-gllmg-musl=m.gmane.org@lists.openwall.com Sun Feb 12 00:36:18 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cchDF-0004U9-Mn for gllmg-musl@m.gmane.org; Sun, 12 Feb 2017 00:36:17 +0100 Original-Received: (qmail 26418 invoked by uid 550); 11 Feb 2017 23:36:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 22323 invoked from network); 11 Feb 2017 23:28:50 -0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=chuckremes.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=tggXMn6K28kNKHccZNqDaUHmKa4=; b=DgtKES ecP4zsCamhUeJa70udQejgwdcJrF3nuWi9MHZ6w9cexi00BdvH14kvM6qQ/0BTsf lHettZttPPB2DFRMcDZoJyHFAYGR+WJYl/Moqv0kdINaYDxGL5W8Rx1+YKC66uwn MoLCNBSxXtnIveruU4e92N+i8UMV2us7l+tXo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=tggXMn6K28kNKH ccZNqDaUHmKa4=; b=fK1sgmTnHHxVN3IdJrreEYiqNjz8Odigy04J8PzaSe//j+ F/cF8KIX6X2RpuO56XhrEznnmFtT2yuFUVT+GDHFzMI3uIJCVcxcMaUWh4bcTvCE geb+UggwBhT9PcLJUQLWU4vYUoR5Z0dMj6mBdYbk929jF50s9MRvaSipmEfdA= X-ME-Sender: X-Sasl-enc: Yzcxv//iPlHpLky73j9FEu9Bv+8Sk5fwynh2JOUz1Wah 1486855718 X-Mailer: Apple Mail (2.3124) Xref: news.gmane.org gmane.linux.lib.musl.general:11024 Archived-At: While debugging an issue where a child process=E2=80=99s errno was = getting clobbered, discovered that musl was doing the clobbering in a = call to strftime (that did NOT fail). I understand the contract of libc calls is that errno can be clobbered = at any time. However, it=E2=80=99s a behavior difference between musl = and other libc=E2=80=99s that I have tested against.=20 Here=E2=80=99s the repro code.=20 https://gist.github.com/chuckremes/698b0ee5d1279374cb1ef3add82a6f18 I had a nice chat with some folks on IRC about this. They indicated that = it might get =E2=80=9Cfixed=E2=80=9D just to be nice but there is no = requirement to do so. Someone even made the (evil but funny) suggestion = that musl should clobber errno between every non-failing call just to = see how much code in the wild would explode. Please don=E2=80=99t. :) Thanks for your attention.=