mailing list of musl libc
 help / color / mirror / code / Atom feed
From: u-igbb@aetey.se
To: musl@lists.openwall.com
Subject: Re: Proposed approach for malloc to deal with failing brk
Date: Mon, 31 Mar 2014 09:44:21 +0200	[thread overview]
Message-ID: <20140331074421.GA30395@example.net> (raw)
In-Reply-To: <20140331043247.GC26358@brightrain.aerifal.cx>

Hello Rich,

On Mon, Mar 31, 2014 at 12:32:48AM -0400, Rich Felker wrote:
> > Perhaps the best part is that this solution can be implemented in just
> > a few lines of code.
> 
> And here's the patch. Please test and let me know if this works.

Extremely appreciated (and a nice approach indeed, as far as I can see).

Now rebuilding a bunch of programs (including the gcc compiler itself)
with a gcc which uses the patched musl and so far it seems to work.
I guess this exercises malloc quite a bit.

(Under the gcc stages rebuilding, the loader is used implicitly and
presumably the heap exhaustion is not triggered, this confirms that the
patch did not damage the brk mode of operation. The compiler seems otherwise
to be capable of building everything I throw at it, while being run via the
standalone loder, which previously failed due to "no memory")

You saved my day, thanks Rich.

Rune



  reply	other threads:[~2014-03-31  7:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31  0:41 Rich Felker
2014-03-31  4:32 ` Rich Felker
2014-03-31  7:44   ` u-igbb [this message]
2014-03-31 11:05 ` Szabolcs Nagy
2014-04-01 16:40 ` Vasily Kulikov
2014-04-01 17:01   ` Szabolcs Nagy
2014-04-01 17:03   ` 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=20140331074421.GA30395@example.net \
    --to=u-igbb@aetey.se \
    --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).