GNU bug report logs - #41948
Shepherd deadlocks

Previous Next

Package: guix;

Reported by: Mathieu Othacehe <othacehe <at> gnu.org>

Date: Fri, 19 Jun 2020 08:42:01 UTC

Severity: important

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Rohleder <mike <at> rohleder.de>
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: 41948 <at> debbugs.gnu.org
Subject: bug#41948: Shepherd deadlocks
Date: Sat, 20 Jun 2020 02:16:25 +0200
[Message part 1 (text/plain, inline)]
Hi Mathieu,

Mathieu Othacehe <othacehe <at> gnu.org> writes:
> This is not always reproducible. In order to gather some information, I
> created a Shepherd "strace" service that logs what's happening in
> Shepherd itself (patch attached).

> +(define strace-service-type
> +  (shepherd-service-type
> +   'strace
> +   (lambda (pid)
> +     (shepherd-service
> +      (requirement '(root-file-system user-processes))
> +      (provision (list (string->symbol
> +                        (string-append "strace-" (number->string pid)))))
> +      (documentation "Strace a running process.")
> +      (start #~(make-forkexec-constructor
> +                (list #$(file-append strace "/bin/strace")
> +                      "-f" "-p" (number->string #$pid)
> +                      "-o" (string-append "/var/log/strace-"
> +                                          (number->string #$pid) ".log"))))
> +      (stop   #~(make-kill-destructor))))))

Thank you very much for this nice strace service!

I'am debugging a "shepherd hangs" problem in the context of lvm and
lvmcache...
This service helps me a lot, ty!


-- 
>Ever heard of .cshrc?
That's a city in Bosnia.  Right?
(Discussion in comp.os.linux.misc on the intuitiveness of commands.)
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 4 years and 75 days ago.

Previous Next


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