From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#22086: 25.1.50; [PATCH] Integrate the musl hybrid malloc patch for elf systems Date: Mon, 21 Dec 2015 09:11:14 -0800 Organization: UCLA Computer Science Department Message-ID: <567832B2.9010105@cs.ucla.edu> References: <85poynxvgy.fsf@iznogoud.viz> <567120C0.6080803@cs.ucla.edu> <85h9jhdxl2.fsf@iznogoud.viz> <56772CB2.8060004@cs.ucla.edu> <83vb7ssby6.fsf@gnu.org> <5677DFEB.3@cs.ucla.edu> <83mvt3sthj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1450719193 22140 80.91.229.3 (21 Dec 2015 17:33:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2015 17:33:13 +0000 (UTC) Cc: wjenkner@inode.at, dalias@aerifal.cx, 22086@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 21 18:33:01 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aB4KT-0004Nt-5t for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2015 18:33:01 +0100 Original-Received: from localhost ([::1]:46516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB4KS-0001CT-HZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2015 12:33:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB40D-0003bP-72 for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:12:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB409-0007Zs-Rf for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:12:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB409-0007Zo-Lp for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:12:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aB409-0003hY-Ic for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Dec 2015 17:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22086 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 22086-submit@debbugs.gnu.org id=B22086.145071788214183 (code B ref 22086); Mon, 21 Dec 2015 17:12:01 +0000 Original-Received: (at 22086) by debbugs.gnu.org; 21 Dec 2015 17:11:22 +0000 Original-Received: from localhost ([127.0.0.1]:59047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aB3zW-0003gh-9D for submit@debbugs.gnu.org; Mon, 21 Dec 2015 12:11:22 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49470) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aB3zV-0003gT-4i for 22086@debbugs.gnu.org; Mon, 21 Dec 2015 12:11:21 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D52AC160817; Mon, 21 Dec 2015 09:11:15 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ZxMTxoDa_SqD; Mon, 21 Dec 2015 09:11:15 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2F04D1607C4; Mon, 21 Dec 2015 09:11:15 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5kvU71SDX6UU; Mon, 21 Dec 2015 09:11:15 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0A3CD160817; Mon, 21 Dec 2015 09:11:15 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <83mvt3sthj.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110250 Archived-At: Eli Zaretskii wrote: >> It shouldn't conflict, as long as memory allocated by the system malloc is freed >> >by the system free, and memory allocated with emalloc is freed by >> >efree. > I don't see how this could be arranged. E.g., the environ array might > be created by the startup code, and then the application could > manipulate it with setenv and unsetenv. The former will use the libc > malloc, the latter emalloc/efree. If by "startup code" you mean the C library, then it's not a problem, as portable C code already cannot free environ or environ[0] or environ[1] ... (and Emacs respects this, both when run as temacs and when run as dumped). If by "startup code" you mean something else, then I'm afraid I'm not following the example.