From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chophi Newsgroups: gmane.emacs.bugs Subject: bug#44368: 27.1; emacs term can't be interrupted when running a subjob over ssh which output too fast Date: Sun, 01 Nov 2020 15:12:30 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_3687088353_1525981865" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19562"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Microsoft-MacOutlook/16.39.20071300 Cc: chophi To: 44368@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 01 11:53:18 2020 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 1kZAz4-0004v0-GT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 11:53:18 +0100 Original-Received: from localhost ([::1]:58740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZAz3-0003fw-It for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 05:53:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZAys-0003fZ-G0 for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 05:53:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZAys-0005nt-6i for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 05:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZAys-0006mG-5i for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 05:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: chophi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Nov 2020 10:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44368 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.160422798026042 (code B ref -1); Sun, 01 Nov 2020 10:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2020 10:53:00 +0000 Original-Received: from localhost ([127.0.0.1]:35731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZAyk-0006ls-Jj for submit@debbugs.gnu.org; Sun, 01 Nov 2020 05:53:00 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ7Y2-0007eH-N5 for submit@debbugs.gnu.org; Sun, 01 Nov 2020 02:13:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZ7Y2-0006Jm-I6 for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 02:13:06 -0500 Original-Received: from out203-205-251-27.mail.qq.com ([203.205.251.27]:50498 helo=qq.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZ7Xt-0003BS-Vd for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 02:13:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1604214754; bh=nXXxYD+8TT1BdNjobIyIDniroCecLMsDVPDZYzfn3sM=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=CCIy/IZmEuWpMtCUlPnBgZeXD5As74FH8VHKGc1QoU1ko1qaLLylMnFS7J7Jv3VqE JJP/OaH3ueiYqEtIOhx1zP2al5OqGHbXvT42svLORMsJC82e8ItGUQs2AzlFwRziF+ xpMOG90W2U4XeVSQmWidqEMHkz+rjjbIcYnb5nhQ= Original-Received: from [192.168.0.100] ([167.179.75.238]) by newxmesmtplogicsvrszc6.qq.com (NewEsmtp) with SMTP id 32012491; Sun, 01 Nov 2020 15:12:32 +0800 X-QQ-mid: xmsmtpt1604214752t7pvsq9nh X-QQ-XMAILINFO: M+pbw04SHGHoKN6OD0WRFS7dhLmIB2ZhRZ2+JVE2OS5gAS5SJ2dDs08QL5rmWP tDftv+EJW3T9EuzUzhCG7RJpax26udH0BPurfgrqkyCbiv9JS3XHaGxAm4WHLPKlemzKDrUdraeF 7tYAcF0daGJjwmb5Tmg1kkpfgi7Fsu1LrI78m4vwVr109hESH+J75rIgENiwuvybYxJzVl1cWEdO DnkUnTepAyFGmJ0WehW64e0trBoKbf4nV/vnxW+gUYonZW0qOCV4myToTAMJB6/MRy98J51pqdsh HjVvmv0vy4xlOyCuXYP/LGzrMHgWYCyTR/84jBNBr8UTmVwDoKwE2ImN7dA3oILrf3DCW8te0vJA U0VSFQH8+QKroEJK6PjDjh8AMBAJOr+72PfVAQ5Z4zNjhSyBEZWrmi4yqs5lif1IdjoqqjufK1UV o0AWlK6rb9tbZgKHdCfroxZrtoVLCQIbPSFMR8qkKhASx/l6ABhoiHglaAM/4obyOUl8wrvEB5wi t+QqjBhipTdESulQXsUe/nIH9GqrkCn2VWGjN/acrR7vB4Uxau99nRN8cqMXVy0tqPKiaTENoJCC 2l4/RtGMlzZmwoFJZte5/r9kQrp8TcOJsArP/+iA43lYtavs3zr6Vg1kp3sU/aMHdQAeLboV6pjy Ny+gsB5oEHClrvDvk7D/UbBANK8XZ/Vu0905sVA4tob90N9n+6hB0TQrr3pKHS5udERSVDnbhPQ7 mwASr8V831vHCXK/fRtPGDTOVzFkHRxNNpJ9wXFabSxBdeCeQ66B+pwqNBHjNmE/3lGWnGjUEAED Oll8XeSQSs/6a6N6mMsLO7 X-OQ-MSGID: <56D6D270-B049-4BC4-8EA9-9F67A7A86597@foxmail.com> Thread-Topic: 27.1; emacs term can't be interrupted when running a subjob over ssh which output too fast In-Reply-To: Received-SPF: pass client-ip=203.205.251.27; envelope-from=chophi@foxmail.com; helo=qq.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/01 02:12:36 X-ACL-Warn: Detected OS = Linux 3.x [generic] X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 01 Nov 2020 05:52:53 -0500 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:192339 Archived-At: > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3687088353_1525981865 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit Hi, The problem happens when I ssh to a remote host inside emacs terminal, and trying to interrupt a subjob which output verbose log in a very fast speed. For example, the below command can mimic the situation (run in the ssh client insde the emacs terminal): (The C-c C-c was supposed to execute term-interrupt-subjob). $ while true; do echo I\'m outputing verbose logging; done; # C-c C-c can't interrupt but if I add a sleep in the while loop, it can be interrupted $ while true; do echo I\'m outputing verbose logging; sleep 1; done; # C-c C-c can interrupt the subjob I have tried the same in the iTerm, and found the subjob can be interrupted immediately. BTW, I have asked the same question in https://stackoverflow.com/questions/64525361/emacs-term-cant-be-interrupted-when-running-a-subjob-over-ssh-which-output-too, unfortunately get no answer, so, I'm taking the chance to ask for help here. Regards, Yang In GNU Emacs 27.1 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2)) of 2020-10-31 built on CpLarge.local Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.7 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. command-execute: Buffer is read-only: # Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@27/27.1/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@27/27.1 --with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained' Configured features: RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term disp-table easymenu comint ansi-color ehelp ring tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 49143 7169) (symbols 48 6596 1) (strings 32 17190 1410) (string-bytes 1 580741) (vectors 16 10571) (vector-slots 8 131365 12720) (floats 8 19 43) (intervals 56 201 0) (buffers 1000 12)) --B_3687088353_1525981865 Content-type: text/html; charset="UTF-8" Content-transfer-encoding: quoted-printable

