From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +GiUMrlSMWaibgEAe85BDQ:P1 (envelope-from ) for ; Tue, 30 Apr 2024 22:21:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +GiUMrlSMWaibgEAe85BDQ (envelope-from ) for ; Tue, 30 Apr 2024 22:21:13 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=jyd6daLJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714508458; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8gab/+UBmMgOkdXROpJ5FC5BXV7iSN/Iyw9vjCNld+0=; b=JixzOZiEE9wG5njK42D4QqJAvdF+nE7zGJpIGsi6R6wYuoABhN6JDw0RpMcGVD640nATWm 0sES8/1TbzYmS0AvREAXr+oSK4Zzeo1t1MPNqgcjQuk6q9h8ztyb9pm5jgKYV/Sg/ypxPW JYS9PnyUN9dU0WvwO8z29A/9v7ob3fkht6dGKQwiG7QL5XrO7Z9/E4nwrObsXQJ30fP34S GBHarDLMPA2MPJuwufJbjt9GHz5qiphAdxTwFtfLUmdhTaJiKHE4UewxIzwPKAnmEeTwh3 VRxFjlahRJyl9oNpDXFMkT3BHzGnSpqsr4ZnXYXQAnj6W/asA2wNwTQQyA32pA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=jyd6daLJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714508458; a=rsa-sha256; cv=none; b=X+SxzHrBdZaI8YU7tPkFCrcPovQxakh3dbz5ifiaFfSX6Pjw92fFTWrKbnAjgDhd7aKNBj hEjasnCuGyjeYRPOnOgQona1V3dTl2GFlvRMdwaarCsGa3UJ4Netep5lBotLVoUiJV99JV ZOJGlqnCxToytIPEzLXQ3Vdwn7Qq2t3504QPgSGLLeSAB6UZjW+vl2C2hLGPIZ8dwkrNsL 43eFZoUDfLGTLjec9m8sWksEuYVCfxrzm/UlW3TDxvcf6bFiZbE4DoaIhuLmnQYVB5grpN 2da731nZd1uAN/U6Cws+ELSq7iaL85OC+WbClegrYnvuNA6hSg0uQBcL2jklyA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F21EB10CCC for ; Tue, 30 Apr 2024 22:20:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1ty0-0007ab-8b; Tue, 30 Apr 2024 16:20:44 -0400 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 1s1txy-0007aR-Jz for guix-patches@gnu.org; Tue, 30 Apr 2024 16:20:42 -0400 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 1s1txx-0005AZ-SG for guix-patches@gnu.org; Tue, 30 Apr 2024 16:20:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s1tyI-0008RK-Cj for guix-patches@gnu.org; Tue, 30 Apr 2024 16:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70226] Fwd: I haven't been able to trigger this bug Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Apr 2024 20:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70226 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Dale Mellor Cc: 70226@debbugs.gnu.org Received: via spool by 70226-submit@debbugs.gnu.org id=B70226.171450844632429 (code B ref 70226); Tue, 30 Apr 2024 20:21:02 +0000 Received: (at 70226) by debbugs.gnu.org; 30 Apr 2024 20:20:46 +0000 Received: from localhost ([127.0.0.1]:33074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1ty2-0008Qz-D6 for submit@debbugs.gnu.org; Tue, 30 Apr 2024 16:20:46 -0400 Received: from mail-108-mta155.mxroute.com ([136.175.108.155]:33731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1txx-0008Qt-0f for 70226@debbugs.gnu.org; Tue, 30 Apr 2024 16:20:44 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta155.mxroute.com (ZoneMTA) with ESMTPSA id 18f30aa4d430008ca2.001 for <70226@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 30 Apr 2024 20:20:18 +0000 X-Zone-Loop: 554609b77a63aae11174827120bdd93e81c6c16ffd6f X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8gab/+UBmMgOkdXROpJ5FC5BXV7iSN/Iyw9vjCNld+0=; b=jyd6daLJRWSvCNRiofUvzoZtPL GFffgZELXoOyEBSm52O1pqYMDUIplLUdRHHbsoAF4SYhFgv86cp59EfTnaHtSwQM8GYr8AW6ybAlu zXfgzPHj3BwCpnYSzU2H4GtiyZz5PqNowu0jA0mgGZ6l7nLMdF92qTmLwF5VC4h8PoLCNYwP1kCoj Mt+R6kuSvx2zaD2DtuMY5cJ6yMpIxFNwj/XnVVVKeQ9wqPzVR1whiTtCHSrhL2S58qEgvhlipQc6N Mx0JdFnhu1SyGvWLsM0IxwY7PkQKFZzgV+V+a0ks0UfrqeiZeHrUHo22176kzxFd9W3Y+ERFeAuQa esWuks7Q==; From: Richard Sent In-Reply-To: <7138c2308cad21abb86f0ef0095904a9b4030c1a.camel@rdmp.org> (Dale Mellor's message of "Tue, 30 Apr 2024 18:54:40 +0100") References: <7138c2308cad21abb86f0ef0095904a9b4030c1a.camel@rdmp.org> Date: Tue, 30 Apr 2024 16:20:10 -0400 Message-ID: <87edamd2md.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.55 X-Spam-Score: -4.55 X-Migadu-Queue-Id: F21EB10CCC X-Migadu-Scanner: mx13.migadu.com X-TUID: mvpV2+7hu2kV Hi! Dale Mellor writes: > Can you give a command-line use-case which actually triggers this bug? Certainly. I've replicated this issue on guix a1ffa8a with: $ guix search "" $ guix system search "" $ guix home search "" guix search "" takes ~30 seconds before the bug occurs. (Once the first result is printed to stdout.) system search and home search are basically instant. That's probably due to the smaller pool of candidates. Working on this a bit more the problem isn't the regex search itself. Instead, I'm confident it has to do with the highlighting performed by display-search-results when passed a list containing a "" regex. The issue does not occur for system search with just the following diff: --8<---------------cut here---------------start------------->8--- modified guix/scripts/system/search.scm @@ -189,5 +189,4 @@ (define (guix-system-search . args) (leave-on-EPIPE (display-search-results matches (current-output-port) #:print service-type->recutils - #:regexps regexps #:command "guix system search"))))) --8<---------------cut here---------------end--------------->8--- V1 of this patch shouldn't be merged. The bug should be fixed in display-search-results's highlighting logic instead. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.