From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0C2kMD/g7mGBFQAAgWs5BA (envelope-from ) for ; Mon, 24 Jan 2022 18:22:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kLcCLj/g7mH2TgAA9RJhRA (envelope-from ) for ; Mon, 24 Jan 2022 18:22:07 +0100 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 5D40F47140 for ; Mon, 24 Jan 2022 18:22:07 +0100 (CET) Received: from localhost ([::1]:38358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC32c-0002ao-H4 for larch@yhetil.org; Mon, 24 Jan 2022 12:22:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC2wk-0003cR-AQ for bug-guix@gnu.org; Mon, 24 Jan 2022 12:16:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC2wk-0007d4-0N for bug-guix@gnu.org; Mon, 24 Jan 2022 12:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nC2wj-0004cX-NR for bug-guix@gnu.org; Mon, 24 Jan 2022 12:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53506: guix-packages-base.drv leads to segfault on i686-linux Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 24 Jan 2022 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53506 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53506@debbugs.gnu.org Received: via spool by 53506-submit@debbugs.gnu.org id=B53506.164304452215155 (code B ref 53506); Mon, 24 Jan 2022 17:16:01 +0000 Received: (at 53506) by debbugs.gnu.org; 24 Jan 2022 17:15:22 +0000 Received: from localhost ([127.0.0.1]:45569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC2w5-0003w3-V8 for submit@debbugs.gnu.org; Mon, 24 Jan 2022 12:15:22 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:55380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC2w2-0003mF-NC for 53506@debbugs.gnu.org; Mon, 24 Jan 2022 12:15:21 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2125C123 for <53506@debbugs.gnu.org>; Mon, 24 Jan 2022 18:15:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eqm9dAjNHXHk for <53506@debbugs.gnu.org>; Mon, 24 Jan 2022 18:15:10 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 6366EF8 for <53506@debbugs.gnu.org>; Mon, 24 Jan 2022 18:15:10 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o841qdh4.fsf@inria.fr> Date: Mon, 24 Jan 2022 18:15:09 +0100 In-Reply-To: <87o841qdh4.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 24 Jan 2022 17:56:39 +0100") Message-ID: <87czkhqcma.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 2125C123 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[53506@debbugs.gnu.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643044927; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=CPrIZdGRDtGD63Jt+1A/we8EzQwm9uY5PPW6UFUY0mE=; b=I5gpxILlEK4iK+FNR6pirzp3uG9SNgrVc64FdwudXk+EC9JclEtnnayMS1Y2AHF2iaNeuF cjdfyEILeGXGsCJ2byVRQhHQDUacyz6Vi3ZEZPaH5kn7EcEPN+/a5cFaGytELsHlOy6UH8 2wPXq9M/0c7M/akaouA0oAbJm6mKsNT1aOTYU7VmEnS3Xh8wkVs9oJFroucaHElpDsaKGT HrJQcF7YiPj57xtibiV+YD+VkfGEim4ZDHLpqI1YA/5i6kZcwDT7taDoUN8Qr5dSqmKw7n p5RigSE0d2Wk4QxTULnR6Jw7VvIcE9XFyTvVTECs55NHEhKoY7M/ZMlcTkdjKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643044927; a=rsa-sha256; cv=none; b=TcCc3cUz6pd0Y5JL/cSVmAX8CPWIswhssOu721aMoq+noVHoLmfTTxvJF3FL1sUnKXreBQ ZHwUIQwYXyZ2W1sqxCaOAC2e+kEzcd2AX7WGiEtaviP3WAjB2PPh+Sdrj0Fw+ioVHr5nA8 NgLL9tT7XknxpRuGCWAubyu6Y4bTyWsrMxjTO5RaGDDsRjDZxOjXCitkuljOlY4ba+u3wr EYoJ4+AKvRzuL1kFa+79uQ4HynLrt9fi1oKCkUkFswTZD3E1XJjhtjI1Y5pRp4QL9lF9au MhPLwBhYbYBXRkOGQuN7cTFtGPFJZxebnaV4n8xsG/HSR9u3Movyw/RyJfcLaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5D40F47140 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: rGrQFTIeKus7 Ludovic Court=C3=A8s skribis: > =E2=80=98guix-packages-base.drv=E2=80=99 fails to build due to a Guile se= gfault (!): > > [653/656] compiling... 99.1% of 328 files[654/656] compiling... 99.4% o= f 328 files[655/656] compiling... 99.7% of 328 filesGC Warning: Failed to = expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > > [...] > > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > builder for `/gnu/store/cnrmdbcyy8r9bs2gl2kgpnyplivrzf5c-guix-packages-ba= se.drv' failed due to signal 11 (Segmentation fault) > @ build-failed /gnu/store/cnrmdbcyy8r9bs2gl2kgpnyplivrzf5c-guix-packages-= base.drv - 1 builder for `/gnu/store/cnrmdbcyy8r9bs2gl2kgpnyplivrzf5c-guix-= packages-base.drv' failed due to signal 11 (Segmentation fault) On closer inspection, this is caused by OOM, with Guile peaking at 2.8G resident (!) at that point, more than on x86_64. I=E2=80=99m quite sure this is because the compiler resorts to bignums more= than on x86_64 (fixnums are smaller), thereby consuming more heap. Splitting creates-io.scm into two files might work as a temporary workaround since the compiler creates a number of labels (integers) roughly proportional to the number of lines in the file: --8<---------------cut here---------------start------------->8--- $ wc -l gnu/packages/*.scm|sort -k1 -n |tail 13977 gnu/packages/java.scm 15275 gnu/packages/bioconductor.scm 15929 gnu/packages/bioinformatics.scm 16086 gnu/packages/haskell-xyz.scm 20378 gnu/packages/lisp-xyz.scm 28770 gnu/packages/python-xyz.scm 29960 gnu/packages/emacs-xyz.scm 32071 gnu/packages/cran.scm 70442 gnu/packages/crates-io.scm 690662 totalo --8<---------------cut here---------------end--------------->8--- Background: https://lists.gnu.org/archive/html/guile-devel/2017-10/msg00035.html https://lists.gnu.org/archive/html/guile-devel/2020-02/msg00023.html https://wingolog.org/archives/2020/06/03/a-baseline-compiler-for-guile Ludo=E2=80=99.