GNU bug report logs

#57878 Emacs native compilation on startup can crash the system

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #41 received at 57878@debbugs.gnu.org (full text, mbox, reply):

Received: (at 57878) by debbugs.gnu.org; 13 Oct 2022 09:31:25 +0000
From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 05:31:25 2022
Received: from localhost ([127.0.0.1]:59559 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1oiuYn-0004TR-7L
	for submit@debbugs.gnu.org; Thu, 13 Oct 2022 05:31:25 -0400
Received: from mail-ej1-f42.google.com ([209.85.218.42]:45954)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <max.brieiev@gmail.com>) id 1oiuYk-0004TC-UA
 for 57878@debbugs.gnu.org; Thu, 13 Oct 2022 05:31:23 -0400
Received: by mail-ej1-f42.google.com with SMTP id sc25so2568100ejc.12
 for <57878@debbugs.gnu.org>; Thu, 13 Oct 2022 02:31:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=TPG+mnJullxpjhI6x0F7vLqyM5/o8FD0fx7KLGEeAPA=;
 b=EafNb9HaVtRORll++M7GTCMlxPzKKoRmwAk5kyZ9vk+P0eki2Ju4Hsf2cWhMlSMr4C
 rRPQi0bVb9Bb/pD41PqSQWTG/pYhmL9rCPvFv2N4av5fNPQF+92KoAlVBtS266snkQcd
 FaJt0WzHnbDTa7DPIKKhtlX8O4wHLEvZ3iQvHFOtO9ZTWN1+P8dqSK6NoMtKZwqKMgwR
 bBj5fMlV8RAV5JARZQnteP0FRaIRwW/nZV/+3zqC68py+GMREVxB93bme4IYvrNs42jK
 +CSuJH9PGj+bCzyY/Wq6ifeMbhQtB7lylew6ONDYUcBADWtCypab/mjscHiujW6F+yap
 Ju3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=TPG+mnJullxpjhI6x0F7vLqyM5/o8FD0fx7KLGEeAPA=;
 b=FCyf13mLuazqAnFyspXlNw+/jQC9BIqK4aHZJ9UDa+UAyvnZhMbLsnZuJz6Y41ag0F
 NFnnk6HTGvQbpPAL6EOdhXbOvNgXXzd9w74OCnuCk7BETEPjJNV84lgpbQLVviCIJixE
 yKhPDfqdLbvse/Bm73E27a4FMUyyOVeGe+gWFkhRxo9ncB9FztRRoYIYrOizwGBNr8Xs
 8YjGqVBF1/SQ5Q7h2y+MZMLM1IrsuMSk0Ieryk4TGywVWtoA9sEaLlmKtxIqieDCi1rg
 uiE2sgNQMjuoQRdeCrB4ftUGTOIL3EBF72IwjIz2HLv3CRHSukKJtimEDcNISepDeytL
 FMUQ==
X-Gm-Message-State: ACrzQf1hfcSP5G6KFkOjs9YDPwOrANHlGp8YDiPkZ2rgajNh2zVXuMdp
 Gp2LgRAgTD5JKrRFP3PJ9mcjfaBfoo/Jyg==
X-Google-Smtp-Source: AMsMyM4JKUmTrSvxiXnxBwSbQYjUsJdSlfYGA+FprY77fDjiZvB5w24E6R3zGCcuNNB0BXBtR4UOCA==
X-Received: by 2002:a17:907:1c96:b0:78d:fe6b:9891 with SMTP id
 nb22-20020a1709071c9600b0078dfe6b9891mr3874747ejc.746.1665653476545; 
 Thu, 13 Oct 2022 02:31:16 -0700 (PDT)
Received: from thinkmax ([109.251.233.9]) by smtp.gmail.com with ESMTPSA id
 u24-20020a17090617d800b0078135401b9csm2687120eje.130.2022.10.13.02.31.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 13 Oct 2022 02:31:16 -0700 (PDT)
From: Max Brieiev <max.brieiev@gmail.com>
To: Liliana Marie Prikler <liliana.prikler@gmail.com>
Subject: Re: bug#57878: Minimal reproducible setup
In-Reply-To: <6873fe86a05a548e7427d2de7df04a27a967713a.camel@gmail.com>
 (Liliana Marie Prikler's message of "Wed, 12 Oct 2022 21:42:57 +0200")
References: <m1o7ve2t2a.fsf@fastmail.net> <m1o7vexawf.fsf@fastmail.net>
 <e00fb97ec9fa651b42c7bbbf29760e0d93e6e3e6.camel@gmail.com>
 <12eb8b51fe6c9508517e19bdeed923c389cafe1f.camel@gmail.com>
 <m14jx3q4qy.fsf@fastmail.net> <m1r107iw6t.fsf@fastmail.net>
 <CAJ=RwfbckEBc+7MSTbVtKsoL7EGM_ZYk+CecO-6x0PGDkWfntw@mail.gmail.com>
 <m17d1iskc0.fsf@fastmail.net>
 <6873fe86a05a548e7427d2de7df04a27a967713a.camel@gmail.com>
Date: Thu, 13 Oct 2022 12:31:14 +0300
Message-ID: <87wn943w9p.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57878
Cc: Konrad Hinsen <konrad.hinsen@fastmail.net>, "Thompson,
 David" <dthompson2@worcester.edu>, 57878@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> From personal experience, no.  Even if you compile code ahead of time,
> there seem to be some leftovers that are deferred.  guix-emacs.el is an
> oversight, but apart from that I also other leftovers (possibly from
> init.el?)

AFAIU, the compiler is invoked any time a function is redefined or
advised, see (info "(elisp) Advising Functions"). In Emacs it is a very
common paractice to put advices around a function to modify its
behaviour. Since this happens during runtime (for example, in response
to a hook, or after you manually run some command), you should accept
the fact that native compiler may be invoked at any time as you use
Emacs.

> In Guix, this is more or less a user choice – we advertised the
> transformation by which you can opt-in to AOT compilation in a news
> entry.  Also, enforcing ahead-of-time compilation does not fix the more
> pressing issue of packages breaking with native compilation ;)

How pressing is this issue? There are literally no reports of packages
breaking due to native compilation. So this is probably the reason why
Eli considers it as a non-issue.

> To quote Eli:
>> More generally, we never expected people who have Emacs with native
>> compilation available to want to disable it.  It made no sense to us
>> during development of Emacs 28, and frankly, it still doesn't, at
>> least to me.
> I think this reasoning really falls flat in presence of any non-Emacs
> package manager.  Like, obviously wanting to natively compile packages
> managed by (dpkg, rpm, pacman, emerge, guix), but not natively
> compiling a random elisp script you just downloaded from the web is a
> legitimate use case.

If security is a concern, you should not load random Elisp in the first
place. It is much easier to just directly run harmful elisp, then to
exploit native compiler, which stays silent until after you evaluate
some (possibly harmful) elisp.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Sep 8 11:23:59 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.