From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Bisson Newsgroups: gmane.emacs.bugs Subject: bug#49253: 27.2; Emacs non-responsive when pasting into terminal-mode Date: Mon, 28 Jun 2021 16:09:24 -0400 Message-ID: References: <83zgvand0j.fsf@gnu.org> <83wnqdoq6t.fsf@gnu.org> <83tulhoon5.fsf@gnu.org> <83sg11omxc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49253@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 28 22:10:25 2021 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 1lxxaL-0004jZ-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Jun 2021 22:10:25 +0200 Original-Received: from localhost ([::1]:38778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxxaK-0008HS-Es for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Jun 2021 16:10:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxxZy-0008GX-8X for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2021 16:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41257) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxxZx-0008Qo-US for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2021 16:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxxZx-0005G6-Pv for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2021 16:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Bisson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jun 2021 20:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49253 X-GNU-PR-Package: emacs Original-Received: via spool by 49253-submit@debbugs.gnu.org id=B49253.162491098620184 (code B ref 49253); Mon, 28 Jun 2021 20:10:01 +0000 Original-Received: (at 49253) by debbugs.gnu.org; 28 Jun 2021 20:09:46 +0000 Original-Received: from localhost ([127.0.0.1]:52800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxxZi-0005FT-AT for submit@debbugs.gnu.org; Mon, 28 Jun 2021 16:09:46 -0400 Original-Received: from mail-lf1-f51.google.com ([209.85.167.51]:38405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxxZf-0005Ey-6K for 49253@debbugs.gnu.org; Mon, 28 Jun 2021 16:09:44 -0400 Original-Received: by mail-lf1-f51.google.com with SMTP id w19so6262649lfk.5 for <49253@debbugs.gnu.org>; Mon, 28 Jun 2021 13:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cNFDofzihGaObOfHqqJ2HVpNlUxkNtFjsMxugxmx4xc=; b=qRntzue0mpRRJsIGYf+6MMXKUkRu7OLizX/7vaO6aJOxZVvSETlsZll4t0Zjbb/sYG N5S60YXHeshbClwpLokiVUYE96G/lF8Bjd2tnyG/RZrBgSdYqyt5I5n9h801HJncZSRk 6TfTgFv7FOZPdrUz1xVX1AHey+DGX5fR3n4OSbxL4s7+qR1rH2udr81nDBIEvs40++OU GOY8l5mC/AzgEFw3MKKZCT6ICRe9Md9aLq9KLA7FLzqMSQrEReeGRYzl4FyneUoyD2Hj DT3kfGRkPph5ZPI2hgMNpZ1cDjm3AaiZrGdgZj0OXeyFMjW/RVpp7ktihVY8bmLUz8KW cGNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cNFDofzihGaObOfHqqJ2HVpNlUxkNtFjsMxugxmx4xc=; b=G0nNRZsMTJHfcrdfHA7DwkXPP1Y4BPm3SqbJrCuKnyYQCLttRzfVosps3InQJXgejn 3XFq18uo6qHeC4MmxIip2m+4OdpwiyPRstyTO9hUikt6UAQPojt1cInPgbAtiMGIiIcb yFQDdiujLmqF2SHfuGyzM7lluCCLtp/6TcyKYf2hMaClrxEMR97ya9owlYaESEAzEq3a 95GqUCT0quT3sbMCx6qTgfEGghMQI0VN+t8XmI1vK9WdtkLc0KMdwOrKei4wt3mrrCEW 51SzNcxzUShszLaBMB2t94AV9sjfOxFwA6d3crqKSsMVREo05nEwse6rM0FLdknM0mqi /CdA== X-Gm-Message-State: AOAM5331gUEc+yVX2Y1lSi9wOlGZfJp0rqDADR7+wbZSsFayNDu3yzpD RvpGCLau7IU6j/iGNKcwkxwF2hsynqRZFuo9w9E= X-Google-Smtp-Source: ABdhPJwRCaHg/Jt8mz6zQ4YOQv7wSrjA042JZtKAwnaB4Dt0+Uvid+ukG4tOqOc1LAp302Ff8TeoMdfESDwCFEL0iVc= X-Received: by 2002:a19:4f07:: with SMTP id d7mr20628844lfb.447.1624910975618; Mon, 28 Jun 2021 13:09:35 -0700 (PDT) In-Reply-To: <83sg11omxc.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" Xref: news.gmane.io gmane.emacs.bugs:209082 Archived-At: That's described in the initial report. I see it's called "term-mode" not "terminal-mode" which was a brain-fart on my part. The steps (term-mode in step 2): 1. Start "emacs -nw" 2. M-x term 3. In another application (for the purposes of "exact keystroke, let's say, Alt-TAB to Firefox"), copy some text into the clipboard, it doesn't matter what. 4. Return to the Emacs session (click on the Terminal emulator, Alt-TAB, whatever*), and paste into the terminal (I used Command-V). 4* To be clear, return the cursor to the term-mode buffer (e.g., C-b *terminal* ). Inject any mount of delays or operations between steps 1, 2, 3, and 4. The bug essentially is "if you ever paste into term-mode buffers, you lose. On Mon, Jun 28, 2021 at 2:37 PM Eli Zaretskii wrote: > > > From: Matt Bisson > > Date: Mon, 28 Jun 2021 14:11:56 -0400 > > Cc: 49253@debbugs.gnu.org > > > > No. (Unless I'm misunderstanding what you're asking) the problem can > > occur at any time. It's in response to simply pasting from the > > clipboard into a terminal application. I can start Emacs, run for > > days normally -- using terminal-mode, editing files, and so forth. > > The second I go into the terminal-mode buffer and paste from the > > (Windows, Mac, whatever) clipboard (NOT using the Emacs yank command), > > the problem happens. > > Wait a minute: what do you mean by "terminal-mode buffer" into which > you need to go? More generally, can you describe a detailed recipe > for reproducing the problem on your system, keystroke by keystroke? > > > > No, it's the other way around: you start Emacs from GDB. There are > > > some instructions in etc/DEBUG. > > > > Yes, I do know that's what you mean :) but it's not as if Emacs is > > going to crash, and stop in the debugger. > > You are investigating the error message saying "Failed select". > Search the *.c files for that text, and you will find only 3 instances > of it. Put a breakpoint in all these 3 places, then do whatever it > takes to reproduce the problem, and you will be able to collect the > information I asked about.