mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: musl & proprietary programs
Date: Sat, 26 Dec 2015 22:54:59 -0500	[thread overview]
Message-ID: <20151227035458.GF238@brightrain.aerifal.cx> (raw)
In-Reply-To: <20151224104009.GT23362@port70.net>

On Thu, Dec 24, 2015 at 11:40:10AM +0100, Szabolcs Nagy wrote:
> * Rich Felker <dalias@libc.org> [2015-12-24 00:16:25 -0500]:
> > On Thu, Dec 24, 2015 at 12:04:42PM +0700, ???????? wrote:
> > > There is also problem that musl wishes not to be fully glibc compat.
> > > Certain libc structs and public structs coming from glibc headers that
> > > are not required to be ABI same will be different on musl for
> > > performance or optimization reasons, and programs relying on them
> > > usually will not be happy. Simple programs probably still will work.
> > 
> > There are no differences for performance or optimization reasons,
> > unless you want to count [u]int_fastNN_t which are basically never
> > used in public APIs anyway. Otherwise the only differences are that
> > musl lacks the 32-bit-off_t structures on 32-bit archs (i.e. it can't
> > match the _FILE_OFFSET_BITS=32 ABI on glibc, but it's not safe to use
> > this ABI anymore anyway) and that musl does not copy the
> > non-conforming, unsafe-because-it's-too-small glibc regoff_t on 64-bit
> > archs (this only affects regexec).
> 
> thread cancellation cleanup abi is different too
> (because glibc is broken for async-cancel)
> but nobody uses that so it should not be a problem

Indeed, I forgot about that because it's not a types difference. I'd
thought about possibly trying to support that too, but it looks hard
and not worth the effort (or other costs).

> the nvidia dso may segfault for many reasons, iirc
> the last time we identified that it uses stdio in
> a broken way, but there are numerous problems so
> a crash should not be a surprise.

Indeed, I think we found that it's assigning to stdout, which aside
from being utter nonsense (stdout is not even specified to be an
lvalue), happens to crash since musl's stdout is const and thus
usually in read-only/relro memory.

Rich


  reply	other threads:[~2015-12-27  3:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 11:23 Alba Pompeo
2015-12-22 11:27 ` Timo Teras
2015-12-22 15:25   ` Рысь
2015-12-22 15:37     ` Alba Pompeo
2015-12-23 14:48       ` Szabolcs Nagy
2015-12-23 16:01         ` u-uy74
2015-12-23 17:22         ` Рысь
2015-12-23 17:43           ` Rich Felker
2015-12-23 18:51             ` Рысь
2015-12-23 20:00               ` Alba Pompeo
2015-12-24  5:04                 ` Рысь
2015-12-24  5:16                   ` Rich Felker
2015-12-24 10:40                     ` Szabolcs Nagy
2015-12-27  3:54                       ` Rich Felker [this message]
2015-12-24  7:00                 ` Isaac Dunham
2015-12-24 19:49                   ` Isaac Dunham
2015-12-24 21:29                     ` Alba Pompeo
2015-12-24  5:12               ` Rich Felker
2015-12-24  7:20                 ` Рысь

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=20151227035458.GF238@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).