GNU bug report logs - #70223
Search for empty string uses excessive memory

Previous Next

Package: guix;

Reported by: Athena Martin <secure <at> alm.website>

Date: Fri, 5 Apr 2024 20:18:01 UTC

Severity: normal

To reply to this bug, email your comments to 70223 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#70223; Package guix. (Fri, 05 Apr 2024 20:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Athena Martin <secure <at> alm.website>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 05 Apr 2024 20:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Athena Martin <secure <at> alm.website>
To: bug-guix <at> gnu.org
Subject: Search for empty string uses excessive memory
Date: Fri, 5 Apr 2024 16:16:13 -0400
[Message part 1 (text/plain, inline)]
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
""
''
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#70223; Package guix. (Sat, 06 Apr 2024 01:14:03 GMT) Full text and rfc822 format available.

Message #8 received at 70223 <at> debbugs.gnu.org (full text, mbox):

From: Richard Sent <richard <at> freakingpenguin.com>
To: Athena Martin <secure <at> alm.website>
Cc: 70223 <at> debbugs.gnu.org
Subject: Re: bug#70223: Search for empty string uses excessive memory
Date: Fri, 05 Apr 2024 21:13:23 -0400
Patch submitted at https://issues.guix.gnu.org/70226.

-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.




Information forwarded to bug-guix <at> gnu.org:
bug#70223; Package guix. (Tue, 30 Apr 2024 17:48:01 GMT) Full text and rfc822 format available.

Message #11 received at 70223 <at> debbugs.gnu.org (full text, mbox):

From: Dale Mellor <guix-devel-0brg6a <at> rdmp.org>
To: 70223 <at> debbugs.gnu.org
Subject: I haven't been able to trigger this bug
Date: Tue, 30 Apr 2024 18:46:37 +0100
Can you give a command-line use-case which actually triggers this bug?

Thanks.





Information forwarded to bug-guix <at> gnu.org:
bug#70223; Package guix. (Tue, 30 Apr 2024 17:57:02 GMT) Full text and rfc822 format available.

Message #14 received at 70223 <at> debbugs.gnu.org (full text, mbox):

From: Dale Mellor <guix-devel-0brg6a <at> rdmp.org>
To: 70223 <at> debbugs.gnu.org
Subject: Scratch: Re: I haven't been able to trigger this bug
Date: Tue, 30 Apr 2024 18:55:42 +0100
Sorry, sent to wrong bug.




This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.