From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cCJsBvBuXF98AwAA0tVLHw (envelope-from ) for ; Sat, 12 Sep 2020 06:47:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kPzMAPBuXF/cZgAAB5/wlQ (envelope-from ) for ; Sat, 12 Sep 2020 06:47:12 +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 2C15694062D for ; Sat, 12 Sep 2020 06:47:11 +0000 (UTC) Received: from localhost ([::1]:55604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGzJU-0003Uz-G3 for larch@yhetil.org; Sat, 12 Sep 2020 02:47:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGzJO-0003Ur-Fy for bug-guix@gnu.org; Sat, 12 Sep 2020 02:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGzJO-0006jN-7J for bug-guix@gnu.org; Sat, 12 Sep 2020 02:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGzJO-0000J6-5H for bug-guix@gnu.org; Sat, 12 Sep 2020 02:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43334: Cuirass crashes Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Sep 2020 06:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43334 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christopher Baines Received: via spool by 43334-submit@debbugs.gnu.org id=B43334.15998931991152 (code B ref 43334); Sat, 12 Sep 2020 06:47:02 +0000 Received: (at 43334) by debbugs.gnu.org; 12 Sep 2020 06:46:39 +0000 Received: from localhost ([127.0.0.1]:46059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGzJ1-0000IW-FK for submit@debbugs.gnu.org; Sat, 12 Sep 2020 02:46:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGzIz-0000IH-3T for 43334@debbugs.gnu.org; Sat, 12 Sep 2020 02:46:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58671) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGzIs-0006gA-4I; Sat, 12 Sep 2020 02:46:30 -0400 Received: from [2a01:e0a:19b:d9a0:9d9d:97cc:d92a:8ac0] (port=47882 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kGzIr-0006Fl-DY; Sat, 12 Sep 2020 02:46:29 -0400 From: Mathieu Othacehe References: <87d02szfq5.fsf@gnu.org> <87y2lgglt8.fsf@cbaines.net> Date: Sat, 12 Sep 2020 08:46:28 +0200 In-Reply-To: <87y2lgglt8.fsf@cbaines.net> (Christopher Baines's message of "Fri, 11 Sep 2020 20:22:59 +0100") Message-ID: <87363nijaz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 43334@debbugs.gnu.org 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: cxXuIMu18F5K Hey Chris, >> It looks like a memory allocation failed causing a Cuirass/Guile crash. > > So, I've seen this before but in a slightly different context, [1]. To > summarise, with Guile built with libgc@8 the Guix Data Service couldn't > processes Guix revisions, because the code it had Guile built with > libgc@8 run caused it to consistently crash with this error. The > workaround was to add a Guile variant built with libgc@7 and use this > for the guix package [2]. > > 1: http://issues.guix.info/40525 > 2: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40684 > > I'm not quite sure what Guile process is crashing here, but switching to > use Guile built with libgc@7 might help. Thanks for pointing to this, I somehow missed it at the time. I collected the strace log which sounds indeed really similar: --8<---------------cut here---------------start------------->8--- [pid 49511] getdents64(271, 0x7f5374304930 /* 455 entries */, 32768) = 32760 [pid 42583] mmap(0x7f5361976000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory) [pid 42583] write(2, "mmap(PROT_NONE) failed", 22) = 22 [pid 42583] write(2, "\n", 1) = 1 [pid 42583] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 [pid 42583] rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0 [pid 42583] getpid() = 42562 [pid 42583] gettid() = 42583 [pid 42583] tgkill(42562, 42583, SIGABRT) = 0 [pid 42583] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 42583] --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=42562, si_uid=997} --- [pid 42738] <... read resumed> ) = ? --8<---------------cut here---------------end--------------->8--- The abort seem to be received by the finalizer thread. I can try to use guile-3.0/libgc-7 to confirm this theory, but I guess we'll need to dig deeper. Thanks, Mathieu