mailing list of musl libc
 help / color / mirror / code / Atom feed
From: lists@chuckremes.com
To: musl@lists.openwall.com
Subject: behavior errata
Date: Sat, 11 Feb 2017 17:28:37 -0600	[thread overview]
Message-ID: <3DD147FE-6B27-41BB-8C09-4F569D62F74B@chuckremes.com> (raw)

While debugging an issue where a child process’s 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’s a behavior difference between musl and other libc’s that I have tested against. 

Here’s the repro code. 

https://gist.github.com/chuckremes/698b0ee5d1279374cb1ef3add82a6f18

I had a nice chat with some folks on IRC about this. They indicated that it might get “fixed” 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’t. :)

Thanks for your attention.

             reply	other threads:[~2017-02-11 23:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-11 23:28 lists [this message]
2017-02-12  0:02 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DD147FE-6B27-41BB-8C09-4F569D62F74B@chuckremes.com \
    --to=lists@chuckremes.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).