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: Wed, 21 Sep 2022 18:19:11 +0100 Message-ID: References: <83o7v9ugv2.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="21373"; 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 Wed Sep 21 19:20: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 1ob3Od-0005Ra-Gi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 19:20:27 +0200 Original-Received: from localhost ([::1]:53108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ob3Oc-0000kn-9a for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 13:20:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ob3OG-0000jT-9w for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 13:20:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36079) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ob3OE-0004En-Gd for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 13:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ob3OE-0007yf-3p for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 13:20: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: Wed, 21 Sep 2022 17:20: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.166378077030624 (code B ref 57880); Wed, 21 Sep 2022 17:20:02 +0000 Original-Received: (at 57880) by debbugs.gnu.org; 21 Sep 2022 17:19:30 +0000 Original-Received: from localhost ([127.0.0.1]:35157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob3Ni-0007xs-II for submit@debbugs.gnu.org; Wed, 21 Sep 2022 13:19:30 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:54029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob3Ng-0007xe-Gf for 57880@debbugs.gnu.org; Wed, 21 Sep 2022 13:19:28 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id e18so4958295wmq.3 for <57880@debbugs.gnu.org>; Wed, 21 Sep 2022 10:19:28 -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=HCTV1KrPJkyd7eHs8Hg4ZFiSxv0Ycvor/pWWOeG0RoY=; b=RZv4eKxzfCaEvJ0/ak0gwRYOxSB73k7WnAsYQsO9/j+cBJ1AM5DLZJcMZ+TD8pm48J 5mP+j1IgJa2Mjv8TIc23vvmpA6f4J/PfR1L25FMW4RzU7+nVuaPUtt0NTf0zI/9SNMIq Xk0HGHLuls/rOk1yZ1ypFcWUvrwZYT4H1Li+clidNiAIlwY/RvGsngvthbmFvHAtzPMo j9uGCwt8v5TXTuQanFh+iSsKWMgJkdzruqHE6WSdHW4hqGeSpqY8WnYnP/VEm0QSwl/U ZCzKCwLlhYmVa/LJLS5/Tf1vVZD5JzL1aSNZGs04hsqtW7Mh52mA73cBqwEOtpS+Hnrw Wvsw== 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=HCTV1KrPJkyd7eHs8Hg4ZFiSxv0Ycvor/pWWOeG0RoY=; b=2kIqOczPwgzZLfHKSdUBbXuArB/iOejQAV3CnW7oj+X7wta3wy4LZcyZfNXVOGYscZ HWp0POk+v+0Wl9PGECO8/5TxQmOVtPt4AfkiJX514AxpvoJjZrNrtXntsSRfampc6lcL 5AqKBDEPbSCIujTQASF2im7OZkgr6qajTgpEljrQQaWhK4o813b2ohKA50EeW1epJ9fW ykFP8alwoSYH9ns8PyObnv/ns/U2uWFoEIr8LD7n4Sw8rTaMuy9dJIIDj4ozhj9FqdPt JkaH7sCFXTgmdrPKMLuNfJgVSlPuKfBZ0eNy8/Q+ppRy0p7g9c8/8gEiZHgYesbdf0HX yQxQ== X-Gm-Message-State: ACrzQf0b/axPgX5o3t5JDVBPHJ68fTCesdDUt3iej294uQCATGKiYNaO EaKRddAfUizaT9wxefuPSZ3SGwa7tPKEC1ETdYc= X-Google-Smtp-Source: AMsMyM7kTq83RfRPJivDXQqF2kgVhw6fxKz/k0ufJVrfTt3A+UGMJdKZ7XjTRadUGuCfzLoDf8DG5LGrQTnbxwOBXGg= X-Received: by 2002:a05:600c:b42:b0:3b4:7580:a995 with SMTP id k2-20020a05600c0b4200b003b47580a995mr6824642wmr.30.1663780762418; Wed, 21 Sep 2022 10:19:22 -0700 (PDT) In-Reply-To: <83o7v9ugv2.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:243371 Archived-At: Hi Eli, On Wed, Sep 21, 2022 at 12:06 PM Eli Zaretskii wrote: > What would be the purpose of using Emacs with native-compilation on > such a system? Users who must cope with such antivirus programs will > need to use Emacs without native-compilation. I see no good reason to > prevent Emacs from crashing, since those *.eln files cannot be used > anyway, and we will just have a slowed-down Emacs without > native-compilation. Right? Or did I miss something? A user who experience this issue for the first time and had Emacs crash, would have no indication whatsoever what hit them, i.e. they wouldn't know how to react. Thus my suggestion for checking for the NULL pointer in unload comp, so that they at least see the error message about the .eln files being inconsistent and research ways to go around it. And I can see two ways going forward: 1. Take a step back and switch off native compilation (but how to do this other than recompiling Emacs?) 2. Stil use native compilation but change the destination .eln directory to a safer path, so that they can still rip the benefit. I'd expect the AV only have a limited set of dirs preventing GetProcAddress of operating, otherwise nothing would work. Thanks