From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 05 16:17:11 2024 Received: (at submit) by debbugs.gnu.org; 5 Apr 2024 20:17:11 +0000 Received: from localhost ([127.0.0.1]:37626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rspzq-0004vW-41 for submit@debbugs.gnu.org; Fri, 05 Apr 2024 16:17:11 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rspzk-0004ui-PC for submit@debbugs.gnu.org; Fri, 05 Apr 2024 16:17:08 -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 1rspzY-00037I-Sa for bug-guix@gnu.org; Fri, 05 Apr 2024 16:16:53 -0400 Received: from picard.hosts.alm.website ([68.183.153.197] helo=mail.alm.website) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rspzX-0004KZ-Gd for bug-guix@gnu.org; Fri, 05 Apr 2024 16:16:52 -0400 Received: from localhost (unknown [IPv6:2001:470:8:694:2ef0:5dff:fe62:37e]) by mail.alm.website (Postfix) with ESMTPSA id 081ED20140 for ; Fri, 5 Apr 2024 20:16:19 +0000 (UTC) Date: Fri, 5 Apr 2024 16:16:13 -0400 From: Athena Martin To: bug-guix@gnu.org Subject: Search for empty string uses excessive memory Message-ID: <20240405161613.5412f76d@alm.website> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/MS.hxpydsWN1JdUa=hiex34"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=68.183.153.197; envelope-from=secure@alm.website; helo=mail.alm.website X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_PBL=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --Sig_/MS.hxpydsWN1JdUa=hiex34 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I ran $ guix system search "" A minute later, my desktop froze. I did it again with htop running and saw that memory usage climbed right up to the full 32GiB in my (swapless) machine. Right as it reached that point, the freeze recurred. I haven't tested but it seems likely this same issue would occur with guix search and guix home search as well. The best fix I can think of is to refuse to search for an empty string without --force. I looked for the following on issues.guix and found no existing bug: empty string empty search guix search system search home search service search package search "" '' --Sig_/MS.hxpydsWN1JdUa=hiex34 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEELAGoSzc6nHIdbhP+S8DcQuG8sXMFAmYQXA0ACgkQS8DcQuG8 sXOk9ggA3TVDCRVuBe6P6tkCTX1SThmcYzcNyhuZBqO5SzWr5gyYjjJGGCrvKG8B IC0XiPitFV/E7/hO4UMiNv19YSVFE8bA6p3X6xgRtYi8JP3240b0fBiyxXpv5yMl 0NghtTmZva4khWeYEOU43Vq93TaF0vhVyhR5xaN4FyXd9lkKKRYJ8BZK7W1KIzbq ijHLvJ/b32/AELJYJC2wIIarCjCg/mBbDSgdblwNc2XrUoRArwAyPs3aJnVcNPxt DZzETphirgy14wH0HnqqxjNLyMwcMg+VY+VCpCj9Bh0WZtKjEXNzLi33vABowVya Q5GNu0Eu4zI6X/70TuR2DOss7NrKIg== =Jg8w -----END PGP SIGNATURE----- --Sig_/MS.hxpydsWN1JdUa=hiex34-- From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 05 21:13:48 2024 Received: (at 70223) by debbugs.gnu.org; 6 Apr 2024 01:13:48 +0000 Received: from localhost ([127.0.0.1]:37845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsucu-00014V-Gx for submit@debbugs.gnu.org; Fri, 05 Apr 2024 21:13:48 -0400 Received: from mail-108-mta246.mxroute.com ([136.175.108.246]:46773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsucq-00014H-9E for 70223@debbugs.gnu.org; Fri, 05 Apr 2024 21:13:47 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta246.mxroute.com (ZoneMTA) with ESMTPSA id 18eb0f7d41b0003bea.002 for <70223@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 06 Apr 2024 01:13:35 +0000 X-Zone-Loop: 1edd7393dfcf159445a2733478c1d2c6d9774d76b64e 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=aHWd1CVBZJypDZipgYob6wWIluqE49bG9GGQLTqXNFk=; b=Ey7OvPIbOlGm0cVg49f/Q8zIXI c+LWC1Ka/MRuev8cYNtkgLvHLT3yG1l5035CTLzVq56V46QLKxLYFk1/NaPngF5/tRWmseZkteOiZ xcLR9zTdgqZ8fyyWxlegMQ9B5v6zz1XIObdaQnH3GwZ2WxXI4T4kxd7bERgd/T/3s3BRssqzSFabK dr0fmtBz5owhA0in0yQYxYSdEKfMcxna92nLI5kyfj1Ltyyj3s5/F9iVokpam0k1UiF+ijqhixnDR +NHY4AMCwv5aXeUNdKZCtMjqGapBoPMoLlIZi+A29CoNF/p/kgzJtwbIwF1+WUEXND3p1h+U5JunA u3pGW3uw==; From: Richard Sent To: Athena Martin Subject: Re: bug#70223: Search for empty string uses excessive memory In-Reply-To: <20240405161613.5412f76d@alm.website> (Athena Martin's message of "Fri, 5 Apr 2024 16:16:13 -0400") References: <20240405161613.5412f76d@alm.website> Date: Fri, 05 Apr 2024 21:13:23 -0400 Message-ID: <87v84vl2do.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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70223 Cc: 70223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Patch submitted at https://issues.guix.gnu.org/70226. -- Take it easy, Richard Sent Making my computer weirder one commit at a time. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 30 13:47:08 2024 Received: (at 70223) by debbugs.gnu.org; 30 Apr 2024 17:47:08 +0000 Received: from localhost ([127.0.0.1]:60610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1rZM-0006Yt-F1 for submit@debbugs.gnu.org; Tue, 30 Apr 2024 13:47:08 -0400 Received: from [195.15.247.228] (port=6685 helo=rdmp.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1rZJ-0006YW-MF for 70223@debbugs.gnu.org; Tue, 30 Apr 2024 13:47:06 -0400 Received: from [127.0.0.1] (helo=[IPv6:::1]) by rdmp.org with esmtp (Exim 4.96.1) (envelope-from ) id 1s1rYr-0006jK-2M for 70223@debbugs.gnu.org; Tue, 30 Apr 2024 17:46:38 +0000 Message-ID: Subject: I haven't been able to trigger this bug From: Dale Mellor To: 70223@debbugs.gnu.org Date: Tue, 30 Apr 2024 18:46:37 +0100 Organization: DM Bespoke Computer Solutions Ltd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Can you give a command-line use-case which actually triggers this bug? Thanks. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 70223 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Can you give a command-line use-case which actually triggers this bug? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 30 13:56:11 2024 Received: (at 70223) by debbugs.gnu.org; 30 Apr 2024 17:56:11 +0000 Received: from localhost ([127.0.0.1]:60660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1ri7-0006ls-EO for submit@debbugs.gnu.org; Tue, 30 Apr 2024 13:56:11 -0400 Received: from [195.15.247.228] (port=1423 helo=rdmp.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1ri5-0006lm-QU for 70223@debbugs.gnu.org; Tue, 30 Apr 2024 13:56:10 -0400 Received: from [127.0.0.1] (helo=[IPv6:::1]) by rdmp.org with esmtp (Exim 4.96.1) (envelope-from ) id 1s1rhf-0006jY-0s for 70223@debbugs.gnu.org; Tue, 30 Apr 2024 17:55:43 +0000 Message-ID: Subject: Scratch: Re: I haven't been able to trigger this bug From: Dale Mellor To: 70223@debbugs.gnu.org Date: Tue, 30 Apr 2024 18:55:42 +0100 In-Reply-To: References: Organization: DM Bespoke Computer Solutions Ltd Content-Type: text/plain Content-Transfer-Encoding: 7bit User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry, sent to wrong bug. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 70223 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Sorry, sent to wrong bug.