From: Michael Rohleder <mike@rohleder.de>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 41948@debbugs.gnu.org
Subject: bug#41948: Shepherd deadlocks
Date: Sat, 20 Jun 2020 02:16:25 +0200 [thread overview]
Message-ID: <87y2oilhgm.fsf@rohleder.de> (raw)
In-Reply-To: <87h7v75txx.fsf@gnu.org> (Mathieu Othacehe's message of "Fri, 19 Jun 2020 10:41:14 +0200")
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
Hi Mathieu,
Mathieu Othacehe <othacehe@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.)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2020-06-20 0:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 8:41 bug#41948: Shepherd deadlocks Mathieu Othacehe
2020-06-19 12:10 ` Mathieu Othacehe
2020-06-20 0:16 ` Michael Rohleder [this message]
2020-06-20 10:31 ` Ludovic Courtès
2020-08-16 9:56 ` Mathieu Othacehe
2021-05-07 21:49 ` Ludovic Courtès
2021-05-07 22:07 ` Ludovic Courtès
2021-05-08 20:52 ` Ludovic Courtès
2021-05-08 9:43 ` Ludovic Courtès
2021-05-08 13:49 ` Andrew Whatson
2021-05-08 13:49 ` bug#41948: [PATCH] Fix some finalizer thread race conditions Andrew Whatson
2021-05-08 20:50 ` bug#41948: Shepherd deadlocks Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2oilhgm.fsf@rohleder.de \
--to=mike@rohleder.de \
--cc=41948@debbugs.gnu.org \
--cc=othacehe@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).