From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.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: Mon, 04 May 2015 15:55:48 +0000 Message-ID: <87fv7cmj5n.fsf@violet.siamics.net> References: <87bni5pra9.fsf@violet.siamics.net> <87h9rxhaii.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1430755054 8269 80.91.229.3 (4 May 2015 15:57:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2015 15:57:34 +0000 (UTC) To: 20471@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 04 17:57:23 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YpIk7-0005nM-Kz for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 May 2015 17:57:15 +0200 Original-Received: from localhost ([::1]:34911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpIk7-0005ph-0V for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 May 2015 11:57:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpIk0-0005ok-5e for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 11:57:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpIjv-0003i9-O6 for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 11:57:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpIju-0003i0-HR for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 11:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YpIju-0004HC-1n for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 11:57: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: Mon, 04 May 2015 15:57:01 +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: Original-Received: via spool by 20471-submit@debbugs.gnu.org id=B20471.143075496316365 (code B ref 20471); Mon, 04 May 2015 15:57:01 +0000 Original-Received: (at 20471) by debbugs.gnu.org; 4 May 2015 15:56:03 +0000 Original-Received: from localhost ([127.0.0.1]:33908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpIiw-0004Fs-NS for submit@debbugs.gnu.org; Mon, 04 May 2015 11:56:03 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:42417) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpIit-0004FR-R2 for 20471@debbugs.gnu.org; Mon, 04 May 2015 11:56:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=cfT94zEJDjl4JRNCIyw5ZT1FJOJNqbPL2TYzwmR7pLI=; b=H8p1RIiLeJFnWW7kUn6sdGsrY1M4aRaMKtun4MH5GwygHO1HuAKUsMOoEyFAmZdZvLlA4JVuohtb0X3IVNU99hRgDbqCtsRbqmRwh7QzpF7DaFyGrbsfsWwp7ExMDjhGLK/gvfdvrc/w18Pisb17KPr+jiaAHDGkDbnVYo+ve+0=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YpIiq-000528-Jg for 20471@debbugs.gnu.org; Mon, 04 May 2015 15:55:56 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YpIij-0004kt-Nx for 20471@debbugs.gnu.org; Mon, 04 May 2015 22:55:49 +0700 Mail-Followup-To: 20471@debbugs.gnu.org In-Reply-To: <87h9rxhaii.fsf@igel.home> (Andreas Schwab's message of "Thu, 30 Apr 2015 18:00:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102452 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >>>>> Andreas Schwab writes: >>>>> Ivan Shmakov writes: >> Attaching GDB to it shows no signals being delivered on C-g, which >> (AIUI) hints at either SIGINT being blocked /or/ C-g =E2=80=9Cunbound= =E2=80=9D from >> the signal via terminal settings. I=E2=80=99ve copied the latter from a >> terminal used by a properly working Emacs instance with the stty(1) >> invocation below, yet I still see no signals via GDB, which leaves >> the signal mask as the only point of failure that I can think of. >> Any suggestion on how do I debug this issue any further? > A blocked signal would still be visible in the debugger It=E2=80=99s not what I observe. Why, SIGINT seem to be ignored by GDB itself when it=E2=80=99s attached to that Emacs instance. > (assuming you haven't changed the handling of SIGINT in gdb). I didn=E2=80=99t. (gdb) info signals=20 Signal Stop Print Pass to program Description SIGHUP Yes Yes Yes Hangup SIGINT Yes Yes No Interrupt SIGQUIT Yes Yes Yes Quit =E2=80=A6 Just in case, the ps(1) output for two of my Emacs instances goes below. The GDB =E2=80=98bt=E2=80=99 output at SIGCONT time (after a properly handled C-z) is MIMEd, too. To note is that I=E2=80=99ve tried to set a breakpoint on the next line of internal_catch (), but it doesn=E2=80=99t seem to ever be triggered. Could it hint at some non-local exit issue, perhaps? $ ps -o pid,pending,blocked,ignored,caught,stat,bsdtime,command \ -C emacs24 -C emacs25=20 PID PENDING BLOCKED IGNORED CAUGHT STAT TIME COMMAND 19987 00000000 00000000 14001000