mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Possible bug: MINSIGSTKSZ values
Date: Sun, 16 Nov 2014 22:20:42 -0500	[thread overview]
Message-ID: <20141117032042.GB22465@brightrain.aerifal.cx> (raw)
In-Reply-To: <54694CD4.5070501@i-soft.com.cn>

On Mon, Nov 17, 2014 at 09:18:12AM +0800, 黄建忠 wrote:
> Hi, Rich,
> 
> If that means some opensource projects need to be modified to fit
> Musl,  would you consider to add a "__MUSL__" macro?
> 
> I think such a special macro will make upstream patch easy to be accepted.

I've never seen code that explicitly makes such a small thread stack;
it's not something you'd do without a specific need to, and probably
something you'd only do in an application where you control the
deployment and what libc etc. is in use rather than as source
distributed for use on different kinds of systems. Most code uses the
default thread-stack size or an explicit size based on its own stack
usage plus some margin of safety.

Also, as mentioned in my follow-up, the minimum thread stack size
really needs to include enough room for a signal frame since
cancellation is implemented with a signal handler and thus needs a
signal frame. So we probably need to bump up the minimum thread size
on some archs anyway. :(

Rich


      parent reply	other threads:[~2014-11-17  3:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-15  3:18 Rich Felker
2014-11-15 20:56 ` Rich Felker
2014-11-17  1:18 ` 黄建忠
2014-11-17  1:26   ` Ivan Kanakarakis
2014-11-17  1:49     ` 黄建忠
2014-11-17  3:20   ` Rich Felker [this message]

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=20141117032042.GB22465@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).