From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#20471: Emacs ceased to respond to C-g on a tty; SIGINT became blocked? Date: Thu, 2 Jun 2022 05:20:47 +0000 Message-ID: <20220602052047.g6fidkxbbqoetukf@violet.siamics.net> References: <87bni5pra9.fsf@violet.siamics.net> <87k0b42res.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18571"; mail-complaints-to="usenet@ciao.gmane.io" To: 20471@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 02 07:22: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 1nwdHf-0004Zy-Cg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 07:22:12 +0200 Original-Received: from localhost ([::1]:41878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwdHd-0001hX-PT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 01:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwdHW-0001hO-Nk for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 01:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwdHW-0005P5-C1 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 01:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwdHW-0001Ky-8c for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 01:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2022 05:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 20471-submit@debbugs.gnu.org id=B20471.16541472705075 (code B ref 20471); Thu, 02 Jun 2022 05:22:02 +0000 Original-Received: (at 20471) by debbugs.gnu.org; 2 Jun 2022 05:21:10 +0000 Original-Received: from localhost ([127.0.0.1]:52385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwdGg-0001Jn-BS for submit@debbugs.gnu.org; Thu, 02 Jun 2022 01:21:10 -0400 Original-Received: from wata.am-1.org ([46.235.224.96]:49340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwdGb-0001JX-SW for 20471@debbugs.gnu.org; Thu, 02 Jun 2022 01:21:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net ; s=a2021230; h=License:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description; bh=xoHhhKJ6jvMKfjPH1DcPW7nzcmnZrbrRExzMCFzgBng=; b=y3zdnDMyKDJAuhge3Dna3EqwcD dgKFmPjdhDUkEBd7KluJn33hOuiwy8KfWPXpenpwHxftxODyuFEHlCQ2LltWrfBB2i31/Znqzh9eH v/uJXjNox41PiF2vJDRmtzajKT+JlboFNxfE6FU4iiicCBYluDX9aFinaaNX2AZGaUx8N98Mtaqqy W8iFqARX4LXkv2u/w6bBkEQSgtg4RT+YMFfzwnqABU13jb/zAg/gm8zvT/of2vSmCU2cCt8XmZaBL 9K75LSYnbDdChV4ryKa5pFiIvcb3pCJn5g64YWQqMZa8mGPkzY4gYW9Gs8SWmAIe+aaQyrlrEU5i1 4wGjBorQ==; Original-Received: from [2001:470:1f13:1eb::1:1d] (helo=violet.siamics.net) by wata.am-1.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nwdGa-0004bd-CA for 20471@debbugs.gnu.org; Thu, 02 Jun 2022 05:21:04 +0000 Original-Received: from ivan by violet.siamics.net with local (Exim 4.92) (envelope-from ) id 1nwdGK-0006k5-1h for 20471@debbugs.gnu.org; Thu, 02 Jun 2022 05:20:48 +0000 Mail-Followup-To: 20471@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <87k0b42res.fsf@gnus.org> License: CC0-1.0 (original contributions only) 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:233520 Archived-At: >>>>> On 2022-05-02, Lars Ingebrigtsen wrote: >>>>> IS == Ivan Shmakov wrote: > (I’m going through old bug reports that unfortunately weren’t resolved > at the time.) > Are you still seeing this issue in recent Emacs versions? I haven’t put Emacs to much use in a couple of years, so that’d be a no. I cannot readily recall which versions I’ve had this bug on, but while very rare (perhaps only happening once in a few weeks), I’m pretty certain I’ve encountered it more than once. IS> After some unfortunate interaction with a process (or perhaps a IS> network connection), one of my Emacs instances (built from Git; IS> 1c7f0cdc4c1f, 2015-04-27 16:59:11 UTC) ceased to respond to C-g IS> on a tty. IS> Attaching GDB to it shows no signals being delivered on C-g, IS> which (AIUI) hints at either SIGINT being blocked /or/ C-g IS> “unbound” from the signal via terminal settings. IS> $ ps -o pid,pending,blocked,ignored,caught,stat,bsdtime,command \ IS> -C emacs24 -C emacs25 IS> PID PENDING BLOCKED IGNORED CAUGHT STAT TIME COMMAND IS> 19987 00000000 00000000 14001000 25806 00000002 04002006 04001000 $ AIUI, bit 1 set (as in, ‘0 != (mask & 2)’) in the ‘blocked’ mask above suggests that signal 2 (SIGINT) was indeed blocked. Ditto for ‘pending.’ -- FSF associate member #7257 np. AUTOEXEC.BAT — Master Boot Record