From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AA2mCmm+DV9WVwAA0tVLHw (envelope-from ) for ; Tue, 14 Jul 2020 14:17:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uPEJBmm+DV8/BQAA1q6Kng (envelope-from ) for ; Tue, 14 Jul 2020 14:17:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7437F9403E9 for ; Tue, 14 Jul 2020 14:17:12 +0000 (UTC) Received: from localhost ([::1]:33324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvLk7-0006n2-6Y for larch@yhetil.org; Tue, 14 Jul 2020 10:17:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvLjy-0006mW-Oo for bug-guix@gnu.org; Tue, 14 Jul 2020 10:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvLjy-00060Q-Fn; Tue, 14 Jul 2020 10:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jvLjy-00087L-BY; Tue, 14 Jul 2020 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42353: mcron occasionally gets stuck in pre-fork Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: othacehe@gnu.org, bug-guix@gnu.org Resent-Date: Tue, 14 Jul 2020 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42353 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 42353@debbugs.gnu.org X-Debbugs-Original-To: X-Debbugs-Original-Xcc: Mathieu Othacehe Received: via spool by submit@debbugs.gnu.org id=B.159473621531183 (code B ref -1); Tue, 14 Jul 2020 14:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jul 2020 14:16:55 +0000 Received: from localhost ([127.0.0.1]:51036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jvLjr-00086s-GJ for submit@debbugs.gnu.org; Tue, 14 Jul 2020 10:16:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:48914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jvLjo-00086k-TY for submit@debbugs.gnu.org; Tue, 14 Jul 2020 10:16:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvLjo-0006kI-OT for bug-guix@gnu.org; Tue, 14 Jul 2020 10:16:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59637) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvLjo-0005za-Fg for bug-guix@gnu.org; Tue, 14 Jul 2020 10:16:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37438 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jvLjn-0003V2-Sh for bug-guix@gnu.org; Tue, 14 Jul 2020 10:16:52 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Messidor an 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc 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@inria.fr> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: ZAlgUdJm01QL Hi, 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= u/store/56vfqmzfidcf1axh07zak2gfbgrc8jdm-mcron-job 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 [=E2=80=A6] (gdb) bt #0 0x00007f38221a1517 in __pthread_clockjoin_ex () from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libpthre= ad.so.0 #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= e-3.0.so.1 #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, argv=3Dargv@entry=3D0x7ffd8ff6ad58, nargs=3Dnargs@entry=3D1) at vm.c:16= 08 #11 0x00007f382228c078 in scm_call_1 (proc=3D, arg1=3D) at eval.c:496 #12 0x000000000040130c in inner_main () #13 0x00007f38222a4c0d in invoke_main_func (body_data=3D0x7ffd8ff6b240) at init.c:308 [=E2=80=A6] (gdb) thread apply all bt Thread 17 (Thread 0x7f3819c7d700 (LWP 15795)): #0 0x00007f38221aa0a4 in read () from /gnu/store/fa6wj5bxkj5ll1d7292a70knm= yl7a0cr-glibc-2.31/lib/libpthread.so.0 #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= rpm2p6zc08ra5vh4ddag7ww-libgc-8.0.4/lib/libgc.so.1 #3 0x00007f38221e59c2 in GC_with_callee_saves_pushed () from /gnu/store/zg= 126cjicrpm2p6zc08ra5vh4ddag7ww-libgc-8.0.4/lib/libgc.so.1 #4 0x00007f38221e5a6c in GC_do_blocking () from /gnu/store/zg126cjicrpm2p6= zc08ra5vh4ddag7ww-libgc-8.0.4/lib/libgc.so.1 #5 0x00007f38223036b5 in scm_without_guile (func=3D0x7f3822296050 , data=3D0x7f3819c7ca30) at threads.c:706 #6 0x00007f382229641b in finalization_thread_proc (unused=3D) 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 thread. Ludo=E2=80=99.