NetBSD Problem Report #59958
From www@netbsd.org Sun Feb 1 22:28:24 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 0E9191A923D
for <gnats-bugs@gnats.NetBSD.org>; Sun, 1 Feb 2026 22:28:24 +0000 (UTC)
Message-Id: <20260201222823.3267D1A923E@mollari.NetBSD.org>
Date: Sun, 1 Feb 2026 22:28:23 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: ctwm: long delay during ctwm_app_menu
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>
>Number: 59958
>Category: bin
>Synopsis: ctwm: long delay during ctwm_app_menu
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: needs-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 01 22:30:00 +0000 2026
>Closed-Date:
>Last-Modified: Wed May 06 17:40:01 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10
>Organization:
The NetBSD Tasting Menu, Inctwm.
>Environment:
>Description:
ctwm_app_menu takes forever (2.5sec on my laptop, 20sec on wiiu).
This runs whenever you start ctwm or something.
It runs to generate a menu from installed .desktop files.
>How-To-Repeat:
launch ctwm and open the menu
>Fix:
rewrite in awk so it reads each file once, not nine times
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 01 Feb 2026 22:31:11 +0000
State-Changed-Why:
fixed in HEAD, needs pullup-11 and pullup-10
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59958 CVS commit: src/external/mit/ctwm/libexec
Date: Sun, 1 Feb 2026 22:30:27 +0000
Module Name: src
Committed By: riastradh
Date: Sun Feb 1 22:30:27 UTC 2026
Modified Files:
src/external/mit/ctwm/libexec: ctwm_app_menu
Log Message:
ctwm_app_menu: Rewrite largely in awk for ~20-100x speedup.
Previously took ~2.5sec on my laptop, now 0.03sec.
Previously took ~10sec on a wiiu, now ~0.5sec.
Output is meant to be byte-for-byte identical, except possibly in
cases that could have screwed up ctwm by quoting shenanigans which
are now escaped. (I hope the escape sequences work, didn't actually
check how ctwm interprets them.) Can maybe support Exec line with
`"' in them by deleting some code (marked XXX) but I didn't test that
it actually works that way.
PR bin/59958: ctwm: long delay during ctwm_app_menu
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/mit/ctwm/libexec/ctwm_app_menu
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59958 CVS commit: [netbsd-11] src/external/mit/ctwm/libexec
Date: Wed, 6 May 2026 17:29:04 +0000
Module Name: src
Committed By: martin
Date: Wed May 6 17:29:04 UTC 2026
Modified Files:
src/external/mit/ctwm/libexec [netbsd-11]: ctwm_app_menu
Log Message:
Pull up following revision(s) (requested by nia in ticket #256):
external/mit/ctwm/libexec/ctwm_app_menu: revision 1.7
ctwm_app_menu: Rewrite largely in awk for ~20-100x speedup.
Previously took ~2.5sec on my laptop, now 0.03sec.
Previously took ~10sec on a wiiu, now ~0.5sec.
Output is meant to be byte-for-byte identical, except possibly in
cases that could have screwed up ctwm by quoting shenanigans which
are now escaped. (I hope the escape sequences work, didn't actually
check how ctwm interprets them.) Can maybe support Exec line with
`"' in them by deleting some code (marked XXX) but I didn't test that
it actually works that way.
PR bin/59958: ctwm: long delay during ctwm_app_menu
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.6.1 src/external/mit/ctwm/libexec/ctwm_app_menu
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59958 CVS commit: [netbsd-10] src/external/mit/ctwm/libexec
Date: Wed, 6 May 2026 17:39:36 +0000
Module Name: src
Committed By: martin
Date: Wed May 6 17:39:36 UTC 2026
Modified Files:
src/external/mit/ctwm/libexec [netbsd-10]: ctwm_app_menu
Log Message:
Pull up following revision(s) (requested by nia in ticket #1253):
external/mit/ctwm/libexec/ctwm_app_menu: revision 1.7
ctwm_app_menu: Rewrite largely in awk for ~20-100x speedup.
Previously took ~2.5sec on my laptop, now 0.03sec.
Previously took ~10sec on a wiiu, now ~0.5sec.
Output is meant to be byte-for-byte identical, except possibly in
cases that could have screwed up ctwm by quoting shenanigans which
are now escaped. (I hope the escape sequences work, didn't actually
check how ctwm interprets them.) Can maybe support Exec line with
`"' in them by deleting some code (marked XXX) but I didn't test that
it actually works that way.
PR bin/59958: ctwm: long delay during ctwm_app_menu
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.2.1 src/external/mit/ctwm/libexec/ctwm_app_menu
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.