Search for empty string uses excessive memory

  • Open
  • quality assurance status badge
Details
3 participants
  • Dale Mellor
  • Richard Sent
  • Athena Martin
Owner
unassigned
Submitted by
Athena Martin
Severity
normal
A
A
Athena Martin wrote on 5 Apr 22:16 +0200
(address . bug-guix@gnu.org)
20240405161613.5412f76d@alm.website
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
""
''
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEELAGoSzc6nHIdbhP+S8DcQuG8sXMFAmYQXA0ACgkQS8DcQuG8
sXOk9ggA3TVDCRVuBe6P6tkCTX1SThmcYzcNyhuZBqO5SzWr5gyYjjJGGCrvKG8B
IC0XiPitFV/E7/hO4UMiNv19YSVFE8bA6p3X6xgRtYi8JP3240b0fBiyxXpv5yMl
0NghtTmZva4khWeYEOU43Vq93TaF0vhVyhR5xaN4FyXd9lkKKRYJ8BZK7W1KIzbq
ijHLvJ/b32/AELJYJC2wIIarCjCg/mBbDSgdblwNc2XrUoRArwAyPs3aJnVcNPxt
DZzETphirgy14wH0HnqqxjNLyMwcMg+VY+VCpCj9Bh0WZtKjEXNzLi33vABowVya
Q5GNu0Eu4zI6X/70TuR2DOss7NrKIg==
=Jg8w
-----END PGP SIGNATURE-----


R
R
Richard Sent wrote on 6 Apr 03:13 +0200
(name . Athena Martin)(address . secure@alm.website)(address . 70223@debbugs.gnu.org)
87v84vl2do.fsf@freakingpenguin.com

--
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.
D
D
Dale Mellor wrote on 30 Apr 19:46 +0200
I haven't been able to trigger this bug
(address . 70223@debbugs.gnu.org)
c8f353af06d4a9291e11a60e96bf5b4bcab7d33e.camel@rdmp.org
Can you give a command-line use-case which actually triggers this bug?

Thanks.
D
D
Dale Mellor wrote on 30 Apr 19:55 +0200
(address . 70223@debbugs.gnu.org)
aa0bbd73465f606fe109b05c7f1b2869336efbb9.camel@rdmp.org
Sorry, sent to wrong bug.
?