mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: New articles on ewontfix
Date: Sun, 7 Jul 2013 14:20:15 +0200	[thread overview]
Message-ID: <20130707122012.GC15323@port70.net> (raw)
In-Reply-To: <20130705155411.GR29800@brightrain.aerifal.cx>

* Rich Felker <dalias@aerifal.cx> [2013-07-05 11:54:11 -0400]:
> I'm still trying to determine how to work out a formal definition of
> library-safe. My thought is that it would be based on the property of
> being able to combine two programs with well-defined behavior, both
> using the library code, into a single program where each original
> program runs starting with its own initial thread, such that the
> combined program does not invoke UB and the two sub-programs match
> their behavior before being combined. However there are lots of ugly
> issues that have to be considered.
> 
> With that done, the interesting part would be covering common failures
> of libraries to be library-safe.

i'm not sure if you can derive all the interesting failures from a
single definition

this definition covers multi-thread issues

i think library safety should also cover single thread issues
(abort in lib, unbounded resource usage, trusting input sources
unjustifiably, strong assumtions about the environment..)

and source code level issues
(abi, visibility, namespace pollution, clean headers..)


  reply	other threads:[~2013-07-07 12:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04 16:48 Rich Felker
2013-07-04 17:50 ` Jeremy Huntwork
2013-07-04 17:58   ` Rich Felker
2013-07-05 15:31     ` Jeremy Huntwork
2013-07-05 15:45       ` Ivan Kanakarakis
2013-07-05 15:54         ` Rich Felker
2013-07-07 12:20           ` Szabolcs Nagy [this message]
2013-07-07 15:27             ` Rich Felker
2013-07-07 15:52               ` Daniel Cegiełka
2013-07-07 17:12               ` Szabolcs Nagy
2013-07-07 17:53                 ` Rich Felker
2013-07-08 11:39 ` LM

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=20130707122012.GC15323@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).