From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mNGiB4xcEGZeZwAAqHPOHw:P1 (envelope-from ) for ; Fri, 05 Apr 2024 22:18:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mNGiB4xcEGZeZwAAqHPOHw (envelope-from ) for ; Fri, 05 Apr 2024 22:18:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712348299; a=rsa-sha256; cv=none; b=E/+rtXVGS0qyhbb/hN2s7bNZO2oEz/dGSY6fmT8JjAW69qpKEWsa0//mKP/umvNA390Hc3 FnxhjUfoUfvDtEFE6Y8ITeBBNmJ4wxGDOtQp72OkhzRFJMZmcD5z8xRtdY5fzxWT2NwtT3 2HZXT2nRBUgp7DjoEKRhrpPmaSN7kzGHtYpo713jzqUUL/EUOVf0W/gLBFpP8ecp6v7fw4 j5Nt9S+MOj0aXDDEtccYKmjt6/3bqgwNJ8YhU2A+fA8Ica9/NAoTAiDxvxjm802uXj555p bVMEwJosh1sBscb5yyVmR0iyQrV1yAcc9gGN3lihp3o7tz0/GanFWwpnG22hqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712348299; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=4XouzV6ry9XEHKCuUE6T7SNUdlEeEpcvQlFWk52W1uA=; b=gm6gceKmxhy92fd6qrrAkUhqM00JOPmAzAAIjMxdw1kd+OUJtIUDLwBed9cRCEX1FAlI1N iYsqByoThglYUuz87d2GYOE7I9AZMdyxvHlS5c12Ga8pmOQ3F06q5FXScBbeu5PIc+wM2z 9N/ILAsPjkNVd4hMoKEpx/CJprBtz7E+QLg3BeBZ2SQrGesMJXcdR735jYkkujOpM75jdg CaAj73Yf/oUqbrjxCZPhYAkoPaOzkNABdqbkr0LMr55ZzYRBTEYwYRvLuLzZErSjcWZG54 6FbBMg7ioI9NK8vi23IvaNVuXYWoSQMeZpwvbcAyoLIBkwryMTt6owU2CWiesw== 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 71F42EA5A for ; Fri, 5 Apr 2024 22:18:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsq0c-0003Kk-FS; Fri, 05 Apr 2024 16:17:58 -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 1rsq0a-0003Jc-JW for bug-guix@gnu.org; Fri, 05 Apr 2024 16:17:56 -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 1rsq0a-0004Vi-9L for bug-guix@gnu.org; Fri, 05 Apr 2024 16:17:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rsq0f-0004yk-Va for bug-guix@gnu.org; Fri, 05 Apr 2024 16:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70223: Search for empty string uses excessive memory Resent-From: Athena Martin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 Apr 2024 20:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70223 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 70223@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171234823118959 (code B ref -1); Fri, 05 Apr 2024 20:18:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Athena Martin From: Athena Martin via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -8.42 X-Migadu-Queue-Id: 71F42EA5A X-Migadu-Spam-Score: -8.42 X-Migadu-Scanner: mx10.migadu.com X-TUID: w8xR5pQgdZ26 --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--