From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.comp.lib.glibc.alpha Subject: Re: Removal of unexec support from glibc malloc Date: Tue, 26 Jan 2016 20:32:41 -0500 Message-ID: References: <569CDB81.6040600@redhat.com> <569D3BE0.6050103@cs.ucla.edu> <569D4207.4060209@cs.ucla.edu> <569D6AE6.1060008@redhat.com> <83bn8icjqu.fsf@gnu.org> <83r3h86aqf.fsf@gnu.org> <56A7F07F.9000109@redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453858420 6804 80.91.229.3 (27 Jan 2016 01:33:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2016 01:33:40 +0000 (UTC) Cc: libc-alpha@sourceware.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 27 02:33:31 2016 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 1aOEzC-0004Zw-LX for ged-emacs-devel@m.gmane.org; Wed, 27 Jan 2016 02:33:30 +0100 Original-Received: from localhost ([::1]:47694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOEzB-0004ts-SI for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 20:33:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOEyq-0004qf-Vy for emacs-devel@gnu.org; Tue, 26 Jan 2016 20:33:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOEyl-0006KS-Oa for emacs-devel@gnu.org; Tue, 26 Jan 2016 20:33:08 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOEyj-0006KB-Oy for emacs-devel@gnu.org; Tue, 26 Jan 2016 20:33:03 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aOEyb-00047f-RM for emacs-devel@gnu.org; Wed, 27 Jan 2016 02:32:54 +0100 Original-Received: from 108.161.125.56 ([108.161.125.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jan 2016 02:32:53 +0100 Original-Received: from monnier by 108.161.125.56 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jan 2016 02:32:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 108.161.125.56 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:VYqO9e47OYd9RoSjHlE9SbAbxMg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:198899 gmane.comp.lib.glibc.alpha:59002 Archived-At: >>> [realloc/free of a dumped heap object] >> It may be a pain to fix them if they happen inside libraries. > I think the dump-and-reload cycle resets global variables defined in > libraries as long as they are not referenced by the main program. This > means libraries have difficulties to retain references to objects > allocated before the dump. I agree that it's unlikely that we'll bump into problems where there's a realloc/free of dumped objects that happens completely inside a library. More specifically, I wouldn't worry about this problem. Stefan