all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Athena Martin via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 70223@debbugs.gnu.org
Subject: bug#70223: Search for empty string uses excessive memory
Date: Fri, 5 Apr 2024 16:16:13 -0400	[thread overview]
Message-ID: <20240405161613.5412f76d@alm.website> (raw)

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

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
""
''

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2024-04-05 20:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-05 20:16 Athena Martin via Bug reports for GNU Guix [this message]
2024-04-06  1:13 ` bug#70223: Search for empty string uses excessive memory Richard Sent
2024-04-30 17:46 ` bug#70223: I haven't been able to trigger this bug Dale Mellor
2024-04-06  1:05   ` [bug#70226] [PATCH] scripts: package: Disable searching with the empty string Richard Sent
2024-04-30 17:54     ` [bug#70226] Fwd: I haven't been able to trigger this bug Dale Mellor
2024-04-30 20:20       ` Richard Sent
2024-04-30 17:55   ` bug#70223: Scratch: " Dale Mellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240405161613.5412f76d@alm.website \
    --to=bug-guix@gnu.org \
    --cc=70223@debbugs.gnu.org \
    --cc=secure@alm.website \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.