unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70223: Search for empty string uses excessive memory
@ 2024-04-05 20:16 Athena Martin via Bug reports for GNU Guix
  2024-04-06  1:13 ` Richard Sent
  2024-04-30 17:46 ` bug#70223: I haven't been able to trigger this bug Dale Mellor
  0 siblings, 2 replies; 4+ messages in thread
From: Athena Martin via Bug reports for GNU Guix @ 2024-04-05 20:16 UTC (permalink / raw)
  To: 70223

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#70223: Search for empty string uses excessive memory
  2024-04-05 20:16 bug#70223: Search for empty string uses excessive memory Athena Martin via Bug reports for GNU Guix
@ 2024-04-06  1:13 ` Richard Sent
  2024-04-30 17:46 ` bug#70223: I haven't been able to trigger this bug Dale Mellor
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Sent @ 2024-04-06  1:13 UTC (permalink / raw)
  To: Athena Martin; +Cc: 70223

Patch submitted at https://issues.guix.gnu.org/70226.

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#70223: I haven't been able to trigger this bug
  2024-04-05 20:16 bug#70223: Search for empty string uses excessive memory Athena Martin via Bug reports for GNU Guix
  2024-04-06  1:13 ` Richard Sent
@ 2024-04-30 17:46 ` Dale Mellor
  2024-04-30 17:55   ` bug#70223: Scratch: " Dale Mellor
  1 sibling, 1 reply; 4+ messages in thread
From: Dale Mellor @ 2024-04-30 17:46 UTC (permalink / raw)
  To: 70223

Can you give a command-line use-case which actually triggers this bug?

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#70223: Scratch: Re: I haven't been able to trigger this bug
  2024-04-30 17:46 ` bug#70223: I haven't been able to trigger this bug Dale Mellor
@ 2024-04-30 17:55   ` Dale Mellor
  0 siblings, 0 replies; 4+ messages in thread
From: Dale Mellor @ 2024-04-30 17:55 UTC (permalink / raw)
  To: 70223

Sorry, sent to wrong bug.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-30 22:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 20:16 bug#70223: Search for empty string uses excessive memory Athena Martin via Bug reports for GNU Guix
2024-04-06  1:13 ` Richard Sent
2024-04-30 17:46 ` bug#70223: I haven't been able to trigger this bug Dale Mellor
2024-04-30 17:55   ` bug#70223: Scratch: " Dale Mellor

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).