From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46494: 28.0.50; [native-comp] Problems with async background compile Date: Sun, 14 Feb 2021 17:31:18 +0200 Message-ID: <83sg5ybr95.fsf@gnu.org> References: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9918"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andrewjmoreton@gmail.com, 46494@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 16:32:13 2021 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 1lBJNd-0002TC-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 16:32:13 +0100 Original-Received: from localhost ([::1]:36090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBJNc-0001Ev-2K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 10:32:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBJNS-0001Db-KL for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 10:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBJNS-0004lN-CK for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 10:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBJNS-00058o-8W for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 10:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46494 X-GNU-PR-Package: emacs Original-Received: via spool by 46494-submit@debbugs.gnu.org id=B46494.161331669519729 (code B ref 46494); Sun, 14 Feb 2021 15:32:02 +0000 Original-Received: (at 46494) by debbugs.gnu.org; 14 Feb 2021 15:31:35 +0000 Original-Received: from localhost ([127.0.0.1]:36575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBJN1-000588-C0 for submit@debbugs.gnu.org; Sun, 14 Feb 2021 10:31:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBJMz-00057v-Rb for 46494@debbugs.gnu.org; Sun, 14 Feb 2021 10:31:34 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39963) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBJMp-0004bi-Df; Sun, 14 Feb 2021 10:31:23 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3781 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lBJMh-0003h6-EA; Sun, 14 Feb 2021 10:31:17 -0500 In-Reply-To: (bug-gnu-emacs@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:200010 Archived-At: > Cc: 46494@debbugs.gnu.org > Date: Sun, 14 Feb 2021 08:01:59 +0000 > From: Andrea Corallo via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > c) Quitting emacs when async compilation processes are running sometimes > > causes crashes in the compile processes, which show the emacs abort > > dialog (once for each async process). The dialogs disappear after a > > short delay (presumably due to the parent emacs having exited). > > Mmmh, I guess this is a Windows specific behavior. Is there a specific > way to shut-down child processes we would use on Windows not to get > this error? Andrea, can you point me to the place where we interrupt async compilations when Emacs exits? Is that just a normal delete-process, or do we do something else, like sending a signal? Also, does the Emacs subprocess invoked to perform async compilation spawn further child processes, or is everything happening inside a single Emacs process? Armed with that knowledge, I will try to look at the code and figure out why the compiling process crashes. Thanks.