From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mani Kancherla Newsgroups: gmane.emacs.bugs Subject: bug#50205: 27.2; crashes or hangs when opening a specific file using tramp Date: Fri, 27 Aug 2021 14:14:34 -0700 Message-ID: References: <83tujcu3f4.fsf@gnu.org> <835yvrs9sl.fsf@gnu.org> <87v93r9y8x.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000004af9e05ca90f9e2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1608"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50205@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 27 23:15:15 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 1mJjBz-00009J-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 23:15:15 +0200 Original-Received: from localhost ([::1]:48746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJjBy-0003QN-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 17:15:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJjBm-0003QF-Tv for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 17:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJjBm-0000nR-L8 for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 17:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJjBm-0001ht-A8 for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 17:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mani Kancherla Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Aug 2021 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50205 X-GNU-PR-Package: emacs Original-Received: via spool by 50205-submit@debbugs.gnu.org id=B50205.16300989016540 (code B ref 50205); Fri, 27 Aug 2021 21:15:02 +0000 Original-Received: (at 50205) by debbugs.gnu.org; 27 Aug 2021 21:15:01 +0000 Original-Received: from localhost ([127.0.0.1]:53103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJjBh-0001hK-Aq for submit@debbugs.gnu.org; Fri, 27 Aug 2021 17:15:01 -0400 Original-Received: from mail-io1-f48.google.com ([209.85.166.48]:44868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJjBb-0001h2-6w for 50205@debbugs.gnu.org; Fri, 27 Aug 2021 17:14:55 -0400 Original-Received: by mail-io1-f48.google.com with SMTP id g9so10276685ioq.11 for <50205@debbugs.gnu.org>; Fri, 27 Aug 2021 14:14:51 -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=feq2h559/w7U3/oIPp+R2kgwYy1ntHF1edDhFmZuEMw=; b=PJkerM7sZG3pljgQKf/12/KoHP7J96N8Ck8h/5J511IU6nNY2sK0OpLKvCd0CG8fHZ zP12n+BJ1dczoZT07qeFjG8hhxP7ggMPnXRL3YyNwqvooCEEXJ6Bxtnl1tbDv96Cn+sP OwXOcls5lDM2suEapfQ7++oW2pKGI9hSkbnw9gT/z279ZkLWlJfkx/3rtRDZ4C1sKEI7 IyB2aHAhJL/3DmljEuBJzqw202JqdQGTJiXA5XcxvE0ykGmZvbGe6xKub8R1NaVIB38v h4aVKbAn84SvmhHmq9NUYAMu/RzNfSUHeDtCsINXpRRJxjUA7qf3vmGrf4HT/Hqcu7Ae TEIg== 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=feq2h559/w7U3/oIPp+R2kgwYy1ntHF1edDhFmZuEMw=; b=mw8A599Ia7cUG2J97MwCsL1sdZMIdvCTq0UQ/0wlnq95c0xYQ+6WG/LXjX9lBk72vt z9WnWtK64R1rER5c5HN6QdXWhYWX0uRx1a6hB0fuYejwuprsAp2YgEDZkNWqXonxSZGB yvbtgpxrQCXLHchkbFxba98PoIUzLWhsEAXrAUCE2790be2FfaGfKSqsecez1G/L9YxS jtcc0/94zqiBvJZhrcPphB+LBmcbiIUJpa9N9G891Vj0gaXiemFG1qJ8AeaHzmjWpViQ mZ9B/2L7+eKdi5GRQl5ogo+gppSopSLSqqe6z61jTA4Oxtab4x0upH9w8H7N14yFPn9U tIuA== X-Gm-Message-State: AOAM5313/QoJPU6o66SU3H+PmaayReHIv416FquyPwa2WG5B3nQyAI2M 3rLrC0JA5knYWnR/NMr/CNkmWi7j72PMYEi/2Hs= X-Google-Smtp-Source: ABdhPJz1TuIuNJLfcWeaisYo9vX4R6C19MZHua2Ytm8N+ISt3+CFxpNrCJ99YFBQNFLfE+Gd5XmVMWVDo00nVXwzluM= X-Received: by 2002:a05:6638:521:: with SMTP id j1mr9743246jar.122.1630098885486; Fri, 27 Aug 2021 14:14:45 -0700 (PDT) In-Reply-To: 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:212846 Archived-At: --00000000000004af9e05ca90f9e2 Content-Type: text/plain; charset="UTF-8" I just did one more quick test. I renamed .emacs.d/elpa where I only have the newer version tramp to .emacs.d/elpa-bak. That seems to fix the problem. Mani On Fri, Aug 27, 2021 at 1:37 PM Mani Kancherla wrote: > Hi, > > I verified that "emacs -Q" has no issues. I can reproduce the issue > consistently without "-Q". Any information I can collect that will help > debug the issue? > > Thanks, > Mani > > On Thu, Aug 26, 2021 at 11:51 PM Michael Albinus > wrote: > >> Eli Zaretskii writes: >> >> Hi, >> >> > This backtrace is very strange. This part: >> > >> > frame #30: 0x00000001001bde9b emacs`ns_run_loop_break at >> nsterm.m:4760:5 [opt] >> > frame #31: 0x00000001001a9e6e >> emacs`sys_cond_broadcast(cond=) at systhread.c:183:3 [opt] >> > frame #32: 0x00000001001a9c59 >> emacs`lisp_mutex_unlock(mutex=) at thread.c:230:3 [opt] >> > frame #33: 0x00000001001a8af6 >> emacs`mutex_unlock_callback(arg=) at thread.c:339:7 [opt] >> > frame #34: 0x0000000100120264 >> emacs`flush_stack_call_func(func=, arg=) at >> alloc.c:4951:3 [opt] >> > frame #35: 0x00000001001a8ac5 >> emacs`Fmutex_unlock(mutex=0x0000000101c46065) at thread.c:355:3 [opt] >> > frame #36: 0x0000000100146bdb >> emacs`funcall_subr(subr=0x00000001002582f8, numargs=1, args=) >> at eval.c:2868:19 [opt] >> > frame #37: 0x000000010014625c emacs`Ffuncall(nargs=, >> args=) at eval.c:2795:11 [opt] >> > >> > says that funcall_subr calls Fmutex_unlock from line 2868 of eval.c, >> > but that is false. It could be that the debugger is not presenting >> > the full backtrace, because this is an optimized build, and some >> > backtrace frames are missing due to inlining. >> >> Does the problem also happen when calling "emacs -Q"? The GNU ELPA Tramp >> package contains some thread code, leftover from my attempts to add such >> support to Tramp (and which I hope to reanimate). It should be >> deactivated by default. >> >> The builtin version of Tramp does not contain this code. >> >> Best regards, Michael. >> > --00000000000004af9e05ca90f9e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I just did one more quick test. I renamed .emacs.d/elpa wh= ere I only have the newer version tramp to .emacs.d/elpa-bak. That seems to= fix the problem.
Mani

