From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 08 09:03:21 2022 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 To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#53506: guix-packages-base.drv leads to segfault on i686-linux 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=22'?= =?utf-8?Q?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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53506 Cc: 53506@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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