From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#33135: 27.0.50; (make-thread) TRAMP interactive freeze macOS 10.14 Date: Wed, 24 Oct 2018 13:12:36 +0200 Message-ID: <871s8fd2e3.fsf@gmx.de> References: <20181024105344.GB40431@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540379470 27325 195.159.176.226 (24 Oct 2018 11:11:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2018 11:11:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Christian Johansson , 33135@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 13:11:05 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 1gFH45-00070o-0M for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 13:11:05 +0200 Original-Received: from localhost ([::1]:47553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFH6B-0002aj-2s for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 07:13:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFH61-0002Wi-R3 for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFH5y-0004Bh-CS for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFH5y-0004BU-7a for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFH5x-00047o-Vl for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2018 11:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33135-submit@debbugs.gnu.org id=B33135.154037957815847 (code B ref 33135); Wed, 24 Oct 2018 11:13:01 +0000 Original-Received: (at 33135) by debbugs.gnu.org; 24 Oct 2018 11:12:58 +0000 Original-Received: from localhost ([127.0.0.1]:39121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFH5u-00047W-1w for submit@debbugs.gnu.org; Wed, 24 Oct 2018 07:12:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFH5r-00047I-Uj for 33135@debbugs.gnu.org; Wed, 24 Oct 2018 07:12:56 -0400 Original-Received: from detlef.gmx.de ([79.140.120.250]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M4WNA-1fNRUI2kXs-00yk72; Wed, 24 Oct 2018 13:12:38 +0200 Original-Received: from detlef.gmx.de ([79.140.120.250]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M4WNA-1fNRUI2kXs-00yk72; Wed, 24 Oct 2018 13:12:38 +0200 In-Reply-To: <20181024105344.GB40431@breton.holly.idiocy.org> (Alan Third's message of "Wed, 24 Oct 2018 11:53:44 +0100") X-Provags-ID: V03:K1:MIJY9BA2WiCwdSJVklD1LRalSZLJEQcfsqJhGPJstkspHncvkKU NogF9yc0WznNLHFjYnprV/lhWT9IGZ1vZHDAZKybQDRUgwR5dFHD0BQ3oZrAW0NLQGnpwKN 6cQZ4Jc8YjqD1TSab5oW+YUObiQja/3yoRv5WbEwa02Pot4rkP+RRSfyUFxNw9suRkLQOfa JHnEJa4zuQfQUwLNReNYg== X-UI-Out-Filterresults: notjunk:1;V01:K0:VnDSDQFP02Y=:jS9PYxPdjcRBr9p3IZgUDy Jix9h8t1UhT+B8+m0OnzGgsbHtZ+JmK5uqmDzp4kTOHp96J3okDKZF6Us7nWBOmtiqLv4Ops4 /g4mvQHtkXL1zLlyZOgVWLL6tvCyrtSTBZQTxssel/Kp3+RYLo5HWiYxQ9Y/RTVe1NBI5O8nR dpFP2NqwkKpLJ+es1+vO22kumrwosr3CEotBCmWrkxplGIWLoup9TmmC6N1WEIDtpNuRkwPeY Rx6+GqvSU9R0h615BruysMweH4xTgxqTt/EzBEP0LplDnoIdAgWKJ10zNX+gTcYYWL0uTAHeb o9MP2VlQRFljbG3ZUaoC1xXanfuc52oCIljSk0j5Q7o5LFBzLGDdGLS4mrIRZvlvweByB/S+x BQIiAM76+o4OUorrNu/Qlq/c6/Bm5qd36R5idAkom/2QC4I4245y3UkRUGZ2vd9BZol1KTitj 6OQ1r9Sby6Y7JuMlKB0CKzE11frInHyP0OCIfa1UgCnIie0e0wfyFkkAYufPJa40Zwx0ZF8lW a5LOfyjPDRSPzYrXniFXWGAVw9XGFj2MDajNKIHM3xUW0zfuAhPz56zUXEWN6h8Av1qPRcfJ2 tGEB4PgLCOiuokAWU4RRLxWEwuy833Mf/eYi2IQ+mFtW17LobzbWz+8r7wRICsKa+vzK6nv8S gRVdsQajcokdJ05uclTIUTlqheSnGIOJjr7QntCHn6Md06GiG4hfoL6OuWf0rauxD00ng6WrT MaLDxRpq0dyIakRE3PpU2J9mGvKWu2iwSGckGiBnNBeKz38pyE1fwtYAuIo6YL1WvyRPdl+h 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:151546 Archived-At: Alan Third writes: >> Hi! Hi, >> Steps to reproduce: >> 1. Open Emacs without any configuration: src/emacs -Q >> 2. Make sure you are in *scratch* buffer >> 3. Paste following Emacs Lisp code: >>=20 >> ;; FTP URL: ftp.dlptest.com or ftp://ftp.dlptest.com/ >> ;; FTP User: dlpuser@dlptest.com >> ;; Password: e73jzTRTNqCN9PYAAjjn >> (make-thread (lambda() >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (message "Listing directory files..") >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (let ((files (directory-files >> "/ftp:dlpuser@dlptest.com@ftp.dlptest.com:/"))) >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (message "Opened directory") >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (message "Directory files: %s" files)))) >>=20 >> 4. Run M-x eval-buffer >> 5. Emacs asks for FTP password, paste in mini-buffer: e73jzTRTNqCN9PYAAj= jn >> 6. Emacs now hangs, asks for password again and you can't stop it using = C-g. >> You get error in terminal: > > The NS port currently doesn=E2=80=99t handle interactive functions from > threads very well. I suspect the problem is being caused by displaying > a message from the background thread. It's not only the NS port. There is a git branch feature/tramp-thread-safe dedicated to make Tramp thread-safe. However, this doesn't work well yet, see for example bug#25214 / bug#32426. Furthermore, the "ftp" method navigates from Tramp to Ange-FTP. I haven't tested this for being thread-safe; given that nobody has worked on this I would expect even more problems. Anyway, if you intend to continue to test this functionality, I recommend you to use the said branch. There are changes which make file visiting commands async aware, via a prefix command. "C-x & C-x C-f ..." is supposed to visit files asynchronously. This works for both local files and remote files; but for local files you'll see the difference for large files only. Best regards, Michael.