From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Dynamic modules: emacs-module.c and signaling errors Date: Wed, 25 Nov 2015 09:34:05 -0800 Organization: UCLA Computer Science Department Message-ID: <5655F10D.9080805@cs.ucla.edu> References: <83k2p7xk13.fsf@gnu.org> <87wpt7p369.fsf@tromey.com> <83d1uzxgvw.fsf@gnu.org> <5654D7CF.90001@cs.ucla.edu> <87si3vox7j.fsf@tromey.com> <56555B52.3030703@cs.ucla.edu> <837fl6xa02.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 1448472904 30166 80.91.229.3 (25 Nov 2015 17:35:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 17:35:04 +0000 (UTC) Cc: dancol@dancol.org, tzz@lifelogs.com, emacs-devel@gnu.org, p.stephani2@gmail.com, aurelien.aptel+emacs@gmail.com, tom@tromey.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 25 18:34:53 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 1a1dxe-0006oZ-8H for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 18:34:30 +0100 Original-Received: from localhost ([::1]:46868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1dxa-0004P5-T4 for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 12:34:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1dxN-0004Ox-QV for emacs-devel@gnu.org; Wed, 25 Nov 2015 12:34:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1dxM-0003II-TT for emacs-devel@gnu.org; Wed, 25 Nov 2015 12:34:13 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1dxH-0003HM-9E; Wed, 25 Nov 2015 12:34:07 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8027E1606CC; Wed, 25 Nov 2015 09:34:06 -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 pRx66_isDWde; Wed, 25 Nov 2015 09:34:05 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CEFF9160707; Wed, 25 Nov 2015 09:34:05 -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 A6RHFQI2_i4F; Wed, 25 Nov 2015 09:34:05 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B18DE1606CC; Wed, 25 Nov 2015 09:34:05 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <837fl6xa02.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:195230 Archived-At: On 11/25/2015 09:30 AM, Eli Zaretskii wrote: > Maybe I misunderstand the issue, but AFAICS any Lisp data that is > allocated by emacs-module.c on behalf of modules already goes through > xmalloc, so what exactly are the remaining problems? I think Daniel is worried that module code will call xmalloc, and then do more work that signals an Elisp error or throws a C++ exception, and the module will then leak the xmalloced memory. There may be other concerns like that too, but I'm not sure what they are.