GNU bug report logs - #36838
mcron leaves zombies around

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Robert Vollmert <rob@HIDDEN>; dated Mon, 29 Jul 2019 15:40:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Jul 2019 15:39:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 29 11:39:44 2019
Received: from localhost ([127.0.0.1]:48987 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hs7kV-0005hD-Rf
	for submit <at> debbugs.gnu.org; Mon, 29 Jul 2019 11:39:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:42465)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hs7kU-0005h6-D7
 for submit <at> debbugs.gnu.org; Mon, 29 Jul 2019 11:39:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49313)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <rob@HIDDEN>) id 1hs7kT-0000WW-DU
 for bug-guix@HIDDEN; Mon, 29 Jul 2019 11:39:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rob@HIDDEN>) id 1hs7kS-0007Gr-De
 for bug-guix@HIDDEN; Mon, 29 Jul 2019 11:39:41 -0400
Received: from mx1.mailbox.org ([80.241.60.212]:24938)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hs7kS-0007EH-86
 for bug-guix@HIDDEN; Mon, 29 Jul 2019 11:39:40 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:2:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx1.mailbox.org (Postfix) with ESMTPS id 581B95033E
 for <bug-guix@HIDDEN>; Mon, 29 Jul 2019 17:39:37 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id SVN_yCrolJ7G for <bug-guix@HIDDEN>;
 Mon, 29 Jul 2019 17:39:35 +0200 (CEST)
From: Robert Vollmert <rob@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: mcron leaves zombies around
Message-Id: <70F6F2EB-3619-4175-885F-C970448355D7@HIDDEN>
Date: Mon, 29 Jul 2019 17:39:33 +0200
To: bug-guix@HIDDEN
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 80.241.60.212
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

It seems that mcron doesn=E2=80=99t clean up after itself. I regularly =
see
some zombie processes around, presumably left over by each of my
two 15-minute cron jobs:

root     21285  0.0  0.3  24124  3248 ?        Ss   11:05   0:00 =
/gnu/store/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron =
/gnu/store/rdi71izz4d16v77hb8h2jks0s3q9zini-mcron-job =
/gnu/store/k7dn1v7qpi4kz183glmbgsf1c7pj19xx-mcron-job =
/gnu/store/lfyj23bzhc14y5rqi91g493jql9dphxk-mcron-job =
/gnu/store/mx9k5n92kmhryn3vh4607hrmnkjb8dl6-mcron-job =
/gnu/store/l4nxmajr0i5g07fxvrgnaw29zd1jq0qw-mcron-job
root     26611  0.0  0.0      0     0 ?        Z    17:29   0:00 [mcron] =
<defunct>
root     26612  0.0  0.0      0     0 ?        Z    17:29   0:00 [mcron] =
<defunct>

In case that matters, they=E2=80=99re defined using the following:

(define puzzledb-tweets-pzv-job
  (let* ((exp
          (with-imported-modules '((helpers))
            #~(begin
                (use-modules (helpers))
                (let ((backend (read-secret "tools.jwt"))
                      (twitter (read-secret "twitter.token")))
                  (runl (string-append #$puzzledb-tools "/bin/tweets")
                        "-backend_token" backend
                        "-token" twitter
                        "-deletes")))))
         (script (program-file "puzzledb-tweets-pzv-job" exp)))
    #~(job "*/15 * * * *" ; every fifteen minutes
           #$script)))

where the module helpers contains:

(define-module (helpers)
  #:use-module (ice-9 textual-ports)
  #:export (runl read-secret))

(define* (runl prog . args)
  (apply execl prog prog args))

(define* (read-secret file)
  (string-trim-both
    (get-string-all
      (open-input-file
        (string-append "/etc/puzzledb/secrets/" file)))))





Acknowledgement sent to Robert Vollmert <rob@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#36838; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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