GNU bug report logs - #42353
mcron occasionally gets stuck in pre-fork

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; Severity: important; Reported by: Ludovic Courtès <ludo@HIDDEN>; dated Tue, 14 Jul 2020 14:17:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> Full text available.

Message received at submit <at>

Received: (at submit) by; 14 Jul 2020 14:16:55 +0000
From debbugs-submit-bounces <at> Tue Jul 14 10:16:55 2020
Received: from localhost ([]:51036
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1jvLjr-00086s-GJ
	for submit <at>; Tue, 14 Jul 2020 10:16:55 -0400
Received: from ([]:48914)
 by with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1jvLjo-00086k-TY
 for submit <at>; Tue, 14 Jul 2020 10:16:54 -0400
Received: from ([2001:470:142:3::10]:40210)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1jvLjo-0006kI-OT
 for bug-guix@HIDDEN; Tue, 14 Jul 2020 10:16:52 -0400
Received: from ([2001:470:142:3::e]:59637)
 by with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>) id 1jvLjo-0005za-Fg
 for bug-guix@HIDDEN; Tue, 14 Jul 2020 10:16:52 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37438 helo=ribbon)
 by with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1jvLjn-0003V2-Sh
 for bug-guix@HIDDEN; Tue, 14 Jul 2020 10:16:52 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: <bug-guix@HIDDEN>
Subject: mcron occasionally gets stuck in pre-fork
X-Debbugs-Cc: Mathieu Othacehe <othacehe@HIDDEN>
X-Revolutionary-Date: 27 Messidor an 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 14 Jul 2020 16:16:50 +0200
Message-ID: <87sgdukwq5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -3.3 (---)


mcron running on top of Guile 3.0.2 occasionally gets stuck right before
fork while shutting down the finalization thread:

--8<---------------cut here---------------start------------->8---
ludo@berlin ~$ ps aux|grep 25457
root      25457  0.0  0.0 149576  9412 ?        Ssl  Jul10   0:00 /gnu/stor=
e/fp5ybkawldy28kzkzp60s23hkqbdx4x2-mcron-1.1.4/bin/mcron /gnu/store/l74fbl7=
si93si6x47sfwsnc9ag386570-mcron-job /gnu/store/r11ffr5rfkqyw1drqrqabwx210lk=
1jfn-mcron-job /gnu/store/3a88kc90lv6nqy9k1bwkxpi9gps1vfdb-mcron-job /gnu/s=
tore/8386w15b7mj1pmjbp5n9jk6p2v9b0m2q-mcron-job /gnu/store/v0jwrr7ggwvr6y4x=
vqwiqksbrgkmm21c-mcron-job /gnu/store/wzv96j9c1h86kfzl5ai64j1xwvkin1wz-mcro=
n-job /gnu/store/kz93w89b7sj6gz32aq6flsy0pa3ag6ny-mcron-job /gnu/store/4jv4=
ap1d161dvix472j47lipvqafqrmn-mcron-job /gnu/store/r7vs7vkid8w1xz0nzkcwc6ylm=
z8yryc5-mcron-job /gnu/store/yy51bjcx0zndsn9db56sb2d1bn7c9j1i-mcron-job /gn=
ludo     130462  0.0  0.0   6376  2476 pts/11   S+   16:10   0:00 grep --co=
lor 25457
ludo@berlin ~$ sudo gdb -ix ~/.gdbinit -p 25457
GNU gdb (GDB) 8.3.1


(gdb) bt
#0  0x00007f38221a1517 in __pthread_clockjoin_ex ()
   from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libpthre=
#1  0x00007f38222960d8 in stop_finalization_thread () at finalizers.c:276
#2  0x00007f38222962f9 in scm_i_finalizer_pre_fork () at finalizers.c:301
#3  0x00007f382231e1d6 in scm_fork () at posix.c:1230
#4  0x00007f38193b2def in ?? ()
#5  0x00007f3821bc9d80 in ?? ()
#6  0x00007f38223795c0 in ?? ()
   from /gnu/store/18hp7flyb3yid3yp49i6qcdq0sbi5l1n-guile-3.0.2/lib/libguil=
#7  0x00007f3821bc9d80 in ?? ()
#8  0x00007f38222b2f0b in scm_jit_enter_mcode (thread=3D0x7f3821bc9d80,
    mcode=3D0x7f38193accd2 "I\211\314I)\304I\203\374\060\017\214s\003")
    at jit.c:5777
#9  0x00007f382230e350 in vm_regular_engine (thread=3D0x7f38193b2dd0)
    at vm-engine.c:546
#10 0x00007f382230f175 in scm_call_n (proc=3D<optimized out>,
    argv=3Dargv@entry=3D0x7ffd8ff6ad58, nargs=3Dnargs@entry=3D1) at vm.c:16=
#11 0x00007f382228c078 in scm_call_1 (proc=3D<optimized out>,
    arg1=3D<optimized out>) at eval.c:496
#12 0x000000000040130c in inner_main ()
#13 0x00007f38222a4c0d in invoke_main_func (body_data=3D0x7ffd8ff6b240)
    at init.c:308


(gdb) thread apply all bt
Thread 17 (Thread 0x7f3819c7d700 (LWP 15795)):
#0  0x00007f38221aa0a4 in read () from /gnu/store/fa6wj5bxkj5ll1d7292a70knm=
#1  0x00007f3822296067 in read_finalization_pipe_data (data=3D0x7f3819c7ca3=
0) at finalizers.c:205
#2  0x00007f38221e8d94 in GC_do_blocking_inner () from /gnu/store/zg126cjic=
#3  0x00007f38221e59c2 in GC_with_callee_saves_pushed () from /gnu/store/zg=
#4  0x00007f38221e5a6c in GC_do_blocking () from /gnu/store/zg126cjicrpm2p6=
#5  0x00007f38223036b5 in scm_without_guile (func=3D0x7f3822296050 <read_fi=
nalization_pipe_data>, data=3D0x7f3819c7ca30) at threads.c:706
#6  0x00007f382229641b in finalization_thread_proc (unused=3D<optimized out=
>) at finalizers.c:218
--8<---------------cut here---------------end--------------->8---

This reminds me of <> and more recently
this issue Mathieu reported: <>.

It could be that Guile still has troubles shutting down the finalization


Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to othacehe@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to othacehe@HIDDEN, bug-guix@HIDDEN:
bug#42353; 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: Fri, 24 Jul 2020 10:30:03 UTC

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