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

Full log


View this message in rfc822 format

From: Athena Martin <secure <at> alm.website>
To: 70223 <at> debbugs.gnu.org
Subject: bug#70223: 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)]

This bug report was last modified 1 year and 106 days ago.

Previous Next


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