From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KPPuGCuZAmJY1wAAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 17:24:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qJChESuZAmJVXwEAG6o9tA (envelope-from ) for ; Tue, 08 Feb 2022 17:24:11 +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 F387214741 for ; Tue, 8 Feb 2022 17:24:10 +0100 (CET) Received: from localhost ([::1]:43686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHTHl-00030I-P0 for larch@yhetil.org; Tue, 08 Feb 2022 11:24:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHR6M-0003IH-N9 for bug-guix@gnu.org; Tue, 08 Feb 2022 09:04:15 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHR6A-0002FV-Am for bug-guix@gnu.org; Tue, 08 Feb 2022 09:04:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHR6A-0004Ex-4J for bug-guix@gnu.org; Tue, 08 Feb 2022 09:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53506: guix-packages-base.drv leads to segfault on i686-linux Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 08 Feb 2022 14:04:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 53506-submit@debbugs.gnu.org id=B53506.164432900116247 (code B ref 53506); Tue, 08 Feb 2022 14:04:02 +0000 Received: (at 53506) by debbugs.gnu.org; 8 Feb 2022 14:03:21 +0000 Received: from localhost ([127.0.0.1]:45924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHR5V-0004Dz-H3 for submit@debbugs.gnu.org; Tue, 08 Feb 2022 09:03:21 -0500 Received: from mail-qv1-f47.google.com ([209.85.219.47]:40605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHR5T-0004Dn-JC for 53506@debbugs.gnu.org; Tue, 08 Feb 2022 09:03:20 -0500 Received: by mail-qv1-f47.google.com with SMTP id v10so5904708qvk.7 for <53506@debbugs.gnu.org>; Tue, 08 Feb 2022 06:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=4Dx5EKr87MVMjnYi3jYzLuV8kixBfYIwKT1TxHs3veY=; b=BRFPavvd5+52MPvXYLFg13DJywbGibbEWf5Jwo6IeacCIe2iNfz9G9WUzNHdZdZH8R CPDejJcMYsMdFeZDhmhhFcSp8Dkft/ta1xPrt/qUX4a3F4xLw6CqsvZMOHyqKOyijQ85 Ad8XBXQiT1FrXyi4ms1uszsFg7Kniz3nQbuadgPoOqHnmHVfXIafVDzmigvqpvsk2RYP lDr7npNK3xki1bcpf4CqI6Yq8MZEfcEmHRtyrcDJbZ+zVigS/ZSn4obx1twSV8I2AfU7 mESLPBXeIfW7fLU78Sj7A3NfZ8cxg+RN4NFtRkFhdBwqzILed2FkK9TzQkg+4LJtTMg9 dLjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=4Dx5EKr87MVMjnYi3jYzLuV8kixBfYIwKT1TxHs3veY=; b=LnBIlwe8Vz5AWZCj+4U4wcDmur/k4OKatgHiB/eN4AzbnMoScOolJoZK0KZBps5viJ YmdjffhQOju8Kk4EDnbJdGEMPCq1k4oKwjnMhg6azZZ7JInv1U39Z34YmPv4qyoKi5VK XCPtV/6jne4QM4g+ewUahkM3RAOwFIpw8Kp4OIZl9u/JOyFlKyKSFI2nmee+D0ccNvHr rhbBbKIUkjCsNH62PJewcLRco2TxdgqyA5YJ3RvPtSvi2RUDIjAGa4ezRx3CYwGobgYI 3sOnzPmSqTcXj3jfe8Wu85ztb4HGkwqRl0tmBErgkBEnAIoWArbVPrDUz8Hq5t/qTDQO 8Emw== X-Gm-Message-State: AOAM531i4g01Djiv3Hp3YHeuACNP24r+UVS0UUO2dHJWBQdaYGcZIGiv NajBnIFt5KidUrrHQB3ocL6LXmN+whs= X-Google-Smtp-Source: ABdhPJztjW1dox/NOSw4efwF25KxKvcN8lgJA8Y0PCtvmfx17nNZTl6AHRZa2EookpGmF+R0HHBtYQ== X-Received: by 2002:a05:6214:234c:: with SMTP id hu12mr3124670qvb.116.1644328993437; Tue, 08 Feb 2022 06:03:13 -0800 (PST) Received: from hurd (dsl-154-179.b2b2c.ca. [66.158.154.179]) by smtp.gmail.com with ESMTPSA id l202sm6952035qke.66.2022.02.08.06.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 06:03:12 -0800 (PST) From: Maxim Cournoyer References: <87o841qdh4.fsf@inria.fr> <87czkhqcma.fsf@gnu.org> <8735kue3r8.fsf@gnu.org> Date: Tue, 08 Feb 2022 09:03:11 -0500 In-Reply-To: <8735kue3r8.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 07 Feb 2022 23:00:27 +0100") Message-ID: <878rul317k.fsf@gmail.com> 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-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: , Cc: 53506@debbugs.gnu.org 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=1644337451; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=4Dx5EKr87MVMjnYi3jYzLuV8kixBfYIwKT1TxHs3veY=; b=fvdbcH017Oo+CzPU/JUKVF54DQOSKRNnDFqzHu3DdwswrY6CvgUlrSIHChZZ3PI/x3qCw6 GYiRVnuADBQIWdfUxKGfFkwND+PfzglNBh9Rr1+RvmIPoAB3Yctpez1Vyl8PVIR0WIgZsD QIJbXtjPH2R5Lh/5G82pDPK7lnOnOszFM52IBOmF9DxsFufxegalIukbkuQBaj1Q8j9i4B 31HFcV2hQdkDa0tVje0rHjSg7LYLcLg4+q+OrT1z8mhihHjMSQDxucWf5g3JqP4b73Zy0B 5xMIfq3q1mqPGpcnwpH4ujv9OnTokitIt2fsk7k+cFd34ASlgKxVB7JInbm/Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644337451; a=rsa-sha256; cv=none; b=AMNicoFtIktNzSQBcECgBxXtznwUSKGu9XsT6fKiNAJU0nUPlygTjqKcYURte162zZFg6t I1HEALnraeGzH3x0eO/b81Klu4hXSgbF1Dl+z1cTWTaBmmB+jZ/12JXn9PubQZo0lsly2F IZo2F+W1kS1yCK6b+wZBQFnVEfgeKnl9nJIYSQKY908en2wbfWRohLM3TnGyZCLXnodYnp sKdgQU3+VcdqtkECN/KxH6Rzsy44YDueIqTAPCr5/NOg2k7VirzEkFR9aojmWalupbjSq+ Rb/SJxIura+nrPwE8y5fqZdHAAFwiMn/7ZI9D76XfO0+9+THRbhFgyB0YQTlcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BRFPavvd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BRFPavvd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: F387214741 X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: LLQ0/kbnTorH Hi Ludovic! Ludovic Court=C3=A8s writes: > Hi! > > Ludovic Court=C3=A8s skribis: > >> Ludovic Court=C3=A8s skribis: >> >>> =E2=80=98guix-packages-base.drv=E2=80=99 fails to build due to a Guile = segfault (!): >>> >>> [653/656] compiling... 99.1% of 328 files[654/656] compiling... >>> 99.4% of 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-base.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. > > An update: with changes made in Guile =E2=80=9Cmain=E2=80=9D over the las= t couple of > weeks, memory consumption is 20% lower and compilation is 20% faster > compared to 3.0.7 (on x86_64): > > $ ./pre-inst-env time -f '%U seconds\n%M KiB' guile -c '(use-modules (sys= tem base compile)) (compile-file "gnu/packages/crates-io.scm" #:optimizatio= n-level 1)' > 53.84 seconds > 795972 KiB > $ ./pre-inst-env time -f '%U seconds\n%M KiB' /data/src/guile-3.0/meta/gu= ile -c '(use-modules (system base compile)) (compile-file "gnu/packages/cra= tes-io.scm" #:optimization-level 1 #:opts (list #:inlinable-exports? #f #:r= esolve-free-vars? #f))' > 43.00 seconds > 618724 KiB > $ > $ guile --version > guile (GNU Guile) 3.0.7 > Copyright (C) 2021 Free Software Foundation, Inc. > > License LGPLv3+: GNU LGPL 3 or later . > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > $ (cd /data/src/guile-3.0; git log | head -1) > commit 2aed3c117c2d667ecca1e38a016f2cb4b524ab50 Impressive! Keep up the good work! Thanks, Maxim