From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christian Johansson Newsgroups: gmane.emacs.bugs Subject: bug#33135: 27.0.50; (make-thread) TRAMP interactive freeze macOS 10.14 Date: Tue, 6 Nov 2018 18:50:30 +0100 Message-ID: <112C9286-C8BE-4869-ACFC-07905FFD6A44@cvj.se> References: <20181024105344.GB40431@breton.holly.idiocy.org> <871s8fd2e3.fsf@gmx.de> <87d0ryqv9a.fsf@gmx.de> <874lcv1vo4.fsf@gmx.de> <22698038-514D-48FF-89AA-EDB24984BEB0@cvj.se> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-E13DD021-9FAE-40F3-ACF3-4669E23A2C9D Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1541526554 5918 195.159.176.226 (6 Nov 2018 17:49:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2018 17:49:14 +0000 (UTC) Cc: 33135@debbugs.gnu.org, Alan Third To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 06 18:49:10 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 1gK5TR-0001QJ-Pj for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2018 18:49:10 +0100 Original-Received: from localhost ([::1]:42396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK5VY-0007A7-52 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2018 12:51:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK5VR-00079z-6R for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2018 12:51:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK5VL-00032t-7r for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2018 12:51:13 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33383) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK5VG-0002w7-J5 for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2018 12:51:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gK5VG-0002Pg-B6 for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2018 12:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christian Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Nov 2018 17:51:02 +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.15415266449253 (code B ref 33135); Tue, 06 Nov 2018 17:51:02 +0000 Original-Received: (at 33135) by debbugs.gnu.org; 6 Nov 2018 17:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:37641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK5Ux-0002PB-UN for submit@debbugs.gnu.org; Tue, 06 Nov 2018 12:50:44 -0500 Original-Received: from cvj.se ([31.192.230.63]:48093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK5Uv-0002P2-NX for 33135@debbugs.gnu.org; Tue, 06 Nov 2018 12:50:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=GAcA9XwARa3+GocUl0aMfKvITFYG+e4iXYC0JiAPftA=; b=SskMhXnpKomdHI6I8TgcEQtBmx9VHIn180RnEHQRqJ1791S5mnZJ7uTSrk4tYxLha1Frw7E3gueGugZ27JsN2dqqlQNc+Q3yCiGUfCzU8TLmft1/96QJgGpumyScspKsy40YIm61JG+2bQcaEEuqX1cSc61cYqwoOTa6sUrGxKc=; Original-Received: from m77-218-242-15.cust.tele2.se ([77.218.242.15] helo=[100.90.146.15]) by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1gK5Ut-00038d-PC; Tue, 06 Nov 2018 18:50:40 +0100 X-Mailer: iPhone Mail (16A404) In-Reply-To: <22698038-514D-48FF-89AA-EDB24984BEB0@cvj.se> 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:152107 Archived-At: --Apple-Mail-E13DD021-9FAE-40F3-ACF3-4669E23A2C9D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I was wrong, interactive threaded tramp over ange-ftp on macos doesn=E2=80=99= t work. I have got more crashes lately after I updated branch, not sure if e= rrors help but here are some: ;; Opening remote file=20 emacs(16737,0x700004306000) malloc: *** error for object 0x11cb50885: pointe= r being freed was not allocated emacs(16737,0x111d105c0) malloc: *** error f= or object 0x7ffeefbfb610: pointer being freed was not allocated emacs(16737,= 0x700004306000) malloc: *** set a breakpoint in malloc_error_break to debug e= macs(16737,0x111d105c0) malloc: *** set a breakpoint in malloc_error_break t= o debug Fatal error 6: Abort trapAbort trap: 6 logout Saving session... ...s= aving history...truncating history files... ...completed. ;; Renaming file over SSH via tramp=20 objc[40791]: Invalid or prematurely-freed autorelease pool 0x10200b1c0. Fata= l error 6: Abort trapAbort trap: 6=20 ;; another local sudo emacs(41111,0x70000c892000) malloc: *** error for object 0x70000d093530: poi= nter being freed was not allocated emacs(41111,0x70000c892000) malloc: *** s= et a breakpoint in malloc_error_break to debug Fatal error 4: Illegal instru= ctionAbort trap: 6=20 ;; another remote dired over SSH emacs(40323,0x1181f95c0) malloc: *** error for object 0x103337305: pointer b= eing freed was not allocated emacs(40323,0x1181f95c0) malloc: *** set a brea= kpoint in malloc_error_break to debug > 5 nov. 2018 kl. 16:39 skrev Christian Johansson : >=20 > Alright, I=E2=80=99ll see if I can get the error again. I only got it like= 2 times in 8 hours so it=E2=80=99s not frequent. >=20 > I tried user-interaction via threaded ange-ftp tramp on macOS and it seem= s to work on your branch. I will try it a bit more this week. >=20 > Regards > Christian >=20 >> 5 nov. 2018 kl. 14:49 skrev Michael Albinus : >>=20 >> Christian Johansson writes: >>=20 >>> Hi Michael >>=20 >> Hi Christian, >>=20 >>> I haven't experienced a single crash since I started using your >>> threaded tramp branch but I sometimes get errors like this, but it >>> doesn't make Emacs crash, I can just retry same operation and it will >>> work. It seems like sometimes a thread is busy and Emacs tries to >>> access it in some way and this error occurs, I have replaced sensitive >>> information with --- below >>>=20 >>> Debugger entered--Lisp error: (error "Attempt to accept output from >>> process *ftp ---...") >>> accept-process-output(#) >>> ange-ftp-wait-not-busy(#) >>> ange-ftp-raw-send-cmd(# "type ascii" nil >>> (#f(compiled-function (result line host user cmd msg cont nowait) >>> #) "---" "---" "type ascii" nil nil nil) nil) >>=20 >> Looks like the ange-ftp process is not assigned to the proper thread. As >> said, ange-ftp is a special case, it wasn't handled yet. >>=20 >> I've pushed a fix to the feature/tramp-thread-safe branch; should work >> now. Could you pls retest? >>=20 >>> I haven't tried threaded tramp that requires user-interaction yet >>> though since I got ~/.authinfo.gpg working with ange-ftp, I'll see if >>> I can test that this week >>=20 >> Likely, this won't work. Nobody has provided a fix for this problem, yet.= >>=20 >>> Regards >>> Christian >>=20 >> Best regards, Michael. --Apple-Mail-E13DD021-9FAE-40F3-ACF3-4669E23A2C9D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I w= as wrong, interactive threaded tramp over ange-ftp on macos doesn=E2=80=99t w= ork. I have got more crashes lately after I updated branch, not sure if erro= rs help but here are some:

