From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo 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: Wed, 07 Jun 2023 17:13:42 -0400 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37946"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , akrl@sdf.org, 57880@debbugs.gnu.org To: Ioannis Kappas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 07 23:14:13 2023 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 1q70Tt-0009ey-13 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jun 2023 23:14:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q70Tj-0002dJ-Mi; Wed, 07 Jun 2023 17:14:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q70Ti-0002dA-Ep for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q70Ti-00059K-6f for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q70Th-0005le-QV for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jun 2023 21:14:01 +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.168617243222147 (code B ref 57880); Wed, 07 Jun 2023 21:14:01 +0000 Original-Received: (at 57880) by debbugs.gnu.org; 7 Jun 2023 21:13:52 +0000 Original-Received: from localhost ([127.0.0.1]:54925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q70TY-0005l7-6Z for submit@debbugs.gnu.org; Wed, 07 Jun 2023 17:13:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q70TV-0005kp-B5 for 57880@debbugs.gnu.org; Wed, 07 Jun 2023 17:13:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q70TP-00056B-Dg; Wed, 07 Jun 2023 17:13:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=GChcumo4Vekglz1IpVO3W+PtXieZ60r12b+zWYd52Rs=; b=Ssfjtdg0Nt9xJ003klnD EuZO9sAczUfpWGf0NoGLBxMsKJh5NLKtSHJT3W6HZSs2RUgIK2BYIQ4dhUBdPHYRLh5yyr8A5G3Dz jQWVXfccu14gZz3mrMtUBxVjikbieiUuHEMVxlFcyaQPo4JsUETjXOdhtyBw4KsNyHeQBeIVnvo9z need+llCAolGaQA20bDhFyrBoGdGfWZHXaW2WNdqRDKyUHkS11tlDXtgPDeqH0SmjT4TKxEknSDp8 UbamdF/m/bj4cUBxPOMH2Y+EQA5WX1inIpmH1qFRaiaH3vnm6t84hJrt+twr12DyvkaBHvsaDLPM/ C1dVQAzSACZYbg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q70TO-0001Au-Ei; Wed, 07 Jun 2023 17:13:42 -0400 In-Reply-To: (Ioannis Kappas's message of "Fri, 23 Sep 2022 17:43:01 +0100") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263086 Archived-At: Ioannis Kappas writes: > 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! Hello all, I'm not sure, is there any action we should take for this bug or should we close it? Thanks! Andrea