mailing list of musl libc
 help / color / mirror / code / Atom feed
From: 黄建忠 <jianzhong.huang@i-soft.com.cn>
To: musl@lists.openwall.com, Rich Felker <dalias@libc.org>
Subject: Re: Possible bug: MINSIGSTKSZ values
Date: Mon, 17 Nov 2014 09:18:12 +0800	[thread overview]
Message-ID: <54694CD4.5070501@i-soft.com.cn> (raw)
In-Reply-To: <20141115031843.GA3679@brightrain.aerifal.cx>

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.


在 11/15/14 11:18, Rich Felker 写道:
> Currently musl has MINSIGSTKSZ hard-coded as 2048. This is
> insufficient to store the ucontext_t for many archs. I'd like to keep
> it small on archs where that's possible, but the current value might
> not even work for modern x86 with large AVX state, etc. that needs to
> be saved. I don't have a proposed fix yet, but I think we should
> survey the values that are needed for different archs and either make
> it vary per-arch, or if they're all comparable, just increase the
> value to something that works for all archs.
>
> Note that the min pthread stack size is also well below the size of
> ucontext_t for many archs, but I don't think this is a problem. If you
> make a thread with a stack smaller than MINSIGSTKSZ+epsilon, you just
> need to start it with all signals blocked and leave them blocked (or
> avoid using signal handlers at all).
>
> Rich
>


-- 
Huang JianZhong





  parent reply	other threads:[~2014-11-17  1:18 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 ` 黄建忠 [this message]
2014-11-17  1:26   ` Ivan Kanakarakis
2014-11-17  1:49     ` 黄建忠
2014-11-17  3:20   ` 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=54694CD4.5070501@i-soft.com.cn \
    --to=jianzhong.huang@i-soft.com.cn \
    --cc=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).