From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#58956: mark_object, mark_objects(?) crash Date: Sun, 6 Nov 2022 11:18:03 -0800 Organization: UCLA Computer Science Department Message-ID: <3fc1de10-5fb1-fd30-a771-ce58a533bfbf@cs.ucla.edu> 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> <83fsew3a21.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17367"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Cc: 58956@debbugs.gnu.org, spwhitton@spwhitton.name, vincent@vinc17.net, 1017711@bugs.debian.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 06 20:19:12 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 1orlAl-0004LZ-7K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Nov 2022 20:19:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orlAe-0000Ct-D7; Sun, 06 Nov 2022 14:19:04 -0500 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 1orlAc-0000CZ-Ox for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 14:19:02 -0500 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 1orlAc-00078N-Eh for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 14:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orlAc-0007Om-9z for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 14:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Nov 2022 19:19: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.166776229328382 (code B ref 58956); Sun, 06 Nov 2022 19:19:02 +0000 Original-Received: (at 58956) by debbugs.gnu.org; 6 Nov 2022 19:18:13 +0000 Original-Received: from localhost ([127.0.0.1]:60625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orl9p-0007Nh-71 for submit@debbugs.gnu.org; Sun, 06 Nov 2022 14:18:13 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orl9m-0007NT-IB for 58956@debbugs.gnu.org; Sun, 06 Nov 2022 14:18:11 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1D6C7160076; Sun, 6 Nov 2022 11:18:05 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id tgXBSvEY-u1b; Sun, 6 Nov 2022 11:18:04 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 558A7160082; Sun, 6 Nov 2022 11:18:04 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 558A7160082 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1667762284; bh=2Xl3jwo8OCvyDQEQP/UZ4voa67ZV9KbH8uN4yKrk9KA=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding; b=NgVfo1GQIwCALMD0cMZGj2WyLr8IiPHQxv1N2nuvQGgsEIsqH10xcQsaDM4o6qkq1 dUVFcmIAeQc6FlEHg7m0+01Ps4ejS8sVNxGQ6bH+EnmfI0Bdt/Qvst2xoQmLzkuaEQ OEfrIn/Pjbr4JJvCM1DMLDPKhG1dhwBLvGQNhI8k= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iCnhJaNzJ8Gu; Sun, 6 Nov 2022 11:18:04 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1D26C160076; Sun, 6 Nov 2022 11:18:04 -0800 (PST) Content-Language: en-US In-Reply-To: <83fsew3a21.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247234 Archived-At: On 2022-11-05 22:51, Eli Zaretskii wrote: > 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? It depends on the OS and the app that invokes Emacs and how that app itself was invoked. It's a hairy area. On a POSIX platform it's certainly *possible* for Emacs to get SIGHUP in that situation, because a user can invoke the shell command 'kill -s HUP P', where P is the process ID of the inferior Emacs. Whether it's *likely* is a bit harder to say. I ran a few little experiments on Fedora 36 and Ubuntu 22.10 and found SIGHUP being sent in a few situations and not others and didn't have the time or patience to suss out exactly why or when.