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#58956: mark_object, mark_objects(?) crash Date: Sun, 06 Nov 2022 07:51:18 +0200 Message-ID: <83fsew3a21.fsf@gnu.org> References: <874jvi5edp.fsf@melete.silentflame.com> <20221103030046.GA57325@zira.vinc17.org> <83o7to8rh1.fsf@gnu.org> <20221103101308.GD9442@zira.vinc17.org> <83zgd872q2.fsf@gnu.org> <83zgd75hll.fsf@gnu.org> <8ca1be93-e47a-49d0-e49a-4ad201f0f644@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25370"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58956@debbugs.gnu.org, spwhitton@spwhitton.name, vincent@vinc17.net, 1017711@bugs.debian.org, akrl@sdf.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 06 06:53:23 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 1orYax-0006Qk-0H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Nov 2022 06:53:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orYae-0001nH-7I; Sun, 06 Nov 2022 01:53:04 -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 1orYad-0001n6-NA for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 01:53:03 -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 1orYad-000354-Eu for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 01:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orYac-0007CV-8s for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 01:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Nov 2022 05:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58956 X-GNU-PR-Package: emacs Original-Received: via spool by 58956-submit@debbugs.gnu.org id=B58956.166771392727614 (code B ref 58956); Sun, 06 Nov 2022 05:53:02 +0000 Original-Received: (at 58956) by debbugs.gnu.org; 6 Nov 2022 05:52:07 +0000 Original-Received: from localhost ([127.0.0.1]:58546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orYZf-0007BH-1H for submit@debbugs.gnu.org; Sun, 06 Nov 2022 01:52:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orYZR-0007AZ-4x for 58956@debbugs.gnu.org; Sun, 06 Nov 2022 01:51:53 -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 1orYZK-0002zl-JR; Sun, 06 Nov 2022 01:51:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AyFGf/uN3KDs+yghVJiYk4qewnKDpvDuk6X8LPIBwXY=; b=EXe5IjkJ3ti6 ltqKi6JB0/hhe1UacrxBisxMEklVonfpWiXg67SztX/IAO2vnhZnplpri3d5GHw/SiQ+9Ha56O4jS l6fzPDIS8yGXtVTV7yD2HJG2zTupiZlqwPDJ1RNI0m4jjXX5Vznf3CUlVi5fdL9K4i5eGYzHHSzeP KcK83c7J948dEhbzp93hBEsG34o+6Z3ajOlRsSauKTdH1VxV/qy44ExlJJ7PeGm+ggcvI9dZZZnr0 gAZS+Dty4mhyab4l8VMK2pExDrZmCBLrBjYanCzZQKYq0qPHtHdhDKhTMn5YuonrCkxiZwSKSZa4g fcxipkyuztXgM3I8FHE51w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orYZH-0005Sf-23; Sun, 06 Nov 2022 01:51:41 -0400 In-Reply-To: <8ca1be93-e47a-49d0-e49a-4ad201f0f644@cs.ucla.edu> (message from Paul Eggert on Sat, 5 Nov 2022 13:54:54 -0700) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247182 Archived-At: > Date: Sat, 5 Nov 2022 13:54:54 -0700 > Cc: vincent@vinc17.net, spwhitton@spwhitton.name, 58956@debbugs.gnu.org, > 1017711@bugs.debian.org > From: Paul Eggert > > On 2022-11-04 00:00, Eli Zaretskii wrote: > > We need to establish what is the > > source of SIGHUP in these cases. "These cases" mean, AFAIU, the > > situations where Emacs launched an async subprocess to do native > > compilation (which is another Emacs process in a --batch session), and > > the parent Emacs session is terminated by the user before the async > > compilation runs to completion. Would the child Emacs process get > > SIGHUP in this scenario? > > Hard for me to say. It's a messy area, with kernels (and Emacs itself) > sending SIGHUP on various whims. But is it possible for a program like Emacs to get SIGHUP in such a situation, or is that highly improbable? We have standard streams of the inferior Emacs process connected via PTYs to the parent process, I believe -- does that deliver SIGHUP or SIGPIPE when the parent exits? > Does the attached patch fix things? It builds on your commit > 190a6853708ab22072437f6ebd93beb3ec1a9ce6 dated 2020-12-04; I don't know > why that earlier patch was installed, but it would seem to apply to > SIGHUP and SIGTERM as well as it applies to SIGINT. I was trying to be conservative, that's all. I'm okay with doing the same for SIGHUP. Vincent, can you try this patch, please?