Hi,

 

The problem happens when I ssh to= a remote host inside emacs terminal,

and trying to interrupt a subjob which output verbose log in a very

fast speed. For example, the below= command can mimic the situation (run in the ssh client insde the emacs term= inal):

(The C-c C-c was supposed to execute= term-interrupt-subjob).

 <= o:p>

$ while true; do echo I\'m outpu= ting verbose logging; done; # C-c C-c

can't interrupt

 

but if I add a sleep in the while l= oop, it can be interrupted

 = ;

$ while true; do echo I\'m out= puting verbose logging; sleep 1; done; #

C-c C-c can interrupt the subjob

 

I have tried th= e same in the iTerm, and found the subjob can be

interrupted immediately.

 

BTW, I have ask= ed the same question in

unfor= tunately get no answer, so, I'm taking the chance to ask for help=

here.

 

Regards,

Yang

 

 

In GNU Emacs 27.1 (build 1, x86_64-apple-= darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2))

=

of 2020-10-31 built on CpLarge.local

Windowing system distributor 'Apple', ver= sion 10.3.1894

System Descriptio= n:  Mac OS X 10.15.7

&= nbsp;

Recent messages:

For information about GNU Emacs and the G= NU system, type C-h C-a.

command= -execute: Buffer is read-only: #<buffer *terminal*>

Configured using:

'configure --disable-dependency-tracking --disable-silent-rules<= o:p>

--enable-locallisppath=3D/usr/loca= l/share/emacs/site-lisp

--without-db= us --with-imagemagick --with-modules --with-rsvg --with-ns

--disable-ns-self-contained'

=

 

C= onfigured features:

RSVG IMAGEMA= GICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB

TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GM= P

 

Important settings:

  value of $LC_ALL:

  value of $LC_COLLATE: en_US.UTF-8

  value of $LC_CTYPE: en_US.UTF-8=

  value of $LC_MESSAGES: en_US.U= TF-8

  value of $LC_MO= NETARY: en_US.UTF-8

  = value of $LC_NUMERIC: en_US.UTF-8

  value of $LC_TIME: en_US.UTF-8

  value of $LANG: en_US.UTF-8

  locale-coding-system: utf-8-unix=

 

Major mode: Lisp Interaction

 

Minor modes in effe= ct:

  tooltip-mode: t<= o:p>

  global-eldoc-mode: t=

  eldoc-mode: t<= /o:p>

  electric-indent-mode: t

  mouse-wheel-mode: t

  tool-bar-mode: t=

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode:= t

  font-lock-mode: t=

  blink-cursor-mode: = t

  auto-composition-m= ode: t

  auto-encrypti= on-mode: t

  auto-comp= ression-mode: t

  line= -number-mode: t

  tran= sient-mark-mode: t

 

Load-path shadows:

None found.

 

Features:=

(shadow sort mail-extr emacsbug message rm= c puny dired dired-loaddefs

form= at-spec rfc822 mml mml-sec password-cache epa derived epg epg-config

gnus-util rmail rmail-loaddefs text-pro= perty-search time-date subr-x seq

byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode=

mail-parse rfc2231 mailabbrev gmm-ut= ils mailheader cl-loaddefs cl-lib

sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term

disp-table easymenu comint ansi-col= or ehelp ring tooltip eldoc electric

uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win<= o:p>

ucs-normalize mule-util term/com= mon-win tool-bar dnd fontset image

regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode<= o:p>

lisp-mode prog-mode register pag= e tab-bar menu-bar rfn-eshadow isearch

timer select scroll-bar mouse jit-lock font-lock syntax facemenu=

font-core term/tty-colors frame mini= buffer cl-generic cham georgian

= utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean<= /p>

japanese eucjp-ms cp51932 hebrew greek roma= nian slovak czech european

ethio= pic indian cyrillic chinese composite charscript charprop

case-table epa-hook jka-cmpr-hook help simple abbr= ev obarray

cl-preloaded nadvice = loaddefs button faces cus-face macroexp files

text-properties overlay sha1 md5 base64 format env code-pages = mule

custom widget hashtable-pri= nt-readable backquote threads kqueue cocoa ns

lcms2 multi-tty make-network-process emacs)

 

Memory information:

((conses 16= 49143 7169)

(symbols 48 6596 1)=

(strings 32 17190 1410)

(string-bytes 1 580741)

<= /div>

(vectors 16 10571)

(vector-slots 8 131365 12720)

(floats 8 19 43)

(= intervals 56 201 0)

(buffers 100= 0 12))

 

--B_3687088353_1525981865--