From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46494: 28.0.50; [native-comp] Problems with async background compile Date: Sun, 14 Feb 2021 18:28:02 +0000 Message-ID: References: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> <83sg5ybr95.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: andrewjmoreton@gmail.com, 46494@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 19:59:58 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 1lBMcg-0003Nk-8a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 19:59:58 +0100 Original-Received: from localhost ([::1]:41402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBMcf-0004SN-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 13:59:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBM8k-0006T9-Kc for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 13:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBM8k-0000ds-DB for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 13:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBM8k-0003CE-7Z for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 13:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 18:29: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.161332728812223 (code B ref 46494); Sun, 14 Feb 2021 18:29:02 +0000 Original-Received: (at 46494) by debbugs.gnu.org; 14 Feb 2021 18:28:08 +0000 Original-Received: from localhost ([127.0.0.1]:36679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBM7s-0003B5-6b for submit@debbugs.gnu.org; Sun, 14 Feb 2021 13:28:08 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:63896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBM7p-0003At-Ur for 46494@debbugs.gnu.org; Sun, 14 Feb 2021 13:28:06 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 11EIS2tE004813 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 14 Feb 2021 18:28:03 GMT In-Reply-To: <83sg5ybr95.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Feb 2021 17:31:18 +0200") 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:200026 Archived-At: Eli Zaretskii writes: >> 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? Hi Eli, we have no special handling for closing async compilation processes, they should be closed as all child processes started by Emacs are. In the child process we do not spawn directly any other process, but libgccjit might do it (ex to call gas). Thanks Andrea