From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 19 20:16:36 2020 Received: (at 41948) by debbugs.gnu.org; 20 Jun 2020 00:16:36 +0000 Received: from localhost ([127.0.0.1]:57039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmRBU-0003LD-DC for submit@debbugs.gnu.org; Fri, 19 Jun 2020 20:16:36 -0400 Received: from wp224.webpack.hosteurope.de ([80.237.132.231]:46572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmRBQ-0003L3-ME for 41948@debbugs.gnu.org; Fri, 19 Jun 2020 20:16:34 -0400 Received: from www.rohleder.de ([37.61.204.227]); authenticated by wp224.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jmRBO-00009j-Ir; Sat, 20 Jun 2020 02:16:30 +0200 Received: from [192.168.1.8] (helo=chuwi) by www.rohleder.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1jmRBN-00076j-Uy; Sat, 20 Jun 2020 02:16:30 +0200 From: Michael Rohleder To: Mathieu Othacehe Subject: Re: bug#41948: Shepherd deadlocks References: <87h7v75txx.fsf@gnu.org> X-PGP-Fingerprint: 755E 2DE5 D0D5 85C5 2E78 2830 7C7A FFBE FEF2 CB25 X-PGP-Key: https://www.rohleder.de/~mike/pgpkey.asc Date: Sat, 20 Jun 2020 02:16:25 +0200 In-Reply-To: <87h7v75txx.fsf@gnu.org> (Mathieu Othacehe's message of "Fri, 19 Jun 2020 10:41:14 +0200") Message-ID: <87y2oilhgm.fsf@rohleder.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-bounce-key: webpack.hosteurope.de;mike@rohleder.de;1592612192;f386e8a3; X-HE-SMSGID: 1jmRBO-00009j-Ir X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41948 Cc: 41948@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Mathieu, Mathieu Othacehe 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! =2D-=20 >Ever heard of .cshrc? That's a city in Bosnia. Right? (Discussion in comp.os.linux.misc on the intuitiveness of commands.) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEdV4t5dDVhcUueCgwfHr/vv7yyyUFAl7tVVkACgkQfHr/vv7y yyWfjQf+JiRafW3ojpVRpu3tojSjO969qSreYbHyL9aqCG9RWmlDAyVTHnIqsk8H +D1uZ11aGBLoYpbW+24JLrCyH0MPa019BXKzweuz15do/vkkqcHyCzsJT8sfGv5e 1KTcaJyaEctDQlD3Rbh4rZr58xiKOxfGG9x6AFCg44ugbbEMDXKv08bQO+bxi3Mx qOx0RlB40uj4jMvdLtjkEWEJYXyu0BXxCBr8Nw2DSeAL4c4ptTZdXZe+lS0Ievhp HTzlrNd3euAGGqy+w6oi9dxJZealzl+F1OMyPlJRVUnnN+mSeyWhMhHsCnEWD71Q xxoNH2CzC7dgvTMD63PplpKv46V0fQ== =he4k -----END PGP SIGNATURE----- --=-=-=--