GNU bug report logs - #75460
'herd status' hangs with daemonized shepherd

Previous Next

Package: guix;

Reported by: Simen Endsjø <contact <at> simendsjo.me>

Date: Thu, 9 Jan 2025 11:46:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 75460 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simen Endsjø <contact <at> simendsjo.me>
Cc: 75460 <at> debbugs.gnu.org
Subject: Re: bug#75460: herd status hangs forever
Date: Sun, 12 Jan 2025 17:40:16 +0100
[Message part 1 (text/plain, inline)]
Hello,

Simen Endsjø <contact <at> simendsjo.me> skribis:

> Oh, I only checked some services and assumed all was working. All the
> following services hang. The common denominator is that I have written
> these myself, so I might be doing something odd here.
>
> • xss-lock
> • volctl
> • picom
> • network-manager-applet
> • dunst
> • cbatticon
> • blueman-applet
>
> For example xss-lock:
> <https://git.sr.ht/~simendsjo/dotfiles/tree/main/item/sijo/home/services/xss-lock.scm#L7-30>

Yes, I already looked at all of them just in case :-) and didn’t notice
anything fishy.

One suggestion:

[Message part 2 (text/x-patch, inline)]
diff --git a/sijo/home/services/emacs-daemon.scm b/sijo/home/services/emacs-daemon.scm
index 5e438b8..32d6ae0 100644
--- a/sijo/home/services/emacs-daemon.scm
+++ b/sijo/home/services/emacs-daemon.scm
@@ -11,7 +11,7 @@
     (modules '((shepherd support)))  ;for '%user-runtime-dir'
     (start #~(lambda ()
               (let ((socket (string-append %user-runtime-dir "/emacs/server")))
-                (unless (file-exists? socket)
+                (and (not (file-exists? socket))
                      (fork+exec-command (list "emacs" "--fg-daemon"))))))
     (stop #~(make-kill-destructor)))))
 
[Message part 3 (text/plain, inline)]
Otherwise you end up with ‘emacs-daemon’ marked as “started” with
#<unspecified> as its running value, causing an exception (type error)
when attempting to stop it.

> ┌────
> │ 2025-01-12 16:39:26 GNU Shepherd 1.0.0 (Guile 3.0.9, x86_64-unknown-linux-gnu)
> │ 2025-01-12 16:39:26 Starting service root...

Nothing stands out here, but this log is much recent than your initial
report.  Is ‘herd status’ still hanging?  IOW, is it 100% reproducible?

Thanks,
Ludo’.

This bug report was last modified 94 days ago.

Previous Next


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