From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.emacs.devel Subject: Re: Dumper issue, revisited; invalid realloc/free Date: Thu, 5 Feb 2015 13:43:18 -0500 Message-ID: <20150205184318.GJ23507@brightrain.aerifal.cx> References: <20150204175709.GX23507@brightrain.aerifal.cx> <83pp9pfqb3.fsf@gnu.org> <20150204191305.GY23507@brightrain.aerifal.cx> <83lhkdfpgc.fsf@gnu.org> <54D28260.40403@cornell.edu> <20150205013147.GE23507@brightrain.aerifal.cx> <20150205032550.GF23507@brightrain.aerifal.cx> <83a90tf27l.fsf@gnu.org> <20150205043317.GH23507@brightrain.aerifal.cx> <85iofgz5zg.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1423161816 14633 80.91.229.3 (5 Feb 2015 18:43:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 18:43:36 +0000 (UTC) To: Eli Zaretskii , kbrown@cornell.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 19:43:35 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJROp-0007Io-3w for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 19:43:35 +0100 Original-Received: from localhost ([::1]:44510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJROo-0007Jc-Dw for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 13:43:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJROk-0007IL-9z for emacs-devel@gnu.org; Thu, 05 Feb 2015 13:43:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJROj-000521-Ei for emacs-devel@gnu.org; Thu, 05 Feb 2015 13:43:30 -0500 Original-Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:51475 helo=brightrain.aerifal.cx) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJROe-0004wc-MR; Thu, 05 Feb 2015 13:43:25 -0500 Original-Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1YJROY-00075S-00; Thu, 05 Feb 2015 18:43:18 +0000 Content-Disposition: inline In-Reply-To: <85iofgz5zg.fsf@iznogoud.viz> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 216.12.86.13 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182469 Archived-At: On Thu, Feb 05, 2015 at 05:14:54PM +0100, Wolfgang Jenkner wrote: > On Wed, Feb 04 2015, Rich Felker wrote: > > > I now have a working build with no ugly hackery. > > Does it use any special properties of musl malloc or should the hybrid > approach now work with any reasonable malloc implementation? No special properties at all; that's what I meant by no ugly hackery. In fact it seems like it _couldn't_ depend on anything about the malloc implementation, because the system malloc implementation is not used prior to dumping and the pre-dump objects are never passed to it after dumping. So, based on both the concept and the practical success with it (everything worked basically first try with no difficulty on a new target), I believe hybrid malloc should be the default for platforms where there's not a reason to prefer something else. Rich