GNU bug report logs -
#41948
Shepherd deadlocks
Previous Next
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
Message #11 received at 41948 <at> debbugs.gnu.org (full text, mbox):
[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.