From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Iurie Marian Newsgroups: gmane.emacs.bugs Subject: bug#71709: Fix recent change in tramp-sh-handle-make-process Date: Sat, 22 Jun 2024 18:52:01 +0200 Message-ID: References: <87msneqeyn.fsf@gmx.de> <87iky1qvqu.fsf@gmx.de> <877cehql8y.fsf@gmx.de> <87zfrdp4m5.fsf@gmx.de> 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="38970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71709@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 22 19:32:58 2024 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 1sL4bh-0009t2-Je for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 19:32:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL4as-0006h1-En; Sat, 22 Jun 2024 13:32:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL4ao-0006fe-OR for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 13:32:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sL4ao-0000ty-FK for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 13:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sL4an-0005fa-U6 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 13:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Iurie Marian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2024 17:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71709 X-GNU-PR-Package: emacs Original-Received: via spool by 71709-submit@debbugs.gnu.org id=B71709.171907746721695 (code B ref 71709); Sat, 22 Jun 2024 17:32:01 +0000 Original-Received: (at 71709) by debbugs.gnu.org; 22 Jun 2024 17:31:07 +0000 Original-Received: from localhost ([127.0.0.1]:53804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL4Zu-0005dp-4g for submit@debbugs.gnu.org; Sat, 22 Jun 2024 13:31:06 -0400 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:45189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL3zK-0004CN-Hn for 71709@debbugs.gnu.org; Sat, 22 Jun 2024 12:53:19 -0400 Original-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4217990f997so22299275e9.2 for <71709@debbugs.gnu.org>; Sat, 22 Jun 2024 09:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719075133; x=1719679933; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gouT8AtXzYRxAF40dJYuDYxknuV84uswThw95WMj/pc=; b=RqVyKmKMC6TUVt0RZj6YjupjQdDRgEPQvYjKMbWrucv7dAy0kkULoAdbVBJlnKSA6F SpazzvlN/rBEHrwqCWMpFfh7A5q/YdLpSjk8/YP/ZtI0hIfY3JgudzvOY9HquZsP5p++ 5SeXCB8OUTStaXuvUXanqgJnwI5lYzR0BWCaxpJSgn3mz4WWzKx1y6qh5yHZtOYA3zdr ToOQ+vVBeUPYfVRd2FDmk2Nk2NAoBu5JzGWepZGP5+TfRd7lZY9I0FxCcJNZGZmbVq+w d3eRyVJn625YrvhPj/Fx+z/NRFm+EK1ZhVMzxbvr1n7LGQ7FJZf5C66P9k3n+tfVKGTf siSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719075133; x=1719679933; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gouT8AtXzYRxAF40dJYuDYxknuV84uswThw95WMj/pc=; b=GlTAvMDG9iuic6bbTnP7oP3+tqD7G80nqSB243e/5cY4FBJbcSolSiUkMeDcSxZ3gu xrQZKVpp1kS2SMFJYOySULNuJZYR/w1uNy6mariscm4ydcNdYKbJFmuT6rf7cBOcWxnD 5WUkkLWE8/9eghCGwSddDhlITP+41Zjh8ChI0N81+HS2phw7NV2MVB2GwF1MaKgrtrto W2PX47l8bB12u5+50EBNXcL033RiumnmcZ5g/oLFqpVkzraRPC9jO8MLV5W9cxVk/7Uu cpZWKbkpWjRbhDx7y/M18aYF3YcFkRoS1rGt0oFQGmm9JIALC8A8K/djq9EKovUkGLPh 5BKg== X-Gm-Message-State: AOJu0Yy+mYg4sVqUwGk9ytsYlHJMwtAwD7vo9zjXvAvGip/ea4LM98GV d/TJV5aMcPe5O9MZfY9kTWyfSH54nLxa+1j7Cpar5JtnzuxnJqgLVcUctu+gjUh7Ee/Y4S3KxYN CGTjnyu6HEMWAkwDr6AEQG6J3Ekwr0pQl8QY= X-Google-Smtp-Source: AGHT+IEJEeSZUDwaRkiGmOv9eAIikUpK7sfC9wpOuQKR6ePC75EpxQnXknr2Z44bmvxrdxEXyYFkw0FwSvNjlwr7CsI= X-Received: by 2002:a05:600c:138e:b0:424:7bcf:2486 with SMTP id 5b1f17b1804b1-42489e3708fmr9275825e9.4.1719075132649; Sat, 22 Jun 2024 09:52:12 -0700 (PDT) In-Reply-To: <87zfrdp4m5.fsf@gmx.de> X-Mailman-Approved-At: Sat, 22 Jun 2024 13:31:05 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287724 Archived-At: Unfortunately, the patch doesn't help. By the way, this is what I noticed: * the issue seems to occur more often in a docker container * over /ssh it is working well, or at least it never occurred * the temporary buffers like ~/tmp/tramp.J0RZDc~ are actually created on remote * after repetitive tests I noticed that it doesn't reproduce anymore and I added a line to print the default-directory right before `make-process` for stderr: ~lisp/net/tramp-sh.el:3057~ - when it fails, the default-directory is on local host - when it succeeds - it's on remote (where I guess it finds that temporary file) * on emacs restart it starts reproducing again * once it starts working, it never reproduces again until emacs restart It looks like it has something to do with `stderr` process execution environment. On Sat, 22 Jun 2024 at 14:02, Michael Albinus wrote: > > Michael Albinus writes: > > Hi Iurie, > > > Thanks for the recipe. I've played with it. Most cases, it works as > > expected, but sometimes I see a similar error. Looks like a race > > condition. I'll debug further. > > Well, I've found something suspicious in the code. Could you, pls, apply > the appended patch to tramp.el in your Emacs Lisp directory? Since it > changes a macro, you must remove all tramp*.elc files, and run 'make' > afzerwards. > > >> Kind Regards, > >> Iurie > > Best regards, Michael. >