From unknown Sun Jun 22 07:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly Resent-From: Raffael Stocker Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Dec 2020 19:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 45202@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160780099215566 (code B ref -1); Sat, 12 Dec 2020 19:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2020 19:23:12 +0000 Received: from localhost ([127.0.0.1]:46586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAU4-000430-DV for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:23:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:50550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAU3-00042t-H0 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:23:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koAU3-0001Ap-AI for bug-guix@gnu.org; Sat, 12 Dec 2020 14:23:11 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:49831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koAU0-0000YL-4d for bug-guix@gnu.org; Sat, 12 Dec 2020 14:23:10 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CtVT81Rykz1s1Jn for ; Sat, 12 Dec 2020 15:31:24 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CtVT80dzLz1tD93 for ; Sat, 12 Dec 2020 15:31:24 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id G3v0INHkl3-o for ; Sat, 12 Dec 2020 15:31:23 +0100 (CET) X-Auth-Info: Y9ID7inNdlJWsUjR9CksXCHzCic7RwSaiuG3GKn+FpRCM7hUzTm2vD+ieyJ/KLT/ Received: from Black_Knight (ppp-93-104-77-206.dynamic.mnet-online.de [93.104.77.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Sat, 12 Dec 2020 15:31:23 +0100 (CET) User-agent: mu4e 1.4.13; emacs 27.1 From: Raffael Stocker Date: Sat, 12 Dec 2020 15:31:22 +0100 Message-ID: <87o8izhz9h.fsf@mnet-mail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:a60:0:28:0:1:25:1; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Hi, I use the pcsc-lite package and noticed that the pcscd service is sometimes not started by shepherd/herd. If it is started, "herd start pcscd" gives me the following error message (sorry for the german part): > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBstart=C2= =AB mit dem Dienst =C2=BBpcscd=C2=AB: > In procedure open-file: No such file or directory: "/var/run/pcscd/pcscd.= pid" The reason seems to be that pcsc-lite creates its pid file in "/run/pcscd/", but herd expects it in "/var/run/pcscd/". This leads to the service not being started when the files in "/run/pcscd/" have not been cleaned up (or so my interpretation). In this case, I get the error message: > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBstart=C2= =AB mit dem Dienst =C2=BBpcscd=C2=AB: > Throw to key `%exception' with args `("#<&invoke-error program: > \"/gnu/store/r1yd6czv3r0is0a1gfsrix3gslkba80v-pcsc-lite-1.9.0/sbin/pcscd\" > arguments: () exit-status: 1 term-signal: #f stop-signal: #f>")'.=20 If I delete the "/run/pcscd" directory, the daemon will be started, although with the first error message from above. I have been using guix for only a week now and don't know how to edit service definitions etc., but maybe someone more competent could have a look at this. Regards, Raffael From unknown Sun Jun 22 07:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Dec 2020 22:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Raffael Stocker Cc: 45202@debbugs.gnu.org, 45202-done@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 45202-done@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16078115221774 (code B ref -1); Sat, 12 Dec 2020 22:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2020 22:18:42 +0000 Received: from localhost ([127.0.0.1]:47030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koDDu-0000SX-93 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 17:18:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:59622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koDDs-0000SP-6h for submit@debbugs.gnu.org; Sat, 12 Dec 2020 17:18:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koDDs-0003ST-1W for bug-guix@gnu.org; Sat, 12 Dec 2020 17:18:40 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:36842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koDDp-000890-Vd for bug-guix@gnu.org; Sat, 12 Dec 2020 17:18:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=7O8k0Wd5jFSzA5QJ8OjcXxyLLCylHAP/LgWQ4xd1K8w=; h=date:in-reply-to: references:subject:cc:to:from; b=LGAwwuPafL1G+fzgrJ/o7TMPsXhatxkNX/nYI AQHMAZqn0usNedjhHAPX9NXshTn8YUIgU0d6Uu4CoISVisMpyuS64yacQ1iOpNLYqYwx90 +Bw54F177pucp2OeXN0jVF0FJlhSfyX5PvC5hxWdM4l/UamSKOkEVOIpu7TJ5o8aGu8SPB S9kXcYyookpcSwJ2FjIMxKn7lFldinz6V86zDgeoDhPgQAs/w2f9aUvcp0DhZ9ZuZbPi7Q Wu2aF5CngVMJ9zYjSUjvv+ggNk0I2rMH3ReeXNEoEKF3L3QNoSwm+8ClngVUXUml8RMZ/8 Wjy2PKZbrSY6+HGGjASmQJvaw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9619f7e5 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sat, 12 Dec 2020 22:18:52 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice References: <87o8izhz9h.fsf@mnet-mail.de> In-reply-to: <87o8izhz9h.fsf@mnet-mail.de> Date: Sat, 12 Dec 2020 23:18:32 +0100 Message-ID: <87ft4ak6rr.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Raffael, Raffael Stocker =E5=86=99=E9=81=93=EF=BC=9A > The reason seems to be that pcsc-lite creates its pid file in > "/run/pcscd/", but herd expects it in "/var/run/pcscd/". Thanks for the report! I'm closing this bug because I believe=20 to've fixed it on master. Pull it and see. /var/run has no place on modern GNU/Linux. We should strive to=20 migrate all remaining users to /run, but there's no rush. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX9VBuA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15tOMBAIPfrMtqGSHG9aZRTd9dzU4QkMLppa3PgPYSLrk4 PuHDAQCqR/SzDAsUvvureV43khKv2xDiv5Wr1zq3noHBHwC/BA== =4zvL -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Jun 22 07:53:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Raffael Stocker Subject: bug#45202: closed (Re: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly) Message-ID: References: <87ft4ak6rr.fsf@nckx> <87o8izhz9h.fsf@mnet-mail.de> X-Gnu-PR-Message: they-closed 45202 X-Gnu-PR-Package: guix Reply-To: 45202@debbugs.gnu.org Date: Sat, 12 Dec 2020 22:19:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1607811543-1815-1" This is a multi-part message in MIME format... ------------=_1607811543-1815-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #45202: pcscd service (pcsc-lite) doesn't handle run directory properly which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 45202@debbugs.gnu.org. --=20 45202: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D45202 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1607811543-1815-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 45202-done) by debbugs.gnu.org; 12 Dec 2020 22:18:38 +0000 Received: from localhost ([127.0.0.1]:47026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koDDq-0000SF-22 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 17:18:38 -0500 Received: from tobias.gr ([80.241.217.52]:55028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koDDn-0000S5-H9 for 45202-done@debbugs.gnu.org; Sat, 12 Dec 2020 17:18:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=7O8k0Wd5jFSzA5QJ8OjcXxyLLCylHAP/LgWQ4xd1K8w=; h=date:in-reply-to: references:subject:cc:to:from; b=LGAwwuPafL1G+fzgrJ/o7TMPsXhatxkNX/nYI AQHMAZqn0usNedjhHAPX9NXshTn8YUIgU0d6Uu4CoISVisMpyuS64yacQ1iOpNLYqYwx90 +Bw54F177pucp2OeXN0jVF0FJlhSfyX5PvC5hxWdM4l/UamSKOkEVOIpu7TJ5o8aGu8SPB S9kXcYyookpcSwJ2FjIMxKn7lFldinz6V86zDgeoDhPgQAs/w2f9aUvcp0DhZ9ZuZbPi7Q Wu2aF5CngVMJ9zYjSUjvv+ggNk0I2rMH3ReeXNEoEKF3L3QNoSwm+8ClngVUXUml8RMZ/8 Wjy2PKZbrSY6+HGGjASmQJvaw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9619f7e5 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sat, 12 Dec 2020 22:18:52 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Raffael Stocker Subject: Re: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly References: <87o8izhz9h.fsf@mnet-mail.de> In-reply-to: <87o8izhz9h.fsf@mnet-mail.de> Date: Sat, 12 Dec 2020 23:18:32 +0100 Message-ID: <87ft4ak6rr.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45202-done Cc: bug-guix@gnu.org, 45202-done@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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Raffael, Raffael Stocker =E5=86=99=E9=81=93=EF=BC=9A > The reason seems to be that pcsc-lite creates its pid file in > "/run/pcscd/", but herd expects it in "/var/run/pcscd/". Thanks for the report! I'm closing this bug because I believe=20 to've fixed it on master. Pull it and see. /var/run has no place on modern GNU/Linux. We should strive to=20 migrate all remaining users to /run, but there's no rush. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX9VBuA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15tOMBAIPfrMtqGSHG9aZRTd9dzU4QkMLppa3PgPYSLrk4 PuHDAQCqR/SzDAsUvvureV43khKv2xDiv5Wr1zq3noHBHwC/BA== =4zvL -----END PGP SIGNATURE----- --=-=-=-- ------------=_1607811543-1815-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Dec 2020 19:23:12 +0000 Received: from localhost ([127.0.0.1]:46586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAU4-000430-DV for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:23:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:50550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAU3-00042t-H0 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:23:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koAU3-0001Ap-AI for bug-guix@gnu.org; Sat, 12 Dec 2020 14:23:11 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:49831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koAU0-0000YL-4d for bug-guix@gnu.org; Sat, 12 Dec 2020 14:23:10 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CtVT81Rykz1s1Jn for ; Sat, 12 Dec 2020 15:31:24 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CtVT80dzLz1tD93 for ; Sat, 12 Dec 2020 15:31:24 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id G3v0INHkl3-o for ; Sat, 12 Dec 2020 15:31:23 +0100 (CET) X-Auth-Info: Y9ID7inNdlJWsUjR9CksXCHzCic7RwSaiuG3GKn+FpRCM7hUzTm2vD+ieyJ/KLT/ Received: from Black_Knight (ppp-93-104-77-206.dynamic.mnet-online.de [93.104.77.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Sat, 12 Dec 2020 15:31:23 +0100 (CET) User-agent: mu4e 1.4.13; emacs 27.1 From: Raffael Stocker To: bug-guix@gnu.org Subject: pcscd service (pcsc-lite) doesn't handle run directory properly Date: Sat, 12 Dec 2020 15:31:22 +0100 Message-ID: <87o8izhz9h.fsf@mnet-mail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:a60:0:28:0:1:25:1; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) Hi, I use the pcsc-lite package and noticed that the pcscd service is sometimes not started by shepherd/herd. If it is started, "herd start pcscd" gives me the following error message (sorry for the german part): > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBstart=C2= =AB mit dem Dienst =C2=BBpcscd=C2=AB: > In procedure open-file: No such file or directory: "/var/run/pcscd/pcscd.= pid" The reason seems to be that pcsc-lite creates its pid file in "/run/pcscd/", but herd expects it in "/var/run/pcscd/". This leads to the service not being started when the files in "/run/pcscd/" have not been cleaned up (or so my interpretation). In this case, I get the error message: > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBstart=C2= =AB mit dem Dienst =C2=BBpcscd=C2=AB: > Throw to key `%exception' with args `("#<&invoke-error program: > \"/gnu/store/r1yd6czv3r0is0a1gfsrix3gslkba80v-pcsc-lite-1.9.0/sbin/pcscd\" > arguments: () exit-status: 1 term-signal: #f stop-signal: #f>")'.=20 If I delete the "/run/pcscd" directory, the daemon will be started, although with the first error message from above. I have been using guix for only a week now and don't know how to edit service definitions etc., but maybe someone more competent could have a look at this. Regards, Raffael ------------=_1607811543-1815-1-- From unknown Sun Jun 22 07:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly Resent-From: Raffael Stocker Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 13 Dec 2020 00:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 45202@debbugs.gnu.org, 45202-done@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 45202-done@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160781962815676 (code B ref -1); Sun, 13 Dec 2020 00:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Dec 2020 00:33:48 +0000 Received: from localhost ([127.0.0.1]:47139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koFKe-00044l-GU for submit@debbugs.gnu.org; Sat, 12 Dec 2020 19:33:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:58336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koFKc-00044d-Ci for submit@debbugs.gnu.org; Sat, 12 Dec 2020 19:33:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koFKc-0002yA-5U for bug-guix@gnu.org; Sat, 12 Dec 2020 19:33:46 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:44996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koFKa-0002RR-4l for bug-guix@gnu.org; Sat, 12 Dec 2020 19:33:45 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Ctlr54bH6z1qrfx; Sun, 13 Dec 2020 01:33:41 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Ctlr54DLyz1tF6d; Sun, 13 Dec 2020 01:33:41 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id x9E-UuR-mpCE; Sun, 13 Dec 2020 01:33:40 +0100 (CET) X-Auth-Info: DR75nZ/63xIfcKdl7YDlYFBf0UTe+0FlZVF5wiupaTaznNEnlnaS3dX5+7JalPIz Received: from Black_Knight (ppp-93-104-77-206.dynamic.mnet-online.de [93.104.77.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 13 Dec 2020 01:33:40 +0100 (CET) References: <87o8izhz9h.fsf@mnet-mail.de> <87ft4ak6rr.fsf@nckx> User-agent: mu4e 1.4.13; emacs 27.1 From: Raffael Stocker In-reply-to: <87ft4ak6rr.fsf@nckx> Date: Sun, 13 Dec 2020 01:33:34 +0100 Message-ID: <87im96o881.fsf@mnet-mail.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.18.0.9; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Tobias Geerinckx-Rice writes: > Thanks for the report! I'm closing this bug because I believe to've fixed it > on master. Pull it and see. > > /var/run has no place on modern GNU/Linux. We should strive to migrate all > remaining users to /run, but there's no rush. Thanks, that seems to solve this problem. However, I now noticed a new one: pcscd doesn't seem to be killable easily (at least not by a TERM signal), so "herd stop pcscd" has no effect. Sending a KILL signal and starting with "herd start pcscd" works without problems, though. Regards, Raffael From unknown Sun Jun 22 07:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 13 Dec 2020 11:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Raffael Stocker Cc: 45202@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 45202@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160786017919888 (code B ref -1); Sun, 13 Dec 2020 11:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Dec 2020 11:49:39 +0000 Received: from localhost ([127.0.0.1]:47578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPsh-0005Ai-1v for submit@debbugs.gnu.org; Sun, 13 Dec 2020 06:49:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:46370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPsc-0005AH-ON for submit@debbugs.gnu.org; Sun, 13 Dec 2020 06:49:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koPsc-0005uR-44 for bug-guix@gnu.org; Sun, 13 Dec 2020 06:49:34 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:36036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koPsa-0002dd-3V for bug-guix@gnu.org; Sun, 13 Dec 2020 06:49:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=lVWrL7jAc1yn3Ggwr0rBCwTMjWN36RWpXUD0aon1w00=; h=date:in-reply-to: references:subject:cc:to:from; b=DxMmlEYf0W4xbD4ibz+vz81pbePGjn41cu8Zn 2kGrWV9raerAXZQKgWHuNqGCz+uLgUCn5R9bgMeXfnwhj+n28UmuBj45eCcxqEywXH2Fc/ v6XoJ5Gjh82Wg0om9Lk4feaylkyKgw912O1gvUMgfaqeGsDhFTyOV2lCFsJSnfvgapxSr3 E4ceOhba4n73BRsfmClk8d7SJB75QXIN/tICVPzF2bUzKvhpxJ40cB6tTcQcfXcFwUBgDM ph8j83/BISA5TTT3cN1S3pyYU2w/2MWXMupQ3m4SnINU35tZ8o4LTboLX2MvzyZJfJMbBa w4RIac8rc11Gvksrjq4ss1W7g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d81c36fa (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sun, 13 Dec 2020 11:49:47 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice References: <87o8izhz9h.fsf@mnet-mail.de> <87ft4ak6rr.fsf@nckx> <87im96o881.fsf@mnet-mail.de> In-reply-to: <87im96o881.fsf@mnet-mail.de> Date: Sun, 13 Dec 2020 12:49:27 +0100 Message-ID: <87a6uij588.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Raffael, Raffael Stocker =E5=86=99=E9=81=93=EF=BC=9A > However, I now noticed a new one: pcscd doesn't seem to be=20 > killable > easily (at least not by a TERM signal), so "herd stop pcscd" has > no effect. Sending a KILL signal and starting with "herd start=20 > pcscd" > works without problems, though. I can reproduce this. Interestingly(?) it only affects the pcscd=20 started by Shepherd. Manual $(guix build pcsc-lite)/sbin/pcscd invocations, both with=20 and without --foreground, are eminently killable with TERM alone. The Shepherd's instance hangs at strace: Process 11441 attached select(7, [6], NULL, NULL, NULL with no activity at all when signal 15 is delivered. I don't know=20 any tricks to attach faster to get more leading context. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX9X/xw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15VOkBANbRK0WXxwKz9mBueibIv0wW8cMd4xM1qC6oy1iB JMLhAQCnfBC22wsL4uhzaGlXTx2tnQ//vasY5usm7QyTntcvAw== =PKsC -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 06:49:30 2020 Received: (at control) by debbugs.gnu.org; 13 Dec 2020 11:49:30 +0000 Received: from localhost ([127.0.0.1]:47573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPsY-00059i-HW for submit@debbugs.gnu.org; Sun, 13 Dec 2020 06:49:30 -0500 Received: from tobias.gr ([80.241.217.52]:54218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPsV-00059P-Pw for control@debbugs.gnu.org; Sun, 13 Dec 2020 06:49:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=kKO0vMVbSdB7npETGtr1194fUEsATgkI2Ts9pzW4VM0=; h=date:to:from; b=j+m 0HQEhDadbfmXhQkbPwebFBRaDYGIsq4EY+CrwxYm9qTa1ZFfS8DzXHxM280yma3e8tLHMp TANFLSG3kSrDRGmP6zSDIjI/vEIg/4d9M4c5+k9r122riWH0PCXjgyzbEedNUrvlqZ1PWV hz5NUVgD5wxzGqZSZfI7x9vZ81W++f6CKtdtdlms5sxlzubhOy5l2/pN7YrJMEDJtrkkrh rmWSr0Ih42uGYPczl6hhIA10cfhK4Nt8WzKpSi9H6lJkHCodQ0guNAOMFdW6Os0TtUlVQ1 wcwvaKSzwIVeJya73n7nwfEJXCDEpNFeoCWVFt2quwHnoDpQ8vb5DG8fa7w== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 011b95ec (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for ; Sun, 13 Dec 2020 11:49:44 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: control@debbugs.gnu.org Date: Sun, 13 Dec 2020 12:49:25 +0100 Message-ID: <87czzej58a.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: reopen 45202 retitle 45202 pcscd service doesn't respond to SIGTERM Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [80.241.217.52 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 2.0 BODY_EMPTY No body text in message X-Debbugs-Envelope-To: control 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: 0.7 (/) reopen 45202 retitle 45202 pcscd service doesn't respond to SIGTERM From unknown Sun Jun 22 07:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45202: pcscd service (pcsc-lite) doesn't handle run directory properly Resent-From: Raffael Stocker Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 14 Dec 2020 05:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 45202@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 45202@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160792529825985 (code B ref -1); Mon, 14 Dec 2020 05:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2020 05:54:58 +0000 Received: from localhost ([127.0.0.1]:50852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kogp0-0006l3-2L for submit@debbugs.gnu.org; Mon, 14 Dec 2020 00:54:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:56828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kogox-0006kv-Jb for submit@debbugs.gnu.org; Mon, 14 Dec 2020 00:54:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kogox-0004PG-BA for bug-guix@gnu.org; Mon, 14 Dec 2020 00:54:55 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:38254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kogov-0002gA-EF for bug-guix@gnu.org; Mon, 14 Dec 2020 00:54:54 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CvVw93rpVz1qtQY; Mon, 14 Dec 2020 06:54:49 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CvVw9287Hz1tTZQ; Mon, 14 Dec 2020 06:54:49 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id o02I9ktAjeS1; Mon, 14 Dec 2020 06:54:48 +0100 (CET) X-Auth-Info: E+4N7a+ETy4PDZHy9fDNABXR52cb4cLH1Uo0Mwmcp2ssmVWGLBIoc1v0yQTDRAbv Received: from EmacsBook (ppp-93-104-71-75.dynamic.mnet-online.de [93.104.71.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 14 Dec 2020 06:54:48 +0100 (CET) References: <87o8izhz9h.fsf@mnet-mail.de> <87ft4ak6rr.fsf@nckx> <87im96o881.fsf@mnet-mail.de> <87a6uij588.fsf@nckx> User-agent: mu4e 1.4.13; emacs 27.1 From: Raffael Stocker In-reply-to: <87a6uij588.fsf@nckx> Date: Mon, 14 Dec 2020 06:54:47 +0100 Message-ID: <87k0tlvsns.fsf@mnet-mail.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.18.0.9; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Tobias Geerinckx-Rice writes: >> However, I now noticed a new one: pcscd doesn't seem to be killable >> easily (at least not by a TERM signal), so "herd stop pcscd" has >> no effect. Sending a KILL signal and starting with "herd start pcscd" >> works without problems, though. > > I can reproduce this. Interestingly(?) it only affects the pcscd started by > Shepherd. > > Manual $(guix build pcsc-lite)/sbin/pcscd invocations, both with and without > --foreground, are eminently killable with TERM alone. Interesting indeed. From looking at the source of pcsc-lite (main() in pcscdaemon.c) it seems it's not modifying its sigmask. IIRC, child processes inherit the parent's ignored signals, so if shepherd is ignoring SIGTERM before a fork() and not resetting to default before an exec(), pcscd will never receive the SIGTERM. This might explain the behaviour. I have not checked shepherd's source to confirm. If this is so, it should probably be fixed in shepherd, right? Regards, Raffael From unknown Sun Jun 22 07:53:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Raffael Stocker Subject: bug#45202: closed (Re: bug#45202: pcscd service doesn't respond to SIGTERM) Message-ID: References: <87v95rcl0c.fsf_-_@waegenei.re> <87o8izhz9h.fsf@mnet-mail.de> X-Gnu-PR-Message: they-closed 45202 X-Gnu-PR-Package: guix Reply-To: 45202@debbugs.gnu.org Date: Sat, 03 Jul 2021 18:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1625336762-2174-1" This is a multi-part message in MIME format... ------------=_1625336762-2174-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #45202: pcscd service doesn't respond to SIGTERM which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 45202@debbugs.gnu.org. --=20 45202: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D45202 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1625336762-2174-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 45202-done) by debbugs.gnu.org; 3 Jul 2021 18:25:57 +0000 Received: from localhost ([127.0.0.1]:39849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzkKy-0000Yl-PT for submit@debbugs.gnu.org; Sat, 03 Jul 2021 14:25:57 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzkKr-0000YR-K4 for 45202-done@debbugs.gnu.org; Sat, 03 Jul 2021 14:25:52 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 5F11120002; Sat, 3 Jul 2021 18:25:42 +0000 (UTC) From: Brice Waegeneire To: Raffael Stocker Subject: Re: bug#45202: pcscd service doesn't respond to SIGTERM References: <87o8izhz9h.fsf@mnet-mail.de> <87ft4ak6rr.fsf@nckx> <87im96o881.fsf@mnet-mail.de> <87a6uij588.fsf@nckx> <87k0tlvsns.fsf@mnet-mail.de> Date: Sat, 03 Jul 2021 20:25:39 +0200 In-Reply-To: <87k0tlvsns.fsf@mnet-mail.de> (Raffael Stocker's message of "Mon, 14 Dec 2020 06:54:47 +0100") Message-ID: <87v95rcl0c.fsf_-_@waegenei.re> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45202-done Cc: Tobias Geerinckx-Rice , 45202-done@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 (-) Hello Raffael, Raffael Stocker writes: > Interesting indeed. From looking at the source of pcsc-lite (main() in > pcscdaemon.c) it seems it's not modifying its sigmask. IIRC, child > processes inherit the parent's ignored signals, so if shepherd is > ignoring SIGTERM before a fork() and not resetting to default before an > exec(), pcscd will never receive the SIGTERM. This might explain the > behaviour. I have not checked shepherd's source to confirm. > > If this is so, it should probably be fixed in shepherd, right? Thank yu for the analysis of the issue, it helped me a lot to fix it. The sheperd pcscd serice wasn't using the correct procedure to start the daemon, it is fixed in e789ce538ed848bacb8f4eb5742f78b965ccf57c. Cheers, - Brice ------------=_1625336762-2174-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Dec 2020 19:23:12 +0000 Received: from localhost ([127.0.0.1]:46586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAU4-000430-DV for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:23:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:50550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAU3-00042t-H0 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:23:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koAU3-0001Ap-AI for bug-guix@gnu.org; Sat, 12 Dec 2020 14:23:11 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:49831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koAU0-0000YL-4d for bug-guix@gnu.org; Sat, 12 Dec 2020 14:23:10 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CtVT81Rykz1s1Jn for ; Sat, 12 Dec 2020 15:31:24 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CtVT80dzLz1tD93 for ; Sat, 12 Dec 2020 15:31:24 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id G3v0INHkl3-o for ; Sat, 12 Dec 2020 15:31:23 +0100 (CET) X-Auth-Info: Y9ID7inNdlJWsUjR9CksXCHzCic7RwSaiuG3GKn+FpRCM7hUzTm2vD+ieyJ/KLT/ Received: from Black_Knight (ppp-93-104-77-206.dynamic.mnet-online.de [93.104.77.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Sat, 12 Dec 2020 15:31:23 +0100 (CET) User-agent: mu4e 1.4.13; emacs 27.1 From: Raffael Stocker To: bug-guix@gnu.org Subject: pcscd service (pcsc-lite) doesn't handle run directory properly Date: Sat, 12 Dec 2020 15:31:22 +0100 Message-ID: <87o8izhz9h.fsf@mnet-mail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:a60:0:28:0:1:25:1; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) Hi, I use the pcsc-lite package and noticed that the pcscd service is sometimes not started by shepherd/herd. If it is started, "herd start pcscd" gives me the following error message (sorry for the german part): > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBstart=C2= =AB mit dem Dienst =C2=BBpcscd=C2=AB: > In procedure open-file: No such file or directory: "/var/run/pcscd/pcscd.= pid" The reason seems to be that pcsc-lite creates its pid file in "/run/pcscd/", but herd expects it in "/var/run/pcscd/". This leads to the service not being started when the files in "/run/pcscd/" have not been cleaned up (or so my interpretation). In this case, I get the error message: > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBstart=C2= =AB mit dem Dienst =C2=BBpcscd=C2=AB: > Throw to key `%exception' with args `("#<&invoke-error program: > \"/gnu/store/r1yd6czv3r0is0a1gfsrix3gslkba80v-pcsc-lite-1.9.0/sbin/pcscd\" > arguments: () exit-status: 1 term-signal: #f stop-signal: #f>")'.=20 If I delete the "/run/pcscd" directory, the daemon will be started, although with the first error message from above. I have been using guix for only a week now and don't know how to edit service definitions etc., but maybe someone more competent could have a look at this. Regards, Raffael ------------=_1625336762-2174-1--