From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#72117: Command doesn't execute correctly in eshell Date: Tue, 16 Jul 2024 19:09:32 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18643"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72117@debbugs.gnu.org To: the_wurfkreuz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 17 04:11:14 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 1sTu8P-0004ZI-NU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Jul 2024 04:11:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTu8D-0007Ww-0O; Tue, 16 Jul 2024 22:11:01 -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 1sTu8B-0007Wj-MT for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2024 22:10:59 -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 1sTu8B-0002pb-ES for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2024 22:10:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sTu8E-0006Qo-8v for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2024 22:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jul 2024 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72117 X-GNU-PR-Package: emacs Original-Received: via spool by 72117-submit@debbugs.gnu.org id=B72117.172118225324704 (code B ref 72117); Wed, 17 Jul 2024 02:11:02 +0000 Original-Received: (at 72117) by debbugs.gnu.org; 17 Jul 2024 02:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:34750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sTu84-0006QO-Oh for submit@debbugs.gnu.org; Tue, 16 Jul 2024 22:10:53 -0400 Original-Received: from mail-qv1-f45.google.com ([209.85.219.45]:59663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sTu83-0006Q8-Dd for 72117@debbugs.gnu.org; Tue, 16 Jul 2024 22:10:51 -0400 Original-Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6b624f4180bso32414756d6.3 for <72117@debbugs.gnu.org>; Tue, 16 Jul 2024 19:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721182183; x=1721786983; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=t7ouuH5iF8fw7b7LKfj9IfAiKDOYtBv026PpIzWRebE=; b=bwZI28qGpA/djGONyRBWNWMgwh9FgVyaw9j23qxBSIQBGTecuXOTdbfB7w2SxR83xZ pE/9yuUiJYmhc2mmXED7DAcr8/H6BqsIAkLQDoqbu/MEzLvUJjhEzCpRsIqCnRZxcyJo 9ynDG8C/nYWP5JRiMj2ybRyM2JaAvO75boDS6JiZRVoTzxgzgmImgVDrenSkTu4KC0xV ZgNwMnH1xTFOhlH+L51oLifc4mfhNa0c//j7Rb5H4r40TBXLC+WsOVy+NcRyYUw50FrX qGOZsfkRLWAUxPWAqXIifXSC+XDbOqcypXgtcpbgNWtqrVNCEOYncrv6nH5zvg/XRxT/ Yfaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721182183; x=1721786983; h=content-transfer-encoding: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=t7ouuH5iF8fw7b7LKfj9IfAiKDOYtBv026PpIzWRebE=; b=GRXJZWTyQyBJpCgF5p6ryZKb/3OkqczcAJZhgSMw2oGcGewzvI+vjVUywCGFDFotjM RHWiRnf4AO5TU/UA2TeuyF62wHZ60VkyNvauD+jrVu/KhO/a/c8JCQQ5IJJ7+mC+y46G PhMGgtT6ofq6Z3rKlZCYDLVYKn07WGN8429CFznngclaZnHqJLPUR9GvVv1+JNZjIqQC PGLyHHmuD+jMMwnVoQsgZS5yH8nU5J8cgNlRFpYwjX0/fxhkFglfIoL19to6fhy1de2F DYnp9od6mUdK23D0hoPLZs22iE0C5ef+xrf8na+5b/pBkMUC2ib1+OI3jOAZPu52fVfZ jJDA== X-Gm-Message-State: AOJu0YwsEJFbYvECnFFnWQI2bd2ltZhHTPVaJM8hhg/XbxmfIcUi6rwP LN3Cuf+dC6aixMuNpWWl3iGGBm6tBEpbfxeHaoglagcISGJoaDV5gQ4YBnnoakFPfkKZMP/TskF 5uyJC1+jHkfgc/8S3MNtqzHh6KoY= X-Google-Smtp-Source: AGHT+IFcqY/hZfSmC5XApA2mqzXwlsbVgFglp+dAWs0zKs5XazbPR52Eg+BAHEyqxQHPJjUbMOAf3Y1Al7g3tdTO33Q= X-Received: by 2002:a05:6214:410b:b0:6b5:8f79:7bc with SMTP id 6a1803df08f44-6b78ca5e8admr5071556d6.1.1721182182928; Tue, 16 Jul 2024 19:09:42 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288904 Archived-At: (Don't forget to Reply All so that Debbugs is CCed in your message, or else the tracker won't see your messages.) On Tue, Jul 16, 2024 at 2:14=E2=80=AFAM the_wurfkreuz wrote: > > I updated Emacs and used your latest patch. The problem with pipe is fixe= d as far as i can understand, but my original problem with executing the co= mmand through tramp (eshell/sudo) is still there, though it's elusive and h= ard to reproduce. Right now, i can't reproduce it launching bare Emacs (ema= cs -Q). And with my current config i was getting it around 50/50 of the tim= e. When i got it, i had this message: 'error in process filter: Forbidden r= eentrant call of Tramp'. After testing some more locally, I notice that too. Digging further, this problem is actually multifaceted, and fixing all the different issues I've uncovered would be too risky for Emacs 30. Does the first patch I posted work for you? That's a lot simpler, and should be safe enough for Emacs 30; then I can make more extensive fixes for Emacs 31. (The "Forbidden reentrant call of Tramp" is likely occurring when calling 'signal-process' on the "lsof" command, which could happen if some Tramp code is above us in the stack; in that case, 'signal-process' would reenter Tramp code, and then Tramp bails out just to be safe.)