From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ioannis Kappas Newsgroups: gmane.emacs.bugs Subject: bug#57880: 28.1; Emacs crashes with native compilation on when some antivirus program is running on MS-Windows Date: Fri, 23 Sep 2022 17:43:01 +0100 Message-ID: References: <83o7v9ugv2.fsf@gnu.org> <83czbnud9d.fsf@gnu.org> <83tu4zstlg.fsf@gnu.org> <83k05ur60n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57880@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 23 18:51:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oblte-0008pi-L9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 18:51:26 +0200 Original-Received: from localhost ([::1]:35774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obltd-0005CH-Jb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 12:51:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oblmV-0000aN-Ax for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 12:44:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oblmU-0004By-Uc for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oblmU-0003I4-Hk for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ioannis Kappas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Sep 2022 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57880 X-GNU-PR-Package: emacs Original-Received: via spool by 57880-submit@debbugs.gnu.org id=B57880.166395140112591 (code B ref 57880); Fri, 23 Sep 2022 16:44:02 +0000 Original-Received: (at 57880) by debbugs.gnu.org; 23 Sep 2022 16:43:21 +0000 Original-Received: from localhost ([127.0.0.1]:41631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obllo-0003H0-Or for submit@debbugs.gnu.org; Fri, 23 Sep 2022 12:43:21 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:35418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obllm-0003Gm-JZ for 57880@debbugs.gnu.org; Fri, 23 Sep 2022 12:43:19 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id r133-20020a1c448b000000b003b494ffc00bso3690884wma.0 for <57880@debbugs.gnu.org>; Fri, 23 Sep 2022 09:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=hZMaD8I9aDk0zLz0IWIqoklQvpbrP+A74pixqWGJGI0=; b=X4vZZwUS0aPEQZhDrX1sM8f1dHqtQVcm1om2zetbBXnEXceUAebMJfWkfdjpxPD06D csfjfK9SIsHYRg+yTlZbOTNNIEYYsZluKl3fbaTbwZJzGj+XZX8siTVteg0QwuBzEimW ma8o9/vCc8OSiztVQj2jvmP2zOCy48BF24CzQU3f2TPiLqo7QjhOQyTNg98xCsI3cUgG vhJ1C4n3axvwqtohJYg3u3UdO+W3Im94AlCqoPWHQz44IC0Q1s7mv2RMXIc5AJbGB5HF xx0TlEvNG5ohWhzPQyUAqv1WGyfmQQizyT6NEDhp9MD6x5+yWooKYruvP9jrLWctRhF1 ye6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=hZMaD8I9aDk0zLz0IWIqoklQvpbrP+A74pixqWGJGI0=; b=T0f5nKeQTNKQ9G561K6VAuoSqdtaRAiUIRCZd2YNNdm/rekQQ1iAs4EaJkpzRNT6Jl mmGW+ZIbhBtsz6Bc7T9m9Hdl4NyBm7jrUlvReJhT5PS9iygL4mQyWo0ajd6Zy16KVXpO zGPzOkSlrjLkWTHV8fJCu61zy3oF3VVO5Bi3t7YQuuE2dDV6GPqJa5z6pos26CEAPOIb FYdJDA8TKieRHGVXaLPFdf0R2+qzFeikI014QRN3fDYZErYlmoCUgInMrTLuVOZqY7Vy 8nDEISc2hPM8mjjV10XOr2C0tEingTDeCJOfrKIPFPcTALBjD70SiKFuIl9MBlv8/tJj 6l+g== X-Gm-Message-State: ACrzQf1LOK9HE42V5EsTJdw7Wx7F9PgMTVD3P9zOWO4odt0s0mUGdp4B J1aH4Dw3r0iBW4cTLvu/1pHsZ+Cy6e/GnRxqD40= X-Google-Smtp-Source: AMsMyM6wODUWpG/iZFzo5PgXpgJGEcOioYCsGmGzcq1AKDWiE9TrXAS7yQnYTwx1pg3quvbCFxycjwH2BFKYIkqmfKw= X-Received: by 2002:a05:600c:3c8e:b0:3b4:d224:addf with SMTP id bg14-20020a05600c3c8e00b003b4d224addfmr13683944wmb.132.1663951392426; Fri, 23 Sep 2022 09:43:12 -0700 (PDT) In-Reply-To: <83k05ur60n.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243492 Archived-At: Hi Eli, On Fri, Sep 23, 2022 at 6:53 AM Eli Zaretskii wrote: > > > From: Ioannis Kappas > > Date: Thu, 22 Sep 2022 21:46:14 +0100 > > Cc: akrl@sdf.org, 57880@debbugs.gnu.org > > > > > > Or could there be an early init option to bypass the native compilation. This > > > > way the users can test the issue with is native comp. > > > > > > There is one already. > > > > Are you referring to an option for building form source? I couldn't > > find an option > > to turn off native compile for the precompiled windows binaries (such as those > > retrieved from the official ftp site or from msys2 pacman) that can configured > > to disable native comp. > > It's native-comp-deferred-compilation: set it to nil. For a good > measure, also set comp-enable-subr-trampolines to nil. Emacs does > this automatically at startup if libgccjit cannot be loaded. Thanks, it's good to know, I could find any straight references about it on the web. > So you are saying that if someone installs Emacs under C:/Users, that > Emacs will not work, regardless of the native-compilation, because it > will be unable to load the DLLs which come in the Emacs binary > distribution, for example the image libraries? Then it is strange > that we haven't heard about such a major issue with Emacs on Windows > until now. Correct. I can't comment on how widespread that is. I personally stayed with the 27 branch until I discovered the surprising cause of the failure. I would not have reported it with just a simple hexadecimals backtrace, without a single clue what might have been going wrong. > Thanks, but that doesn't really answer my question, which was about > the specific brands of AV software _known_ to do this. You seem to > saying that the answer is 'all of them", but I'm asking what are the > brands with which this was actually seen. Sorry for being a mystic here. It is the AV made by the company who authored the article. > > > > > Those precompiled with Emacs are fine in this use case since they are > > > > not stored in the Users directory, it's only newly compiled files that > > > > exhibit this issue because they store the .eln files in the user dir by > > > > default. > > > > > > This means that the problem will only affect people who have libgccjit > > > and GCC/Binutils installed, because otherwise Emacs will be unable to > > > compile new *.eln files. Right? > > > > Yes, since I understand Emacs won't be able to generate any new .eln files > > without access to libgccjit. > > So then we can tell such people (which are relatively rare) to have > their home directory outside of the C:/Users tree. Or let them know of the alternatives, such as the use of startup-redirect-eln-cache so that they can direct the new .eln files somewhere else? I don't think people would want their .emacs.d to be located outside of the personal user folder. (I am not sure if we are referring to the same subject :) Thanks!