From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10549 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: "non-float" malloc (was: incompatibility between libtheora/mmx and musl) Date: Sun, 2 Oct 2016 14:08:32 +0200 Message-ID: <20161002120832.GK1280@port70.net> References: <20160913180649.GN16436@example.net> <20160913204304.GY15995@brightrain.aerifal.cx> <20160914103253.GO16436@example.net> <20160914112400.GS1280@port70.net> <20160914140450.GQ16436@example.net> <20160914142842.GZ15995@brightrain.aerifal.cx> <20160914144145.GT1280@port70.net> <20161002105950.GM28325@example.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1475410184 28769 195.159.176.226 (2 Oct 2016 12:09:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2016 12:09:44 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-10562-gllmg-musl=m.gmane.org@lists.openwall.com Sun Oct 02 14:09:39 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bqfaM-0006ly-Cn for gllmg-musl@m.gmane.org; Sun, 02 Oct 2016 14:09:38 +0200 Original-Received: (qmail 15576 invoked by uid 550); 2 Oct 2016 12:08:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15532 invoked from network); 2 Oct 2016 12:08:44 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20161002105950.GM28325@example.net> Xref: news.gmane.org gmane.linux.lib.musl.general:10549 Archived-At: * u-uy74@aetey.se [2016-10-02 12:59:50 +0200]: > On Wed, Sep 14, 2016 at 04:41:45PM +0200, Szabolcs Nagy wrote: > > to test this, try to use the 'non-float bin index' > > code in musl from here: > > http://port70.net/~nsz/musl/malloc.c > > Unfortunately this leads to a segfault when used with the explicit runtime > loader, because brk() happily grows over the dynamic loader's data. > The modified variant of the malloc code seems to not apply > the traverses_stack_p() check. > i meant that you should only use the bin index calculation from that file, not as a malloc replacement. other parts of musl malloc has been changed since i wrote that..