From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#56025: 29.0.50; em-extpipe-test-2 times out on EMBA and Cygwin Date: Sun, 19 Jun 2022 12:02:10 -0400 Message-ID: References: <8e21db9c-0100-998e-f280-81304e7ff61a@cornell.edu> <87mtecl82o.fsf@athena.silentflame.com> <40d9e52f-2041-b341-ff77-546ca7792791@cornell.edu> <87k09elrf8.fsf@athena.silentflame.com> <1de33903-4c55-e043-3754-726f7044f2d0@cornell.edu> <7e7daa2f-dbbc-cd0a-4958-2a2932b17837@gmail.com> <8974408d-91cd-aebd-7a5b-596a57bd640e@cornell.edu> <17d41105-b006-f9ad-af0b-ece84a7f5248@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34057"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 To: Jim Porter , Sean Whitton , 56025@debbugs.gnu.org, Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 19 18:03:14 2022 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 1o2xOK-0008fr-Co for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 18:03:12 +0200 Original-Received: from localhost ([::1]:49510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2xOJ-0006wc-7X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 12:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2xOA-0006ti-6G for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 12:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2xO9-0008Lm-T0 for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 12:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2xO9-00023h-Pc for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 12:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jun 2022 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56025 X-GNU-PR-Package: emacs Original-Received: via spool by 56025-submit@debbugs.gnu.org id=B56025.16556545467866 (code B ref 56025); Sun, 19 Jun 2022 16:03:01 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 19 Jun 2022 16:02:26 +0000 Original-Received: from localhost ([127.0.0.1]:52921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2xNX-00022k-1I for submit@debbugs.gnu.org; Sun, 19 Jun 2022 12:02:26 -0400 Original-Received: from mail-sn1anam02on2097.outbound.protection.outlook.com ([40.107.96.97]:51006 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2xNS-00022S-NR for 56025@debbugs.gnu.org; Sun, 19 Jun 2022 12:02:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VIifi+a5LKDn2idS4ymKXDGTgD6/D0BLXn8HAo0UWxtUv1W+GO9cKUHtHufzcGnHt24um6+lOhqW243l+gXz7A+qXru19ISzCMc+mB1xarqYb9ayGooeOJ7d58QZ0LnjX/cCcpKoTV5D/ygtTYV91XgSGZANz+QEP+diq9sCAuhRehZRXdz4YijWz7TdqTQ2eMPkul/3jJReTgTgwn+11Itrboi7Cb9u6qnvo77oCMpX6vNiAEo3I0lDHObOCWplQyDqSkwNs17LMPUcnrobDKFYT1finiK/wI0DjFqggfay5+rm/dbKZtCrGWXDB6bl1wm80PCKi3m1kZji/Suexg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i+X6HBbVttO8wjBc4PlKasaiXt5Uysok+dzWrg5tCBg=; b=XhXz2IzW26QfgE9TWVUWO+PYLl/t77+JGwOHuBJiXksfERRr40URT9G7rW/yOYVm/dxGX4SXNSwCB6FMfgVkTfOTNj9xLYIoKoggc1J8C3oAsmjBQ2j5a7btPSgjPCmBJQLuvGIZf859ehtBqcEtp2BMdNSPduwXKQFpxYtOVw0bUsVDCOLfce8eV+CYIqy1OXIia53YV2b6znqsCYTVvAu+uBRDgEVWAlk/B5tRqcdSzEntQ16COHbkPgEv/Tcvicj+a8dGsNpVkQw01OhQo6jHXE3DX3mXqr+G2WdTSnqFcT+NLIh8h4EWOdmNe7TzsslydiG7GPegccxOWArdTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i+X6HBbVttO8wjBc4PlKasaiXt5Uysok+dzWrg5tCBg=; b=TMI9kV9QhKczeYa4tqsQ7ryJxESOGjeRYjeu9wCm/vZxfmZXT+iKY9UNCWkPISOY0nNsEAgxq+LI/TE800r6kEAYrmieXdCcP1bM37Hg+ArJapImtw8tgwXsW+cytYRPVSRnpJO6R9bElt3Ou53sAal6z+J6SQyzbHdO+3/mu+4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) by BN8PR04MB5876.namprd04.prod.outlook.com (2603:10b6:408:71::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.16; Sun, 19 Jun 2022 16:02:11 +0000 Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::9db9:737b:d7ae:d913]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::9db9:737b:d7ae:d913%5]) with mapi id 15.20.5353.019; Sun, 19 Jun 2022 16:02:11 +0000 Content-Language: en-US In-Reply-To: <17d41105-b006-f9ad-af0b-ece84a7f5248@gmail.com> X-ClientProxiedBy: MN2PR05CA0052.namprd05.prod.outlook.com (2603:10b6:208:236::21) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ba38f4d-6d85-45fa-739f-08da520d11d2 X-MS-TrafficTypeDiagnostic: BN8PR04MB5876:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g2cG59Pxc9hZYt5jQOXBpU48QtLVMf21zBiWX3hIjk9vxDR7HoCb8T0s5HNPP1CGzi1NOCdpO3FCvzNRYR02mEiC4cQLiKErrgR8sYcZBsLmIoXu2Fva007p0hK5FpAM0vGurFvtDP1qF1VbRRfhoYn3Qu1nB4oP4O2AlGkoWRo6LsTn1NsxJztaoY+tQTDG9cZGSmDSif5OlPmwp/dCxQ+t5/+IweDu+cd6HxlYKD4uq9Nuu1QdmpNJSm6LU7cOdayOJF97qRdKGA0e2OUeMd81kQtcKMQp/r10tfh2BUT75xTHCpbtiHk4lyESalHOIY4SwRIqqFSFTtv2fb+DoKBGgoD1kHqiJyPAza3qJ8bOq7LGl7EFxkBfiNpHpQ2P9BNRSv49q7ZxLkTPSadxFIIMMNDrZmg4EF/tG4lWv2AJ4WCWakNn0twor5lp412qmhn6ty+vwbUoe+InqFGdKNkDvKK/cdWm76UxCDJzJGDM41Wusn7luFrJjFIryOXZl8IGqJaGKCfXysFp52P/u0dTxCfdy4gHC/2WaaRLkukDG4Jdvtg927jpNx27cfRHXGm2Yb+oGUMAVUSIsT9P+nFLqLzdfnY0bAKQt1ZhSVjX5lbXnHn6f38wF/kb/PTwX1t1yuGaZqMXe6/roGehNOd4ZDttLv9ukPgqmsXLPFngEI/W18eXm8zg2SReKT0LwgT18dI1xZ/StVyius1x3nMX15e51j01koTzAuYp/gQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(66556008)(66476007)(8676002)(66946007)(75432002)(2616005)(31686004)(186003)(83380400001)(36756003)(6506007)(6512007)(53546011)(5660300002)(31696002)(86362001)(8936002)(2906002)(38100700002)(6486002)(110136005)(316002)(786003)(498600001)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: B0AkTNja+WrXA97TOAvQI0IhtKSvsh2K/Q/aqGcMjIIoA8DRl2ImBRvF/bVLW4MLFoHDFNa8/V6wEHsLUWWlEp+HWE4pQskqRFr0H4tw4/aSumZLHxMltU0mZQhi7rwBMWrSiWEAWZFikLUguQaF0NSxyJSxGZPAKPwRhRjz6GByPK1dlouZvJk2Dh0jXQZGWGpqnzWX03v78JsbjNWSwuewUMO3zytPdRTwcfrfpYtAlm9hFehkjYmFxaE/6wnr3rWDfWAUMCiTBlaMRcDlE9o4Wd0V0fdlssXvSGH/HlnOYtiXcZZ40UXt7K5MjT0npm2vTIcUu2vl2lgL0y8XKH1QZjtnyzf330cTLJmMXd6YaD9RrJvE1DruP1W9aHFPRHmUhfAJbZFZM59yRatvEaHfS87dEK+VNqDLifNpuWepmQ5LVrpbFvYsvklmUgn8W83SzclOWDrmDrz2d1MUy18x/idUMY6xuZxd7rgFRmUgJyg6fhxfv/I0UyDlYGsunRYeEwu3nFBcLT5hlpWu6KakRQgOk/X7KviFeQ7BG7bzBmLtqWHC0jFpFA46k67BxEXSnYVOSdTL77x0Toaek2xhzgWZjLm44oCx0sGd5UGiU0LwfWLaZkxALSVVL97mXuIjwbPxY/NPj7U34VbIXrO55FROx29uBD8Silh22NZmd0cCPXuldwK5wxYKtTP/xmIvimvqZS2AM7kzV5Xm1wQ8ZB+Oimz57ONMC63j56ObVIwsuAhozfb4eD oh6oCm4gjwd/AKAyMYfztt33I0sov/4IvQlJfeYUpMJm5rXn9p4tnXoBZPGwZz5uMa+7PsCOYBBA0OMetaqhHZW0GOgfJb1YGB X-MS-Exchange-AntiSpam-MessageData-1: aApPrM7J6cW1jg== X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 5ba38f4d-6d85-45fa-739f-08da520d11d2 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2022 16:02:11.5434 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OWXA4WGTHPU0F6kcXZGrDTQoE5rbEAAO9g3DCIKbZrmvZI8eU92m3RYJWsmw2SNvm/CsndDM1pMCT0kPSVa3ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR04MB5876 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:234803 Archived-At: On 6/18/2022 6:00 PM, Jim Porter wrote: > On 6/18/2022 1:51 PM, Ken Brown wrote: >> On 6/18/2022 3:02 PM, Jim Porter wrote: >>> On 6/18/2022 10:52 AM, Ken Brown wrote: >>>> No, I'm seeing the same results on Emacs 28.  On both Emacs 28 and Emacs 29, >>>> rev is apparently not seeing EOF unless echo outputs a newline, so rev keeps >>>> waiting for input. >>> >>> Ah ha! Thanks for debugging this. The minimal fix then would be to change the >>> command in em-extpipe-test-2 to either of these: >>> >>>    echo -N "bar" | rev *>temp >> >> This doesn't work.  It still hangs when run interactively... > > Just to confirm, the above command hangs, but the following works, correct? > >   echo -N "bar" | rev Correct. >>>    *echo "bar" | rev *>temp >> >> This works interactively... > > All this makes me think that we could be dealing with a race condition in how > Eshell pipes I/O around. Maybe there's a timing issue in `eshell-close-target' > where we end up not sending EOF to the "rev" (or "sh") process? I think I've just discovered an anomaly in "rev" on Cygwin that could partially explain what I'm seeing. I'll investigate that before proceeding further. > I'd be interested to see the results if you ran `M-x trace-function' for > `eshell-close-target' and `process-status' before trying these commands. > `process-status' should return `run' when called from inside > `eshell-close-target'. If it doesn't, then we'd neglect to send EOF to "rev" (or > "sh"), which would cause a hang like what you're seeing. > > If that's not the issue, then I'm not sure what the issue would be exactly, but > poking around in `eshell-close-target', `eshell-insertion-filter', and > `eshell-sentinel' might yield some useful info. > >> My guess is that it's the latter, but I don't know if it's worth pursuing this >> if Cygwin and EMBA are the only platforms on which there's a problem.  Of >> course, there might be other platforms and no one has reported it. > > I think if we could figure out the real issue, it would be great to fix it. > Though if we can't, it would probably be ok to just fix the test by avoiding the > issue.