mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Broken silent glibc-specific assumptions uncovered by musl
Date: Sat, 18 May 2013 11:18:20 +0200	[thread overview]
Message-ID: <20130518091820.GA6309@port70.net> (raw)
In-Reply-To: <20130517173710.GA14240@brightrain.aerifal.cx>

* Rich Felker <dalias@aerifal.cx> [2013-05-17 13:37:10 -0400]:
> Making wrong assumptions about fsync and fdatasync. (I'm not familiar
> with this issue so somebody else will have to fill it in.)

apparently i didn't remember this correctly it's
just an old-linux vs new-linux break:
linux used to implement fsync,O_SYNC with the
same guarantees as fdatasync,O_DSYNC, so many
applications use fsync when they actually mean
fdatasync (faster, no mtime sync)

then some filesystems started to support O_SYNC
properly with a new flag, but it took some time
to trickle down as distros often use older libc
(where the O_DSYNC and O_SYNC definition was the
same so even on new kernel the applications kept
getting the old flag, hence i remembered it as
a libc issue: when i first tried musl on some
storage application it was significantly slower
due to this difference)

other runtime differences:
- "%Ld" instead of "%lld" as mentioned by sh4rm4 on irc
- lfs64 problems: eg printing off_t with "%d"
- serializing abi incompatible structures with (char*) cast
- relying on some locale specific behaviour (LC_NUMERIC)
- /proc fs issue with writev in musl stdio
- relying on LD_* or other env vars for glibc or the loader
- relying on /etc/* files used by glibc or the loader
- dlopen with RTLD_LAZY
- timezone files are not yet supported in musl
- crypt sha2 with long key input
- using constructors with priority gcc extension
- relying on the random generator algorithm to be the same
- musl's err does not print __progname, it might annoy one
- musl have some stubs
- ppc double-double long double


  reply	other threads:[~2013-05-18  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17 17:37 Rich Felker
2013-05-18  9:18 ` Szabolcs Nagy [this message]
2013-05-18  9:31   ` Daniel Cegiełka
2013-05-18 14:15   ` Rich Felker
2013-05-18 22:51     ` Szabolcs Nagy
2013-05-19 22:08       ` Rich Felker
2013-05-20  0:17         ` Szabolcs Nagy
2013-05-20  0:23           ` 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=20130518091820.GA6309@port70.net \
    --to=nsz@port70.net \
    --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).