From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33252: 27.0.50; Recursive password prompt takes over Date: Sun, 04 Nov 2018 01:41:41 +0200 Organization: LINKOV.NET Message-ID: <87k1ltafuy.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541291784 14264 195.159.176.226 (4 Nov 2018 00:36:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2018 00:36:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 33252@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 04 01:36:20 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ6Op-0003aX-7A for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2018 01:36:19 +0100 Original-Received: from localhost ([::1]:57173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJ6Qv-0005oX-42 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2018 20:38:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJ6Qd-0005UU-P0 for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:38:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJ6QU-0003gh-V6 for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJ6QU-0003eS-Mc for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJ6QU-0005ls-IT for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2018 00:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33252 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154129184722134 (code B ref -1); Sun, 04 Nov 2018 00:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2018 00:37:27 +0000 Original-Received: from localhost ([127.0.0.1]:33235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ6Pv-0005kv-3k for submit@debbugs.gnu.org; Sat, 03 Nov 2018 20:37:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ6Pt-0005kh-Q9 for submit@debbugs.gnu.org; Sat, 03 Nov 2018 20:37:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJ6Pk-0000xU-7j for submit@debbugs.gnu.org; Sat, 03 Nov 2018 20:37:20 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJ6Pg-0000mm-Uv for submit@debbugs.gnu.org; Sat, 03 Nov 2018 20:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJ6Pf-0004NH-Vw for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:37:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJ6Pb-00006U-Lx for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:37:11 -0400 Original-Received: from palegreen.birch.relay.mailchannels.net ([23.83.209.140]:42301) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJ6PV-00081o-LB for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 20:37:03 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 605BC12281A for ; Sun, 4 Nov 2018 00:36:57 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a80.g.dreamhost.com (unknown [100.96.35.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 24B8C122FED for ; Sun, 4 Nov 2018 00:36:57 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a80.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 04 Nov 2018 00:36:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Battle-Keen: 11bbff3319b06e8f_1541291817226_4007508150 X-MC-Loop-Signature: 1541291817226:3745046878 X-MC-Ingress-Time: 1541291817226 Original-Received: from pdx1-sub0-mail-a80.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a80.g.dreamhost.com (Postfix) with ESMTP id CD65A802E1 for ; Sat, 3 Nov 2018 17:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=jJgAQVYJprXh8OqhOoi4aD2cj34=; b=AK315/3PZ8UzjquYJ gHj79C+o0BnLPZIb4YhXkXqS0ttkqTroIQ7vUBmMuU3OhmIf6aEMiBjzPX1csJvF 0opDTD8axG5hnMAc1Ys05Sq+yF/hgfIEC5IEInmgsaQ9UqwI0miIGdhPHadNA4rM WBnIhAljnFIdtxi2bPqvl0IatI= Original-Received: from mail.jurta.org (m91-129-101-157.cust.tele2.ee [91.129.101.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a80.g.dreamhost.com (Postfix) with ESMTPSA id 01D75802DF for ; Sat, 3 Nov 2018 17:36:55 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a80 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrjedugddukeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrudehjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutddurdduheejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:151993 Archived-At: A bug in a shell script caused an infinitive stream of the same output lines: Password: sh: 1: read: Illegal option -s Password: sh: 1: read: Illegal option -s Password: sh: 1: read: Illegal option -s Password: sh: 1: read: Illegal option -s Password: sh: 1: read: Illegal option -s ... Currently Emacs handles such shell output very poorly and fails with the following backtrace: Debugger entered--Lisp error: (error "Variable binding depth exceeds max-specpdl-size") read-string("(In buffer *shell*) Password: sh: 1: read: Ill..." nil t nil) read-passwd("(In buffer *shell*) Password: sh: 1: read: Ill...") comint-send-invisible("Password: sh: 1: read: Illegal option -s\nPassword:...") comint-watch-for-password-prompt("Password: sh: 1: read: Illegal option -s\n\nPassword...") run-hook-with-args(comint-watch-for-password-prompt "Password: sh: 1: read: Illegal option -s\n\nPassword...") comint-output-filter(#> "Password: sh: 1: read: Illegal option -s\n\nPassword...") ... read-string("(In buffer *shell*) sh: 1: read: Illegal optio..." nil t nil) read-passwd("(In buffer *shell*) sh: 1: read: Illegal optio...") comint-send-invisible("sh: 1: read: Illegal option -s\nPassword: sh: 1: re...") comint-watch-for-password-prompt("sh: 1: read: Illegal option -s\n\nPassword: sh: 1: r...") run-hook-with-args(comint-watch-for-password-prompt "sh: 1: read: Illegal option -s\n\nPassword: sh: 1: r...") comint-output-filter(#> "sh: 1: read: Illegal option -s\n\nPassword: sh: 1: r...") ... read-string("(In buffer *shell*) sh: 1: read: Illegal optio..." nil t nil) read-passwd("(In buffer *shell*) sh: 1: read: Illegal optio...") comint-send-invisible("sh: 1: read: Illegal option -s\nPassword: sh: 1: re...") comint-watch-for-password-prompt("sh: 1: read: Illegal option -s\n\nPassword: sh: 1: r...") run-hook-with-args(comint-watch-for-password-prompt "sh: 1: read: Illegal option -s\n\nPassword: sh: 1: r...") comint-output-filter(#> "sh: 1: read: Illegal option -s\n\nPassword: sh: 1: r...") ... A reproducible short test case: 0. emacs -Q 1. M-& while true; do echo -n "Password: "; sleep 1; done RET After 42 seconds Emacs session becomes completely unusable, and control can be regained only after killing the shell script from outside Emacs.