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#50043: 28.0.50; USABLE_SIGOI undef code paths do not work correctly Date: Wed, 17 Nov 2021 09:19:27 -0500 Message-ID: References: <874kbtfthj.fsf@gnus.org> <835yw9cwoa.fsf@gnu.org> <87mtpla013.fsf@gnus.org> <83zgtlbaw6.fsf@gnu.org> <87fsvcuttw.fsf@gnus.org> <83czn12uz1.fsf@gnu.org> <837dd80zc7.fsf@gnu.org> <92d3e509-be73-88c8-0085-f13c3716dd1b@cornell.edu> <83sfvuzzy5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15892"; 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.3.1 Cc: larsi@gnus.org, 50043@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 15:24:24 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 1mnLrM-0003xA-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 15:24:24 +0100 Original-Received: from localhost ([::1]:47682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnLrL-0002FA-2k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 09:24:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnLn8-00025d-C2 for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 09:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnLn8-0004e5-1x for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 09:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnLn7-0002Sa-T5 for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 09:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2021 14:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50043 X-GNU-PR-Package: emacs Original-Received: via spool by 50043-submit@debbugs.gnu.org id=B50043.16371587799408 (code B ref 50043); Wed, 17 Nov 2021 14:20:01 +0000 Original-Received: (at 50043) by debbugs.gnu.org; 17 Nov 2021 14:19:39 +0000 Original-Received: from localhost ([127.0.0.1]:60498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnLmk-0002Re-Up for submit@debbugs.gnu.org; Wed, 17 Nov 2021 09:19:39 -0500 Original-Received: from mail-mw2nam10on2125.outbound.protection.outlook.com ([40.107.94.125]:12769 helo=NAM10-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnLmh-0002RG-TV for 50043@debbugs.gnu.org; Wed, 17 Nov 2021 09:19:37 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a6e5j2MDFp/85bJE0lTGbfJvmfvgNW+Zf38qQ40H+MGlYq6wES06CAayeBUUOgPSJ6cKr0zqY1RKPRf/z8ZuL++cl4hP3OfBjkmoImQINi9k1TA5dT0YJ0Ppz0waOVbbfi6eeIYgA8FVoh9uIimnVSLmTMWpW3vizgb5h5YX8itLoRqo1k8EvKvRO5289sVs05P/9sKwD+bBVbnzEULdsOja4vX33RprlEUv6SN2pFPwbv/gLUcZy2MeU/Hb3on+epbQH0ujiiWQ3Gofg0f4dWLu985Fh17c46VsKCTyirU9uEWSGamKK5S2TJHeFydlm/Kcj3eZxl3qPPDnGLAwwg== 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=t1JMP60mmLAUHpZdhdySYHdTcLc6enhlncAeXvc4XT4=; b=jl18GEel4Wlcgwy3KABKWh5c3ZKYmMetu6I1otRk3osnHhkDlwDHXipU8QvRfs58w68kmU7P0hdCeVMi8rbfZLhM2F01kPGKOBBmxIyU7EzQxh4/NcR4X9IkmnuIej7T2ergfQHY+qjOLMt1yNol3A7TBg2IPJvcO3H6kd7SxG44Vk24Ng0HxBfDveCFkAfzmzLBoA1gNXeCgBWvvkuCuRIGxXC6iYWdffOhlP+h/xA6yemRcjAsnXJ8oXTrR7uQilQuv9qvHmJSM1e1aAadtZbd9CLdnBVYQX2hiog263C8pNp10RzVv53JU3HXdvm3MKU/noJ452dD3BFPwXNJHQ== 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=t1JMP60mmLAUHpZdhdySYHdTcLc6enhlncAeXvc4XT4=; b=ec5y8EDANIW6jHtrDZgsulRIvYWeFoJDBYkRjezh9dQ0d4mGoB29+G6vjks6MALERZ+oc+XBFM0tkZQ3PNkMUaYwFkvFENxS48ETU98eWo3g7sOBcxFM7D/y6pXPtUh3SYTtV+uQd1HGaf5w2vewNatw82VKgxCXY4+S2oyaiws= 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 BN6PR04MB0658.namprd04.prod.outlook.com (2603:10b6:404:d2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19; Wed, 17 Nov 2021 14:19:29 +0000 Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::88c4:79c5:1eb1:b969]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::88c4:79c5:1eb1:b969%7]) with mapi id 15.20.4690.027; Wed, 17 Nov 2021 14:19:29 +0000 Content-Language: en-US In-Reply-To: <83sfvuzzy5.fsf@gnu.org> X-ClientProxiedBy: CH2PR07CA0031.namprd07.prod.outlook.com (2603:10b6:610:20::44) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) Original-Received: from [IPV6:2603:7081:7e3f:3419:1c5d:e1a9:7b:59ab] (2603:7081:7e3f:3419:1c5d:e1a9:7b:59ab) by CH2PR07CA0031.namprd07.prod.outlook.com (2603:10b6:610:20::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.25 via Frontend Transport; Wed, 17 Nov 2021 14:19:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4325a2a4-a5ef-43c2-ab69-08d9a9d54458 X-MS-TrafficTypeDiagnostic: BN6PR04MB0658: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Q8x5AxJgNvRln1/sExhlNSls1P9SEtB546LrimVPW7PHNKE97N+jAgjCdrweW6KbhKSrCOyanY70EyWtE8HTmM+vuIFMTPKgY7RhGWE7GTOmjVevGRul9PMk+TY3bg5dQN2Y9SQzkXqD0s1Mpfb89lRQsPuZJSNR169tHO25Zof39VDGoP8Pd4by3qZAuS5e2A152cwuIH+IxS60pUfH8KnsMPnDzd3pBY8qSNBdolOmyHWvzne68AB5ewgaxtFpZxOAg0Xw0qqqrCbLom4bWa65ZQQ79iwGYxHDHW572FIX3dQyWFJMGoyi67zfE59idU0vZUXuw99+6LIHzb3YJbD9tTCpXW9KYYH00+1KamuS1yJfcP4bjf7VA9zbLeBdAIa4uUSeA/K8rlLezudHpdTzznMO763qsGlmjBxcPbz0PNGhYhjVHYjj9X/Cf8UIM0PfD00NHkSkSxfSnUYKgRyQEoFA4okiFULPW0GFAs4DjCcdTMsurgiiFJhKPdb1kaSGeaXlkG7yrAC3ZIKf3P8mx3rEX+KUZnuJvqAEqEWULULOgm8XhVivOYsxnyaPUG+MlOHsA99Q/mfjknPJIE1uO+aL5mCbsiq8UKlHqAa+adumA/iTUKElT/XDOfiXhV+7mTgOvWfcmT6WxsmoT+s498YASjqjnTzvIuX6DSw/SNg1qAunVV9gAgCMjZwV19lTV7fLaDEgkdWkEDuCTDe/myD47fobQ8Sjx/G8bM= 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:(4636009)(366004)(508600001)(2616005)(86362001)(186003)(2906002)(31686004)(66556008)(66476007)(6916009)(31696002)(66946007)(53546011)(8676002)(75432002)(8936002)(83380400001)(38100700002)(5660300002)(316002)(786003)(36756003)(6486002)(4326008)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EqlL4Ebt3l74NK9CL8pA4rHKVHLa4skRgY/vR/99PGKWE4hOrysZFvGT4klUbBeUGdH6OpwO0qt6esnvCph3e9wEE7A1Ed3uKVTfSVVr4fE91oqZmPhBuzzawDLqjeR31tAV9/6iOnhVAjAmByLRdUN8lgescw2LUJMiPlvZ44avg5Tjs50t4VViiphlAeQQMVAOXYgdoHsZZekFo+COvSCnLqud6CC3hTt1WHYAnd6lVulv6xW9mdVtTH5zGuchFq+iQyEK4VBAiYWjmAKX89Lcy7KTFTdkotptbU1u0scLYDoyiszfEWSo37Zgd8rhvudEIUw2r5aIQUtWQNmMtE/mKv4t2PcsSzZ/0FDFZmpfGvYAdU13jVZYtyKRdVpZiLVPpY9AL/UjONZej9bzLsO+Pqt21wukQQdAjMgxuDjIeFnmicQ0jPgDnhSunccn8Untdmi/FsBJJI4GJLAhKQdPg5AGBoFX4u1HOzOLDkNicGrQy0RFtngusbtsaYb8jlrVNfKHYbMgBgXo1HBDBl0tsdDVBuiMTW/XorOxPx+dE0CS4EMCljxLm67hfMvFE8oCKoveQcD6URG3UV1Ji+Kx+9lVTgwIs74PTwVUJkjTkQCInu0ON40dTJohvfGfHraxD4IiaFr9GjbblZPnqF0SMn5zT5UgQGokFqkRtssnF7f8niW3glHSzPiOiT+QtJ/Kb0nrosRs3IAahmq8ezrZfLXExby5uwub1piF02BDoQw3twTs79BnnI QTxKDAy+dXueYXbgdtYNb7oxRaSE7kxITeLQv2We70g0tpDlSYKeoI4ej9Jqv7E65vVfRdRo6HLLtNTWbTIBt4Q2aFHgSueqmL X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 4325a2a4-a5ef-43c2-ab69-08d9a9d54458 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2021 14:19:29.0984 (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: 8Dpd8n77p9/mjSsvd8OMy9EYE9lshrinLGc5Tg6LIW7rQuy5hr0ryU8F3F9JUwBp5gCXf+bNAkLFi1kiKbAicw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0658 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:220204 Archived-At: On 11/17/2021 8:14 AM, Eli Zaretskii wrote: >> Date: Tue, 16 Nov 2021 18:06:51 -0500 >> Cc: larsi@gnus.org, 50043@debbugs.gnu.org >> From: Ken Brown >> >> Are you talking about having x_get_foreign_selection call >> wait_reading_process_output in a loop? > > Yes. > >> That would fix this particular bug, but I was thinking of trying to >> solve a more general problem. > > What is that more general problem, and when does it rear its ugly > head? The problem is that whenever wait_reading_process_output needs to repeatedly check for input (i.e., read_kbd || !NILP (wait_for_cell) == true), it can get stuck in select for up to 2 seconds on systems without USABLE_SIGIO. (2 arises here because it's the default value of polling-period.) I don't know offhand when it rears its ugly head aside from the X selection case we're discussing. We would only know about it if someone notices an unexpected delay, finds a recipe for reproducing it, and reports it as a bug, as happened here with bug#29170, which is what led to the present bug report. And look how long it took before the cause of that delay was discovered. So I think it's better to fix the general (potential) problem, not just the X selection case. Ken