From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Koch Newsgroups: gmane.emacs.bugs Subject: bug#12145: Fix causes problems with other processes Date: Thu, 2 Mar 2023 18:08:14 +0200 (EET) Message-ID: <1196619804.249665.1677773294263@office.mailbox.org> References: <202231886.202734.1677754136372@office.mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30447"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Albinus , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: "12145@debbugs.gnu.org" <12145@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 02 17:09:23 2023 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 1pXlUf-0007aq-Hq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Mar 2023 17:09:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXlUP-0000pL-Oa; Thu, 02 Mar 2023 11:09:05 -0500 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 1pXlUN-0000os-Be for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 11:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXlUM-0004lW-OJ for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 11:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXlUM-0005Yx-2q for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 11:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Koch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Mar 2023 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12145 X-GNU-PR-Package: emacs Original-Received: via spool by 12145-submit@debbugs.gnu.org id=B12145.167777330621341 (code B ref 12145); Thu, 02 Mar 2023 16:09:02 +0000 Original-Received: (at 12145) by debbugs.gnu.org; 2 Mar 2023 16:08:26 +0000 Original-Received: from localhost ([127.0.0.1]:58195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXlTm-0005Y9-1U for submit@debbugs.gnu.org; Thu, 02 Mar 2023 11:08:26 -0500 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]:36354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXlTj-0005Xs-Js for 12145@debbugs.gnu.org; Thu, 02 Mar 2023 11:08:24 -0500 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PSGH33zmkz9sZX; Thu, 2 Mar 2023 17:08:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koch.ro; s=MBO0001; t=1677773295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rb/UGSfBKzBTyohVEu8AkmSSeBRQU6+MTtEsJRic5Iw=; b=vN9ErsuLxduOW3oqEF42ApF1fFEsFdJfl4z4PT64TwavQVR82qJy4Y1IN/Hzkc+pCwsZmj 6qHSBsztb4FHiKU4jT6SGEJ3Idft2VJEsn6X4nfTEI0Ll31gyWiQQQOHOdwKaYFTenoBkS 5yPcFbgpu6maYkRm7G0rsmjG5xXes50Qe3IdNAkdzCw0ZU5n1XaZ+T2IYSvzqvvbUKEvq3 NNWRK8dJ+Zio7zjvyitRsark42fZd5IIGDiWo8XqYEVYtfPhmbOFN4vUQcLzEaWAb2W3fu le9aJ70JPfEbr+6i7QF/Ie8uWo4XDMP3O8V+NvuM22BnjjjRjsfSzKQYxbFvUA== In-Reply-To: <202231886.202734.1677754136372@office.mailbox.org> X-Priority: 3 Importance: Normal 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:257169 Archived-At: The problem identified by the first backtrace still exists even with the patch for this bug from 2012. It happens, when find-name-dired on a remote system returns very fast (or maybe when the output is very short?), e.g. when called on an empty directory. The function `find-dired` starts a background shell process: (shell-command (concat args "&") (current-buffer)) A few lines later, the function asks for the process and uses it without any error checking: (let ((proc (get-buffer-process (current-buffer)))) (set-process-filter proc (function find-dired-filter)) I assume, that get-buffer-process returns nil when the process has already terminated. I don't have an idea about the second backtrace yet. But given that the code of find-name-dired seems problematic, this might be a motivation to not search for a fix in tramp but in find-name-dired (and called functions).