On Fri, Aug 27, 2021 at 1:37 PM Mani Kanche= rla <kancherla.mani@gmail.co= m> wrote:
Hi,

I verified that "emacs -Q&quo= t; has no issues. I can reproduce the issue consistently without "-Q&q= uot;. Any information I can collect that will help debug the issue?

Thanks,
Mani

On Thu, Aug 26, 2021 at 11:51= PM Michael Albinus <michael.albinus@gmx.de> wrote:
Eli Zaretskii <eliz@gnu.org> writes:

Hi,

> This backtrace is very strange.=C2=A0 This part:
>
>=C2=A0 =C2=A0 =C2=A0frame #30: 0x00000001001bde9b emacs`ns_run_loop_bre= ak at nsterm.m:4760:5 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #31: 0x00000001001a9e6e emacs`sys_cond_broadc= ast(cond=3D<unavailable>) at systhread.c:183:3 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #32: 0x00000001001a9c59 emacs`lisp_mutex_unlo= ck(mutex=3D<unavailable>) at thread.c:230:3 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #33: 0x00000001001a8af6 emacs`mutex_unlock_ca= llback(arg=3D<unavailable>) at thread.c:339:7 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #34: 0x0000000100120264 emacs`flush_stack_cal= l_func(func=3D<unavailable>, arg=3D<unavailable>) at alloc.c:49= 51:3 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #35: 0x00000001001a8ac5 emacs`Fmutex_unlock(m= utex=3D0x0000000101c46065) at thread.c:355:3 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #36: 0x0000000100146bdb emacs`funcall_subr(su= br=3D0x00000001002582f8, numargs=3D1, args=3D<unavailable>) at eval.c= :2868:19 [opt]
>=C2=A0 =C2=A0 =C2=A0frame #37: 0x000000010014625c emacs`Ffuncall(nargs= =3D<unavailable>, args=3D<unavailable>) at eval.c:2795:11 [opt]=
>
> says that funcall_subr calls Fmutex_unlock from line 2868 of eval.c, > but that is false.=C2=A0 It could be that the debugger is not presenti= ng
> the full backtrace, because this is an optimized build, and some
> backtrace frames are missing due to inlining.

Does the problem also happen when calling "emacs -Q"? The GNU ELP= A Tramp
package contains some thread code, leftover from my attempts to add such support to Tramp (and which I hope to reanimate). It should be
deactivated by default.

The builtin version of Tramp does not contain this code.

Best regards, Michael.
--00000000000004af9e05ca90f9e2--