=
<= div dir=3D"ltr">&n= bsp;;; Opening remote file 
emacs(167= 37,0x700004306000) malloc: *** error for object 0x11cb50885: pointer being freed was not allocated emacs(16737,0x111d105c0= ) malloc: *** e= rror for o= bject 0x7ffeefbfb610: pointer being freed was <= span class=3D"keyword" style=3D"font-weight: bold;">not allocated emacs(16737,0x700004306= 000) malloc: *** set a breakpoint in malloc_error_break to debug emacs(16737,0x111d105c0= ) malloc: *** set a breakpoint in malloc_error_break to debug Fatal error 6: Abort trapAbort trap: 6= logout Saving session... ...saving history...truncating history files... ...completed.

;; Renaming file over SSH via tramp&= nbsp;
objc[40791]: Invalid or prematurely-freed aut= orelease pool 0x10200b1c0. Fatal error 6: Abort trapAbort trap: 6=  

 ;; another local sudo
emacs(41111,0x70000c= 892000) malloc: *** error for object 0x70000d093530: pointer being fre= ed was not alloc= ated emacs(41111,0x70000c892= 000) malloc: *** set a breakpoint in malloc_error_break to debug Fatal error 4: Illegal instructionAbort trap: 6 

;; another remote dired over SSH
emac= s(40323,0x1181f95c0) malloc: *** error= for obje= ct 0x103337305: pointer being freed was not allocated emacs(40323,0x1181f95c0= ) malloc: *** set a breakpoint in malloc_error_break to debug

5 nov= . 2018 kl. 16:39 skrev Christian Johansson <christian@cvj.se>:

Alright, I=E2=80=99ll see if I can get the error again. I= only got it like 2 times in 8 hours so it=E2=80=99s not frequent.
I tried user-interaction via threaded ange-ftp  = ;tramp on macOS and it seems to work on your branch. I will try it a bit mor= e this week.

Regards
Christ= ian

5 nov. 2018 k= l. 14:49 skrev Michael Albinus <michael.albinus@gmx.de>:

Christia= n Johansson <christian@cvj.se>= writes:

<= /blockquote>
Hi Mic= hael

Hi Christian,

I haven't experienced a s= ingle crash since I started using your
<= blockquote type=3D"cite">
threaded tramp bran= ch but I sometimes get errors like this, but it
doesn't ma= ke Emacs crash, I can just retry same operation and it will
work. It seems like sometimes a thread is busy and Emacs tries to
access it in some way and this error occurs, I have replaced sensi= tive
information with --- below
<= br>
Debugger entered--Lisp error: (error "Attempt to accept output fr= om
process *ftp ---...")
 accept-p= rocess-output(#<process *ftp ---@---*>)
 ange-= ftp-wait-not-busy(#<process *ftp ---@---*>)
 a= nge-ftp-raw-send-cmd(#<process *ftp ---@---*> "type ascii" nil<= br>
(#f(compiled-function (result line host user cmd msg cont nowait)=
#<bytecode 0x4ffee879>) "---" "---" "type ascii" ni= l nil nil) nil)

Looks like t= he ange-ftp process is not assigned to the proper thread. As
said, ange-ftp is a special case, it= wasn't handled yet.
=
I've pushed a fix to= the feature/tramp-thread-safe branch; should work
now. Could you pls retest?

I haven't tried threaded tramp tha= t requires user-interaction yet
though since I got ~/.auth= info.gpg working with ange-ftp, I'll see if
I can test tha= t this week

Likely, this won= 't work. Nobody has provided a fix for this problem, yet.

Regards
Christi= an

Best regards, Michael.
= --Apple-Mail-E13DD021-9FAE-40F3-ACF3-4669E23A2C9D--