From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sPErBcQAGWZ38gAAqHPOHw:P1 (envelope-from ) for ; Fri, 12 Apr 2024 11:37:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sPErBcQAGWZ38gAAqHPOHw (envelope-from ) for ; Fri, 12 Apr 2024 11:37:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=ruKAaKjt; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712914628; 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=mkSSTBDlziE099EF+00sj6ds+WxmMVU8AyZInxGilnc=; b=N2lv+70+87SEH3RwmxrUZq1FGCTvIEfEybG+2TIfev67+uQxmaIIKXtRrsStg0iwufxWjk ZBHklTdWNL4utqu7/FJoMxURYG2si5Q2aMNqdwA0x5m/2/cF9aJsD95/SqdihkeZzN1AiH lgGKWNV2JVhZ36gu/RR2mnjN2i34121ZcuoYh2s/Wukb/l3QotxeHpbYQ1rXPXgdnvpk0j 94QqwCNT+5XtYE7qNdyq/f5bVwSkpXlb/i5atQIbTiSpDcTQkPQrJIQIvn9euXZJs1IkqT nO6xXOV1BwQLvNkMskkceaSEduyJmWYryVyd7bZ4rrFztIfgjPhVPRZFQPUIjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712914628; a=rsa-sha256; cv=none; b=u8IfyP9Be7ZNbHyCzbeO52X7EYH4W6DmvNf6Hsdr8Kk6D4Pj9utV1OMmFFUpGnwzEhAWNH 9j4kpGxdJemhffYyQc3ZnChUfs1HezuThU6Icb/qqpczYySYkYPdCFn9BGiRa/9RPsOCLL pSHAALm8A1MdITPbBlllPPU5yaT6pDzeYpQGaJDrYE5eex2iQVbbgqQKyzGOy8xsp3qU1z PNg1OeeWOuiYq8/it0v+9/W4m9Zc2pJPDIM6zCg+aaiCpSgMFaVCfQzsukrGzOORMvvai5 Hw/iqcwUDqM1eOFOCStO95Ioxh6h82/Z672BfJETVFrKg76KLuFc9nymwdQfCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=ruKAaKjt; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) 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 0034D371BC for ; Fri, 12 Apr 2024 11:37:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvDL7-00069V-2U; Fri, 12 Apr 2024 05:36:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvDL4-000674-Rl for bug-guix@gnu.org; Fri, 12 Apr 2024 05:36:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvDL4-0005GQ-61 for bug-guix@gnu.org; Fri, 12 Apr 2024 05:36:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvDLD-00039b-Hv for bug-guix@gnu.org; Fri, 12 Apr 2024 05:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#59365: make-dynamic-linker-cache OOMs for LLVM 15 on i686-linux Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 12 Apr 2024 09:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59365 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59365@debbugs.gnu.org Cc: Romain Garbage , Greg Hogan , Maxim Cournoyer , Marius Bakke Received: via spool by 59365-submit@debbugs.gnu.org id=B59365.171291457111638 (code B ref 59365); Fri, 12 Apr 2024 09:37:03 +0000 Received: (at 59365) by debbugs.gnu.org; 12 Apr 2024 09:36:11 +0000 Received: from localhost ([127.0.0.1]:57890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvDKM-00031R-1Y for submit@debbugs.gnu.org; Fri, 12 Apr 2024 05:36:11 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:58021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvDKF-0002zU-9m for 59365@debbugs.gnu.org; Fri, 12 Apr 2024 05:36:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=mkSSTBDlziE099EF+00sj6ds+WxmMVU8AyZInxGilnc=; b=ruKAaKjt7yMNp9GOR30ggdc5zVbFW9drYw7wzDS0R2JpqJZKBm9PqE92 h/tKEP/bVvI6uangtLLLUghdY9BqMIM1e6eeSKCDHC4pHwhQa1nMW62OX dPcX/O1Oby3KjXyoKu02ClI4dV5SbABHmN0bNTfXNYgJwdNt5PJIbfc9w 8=; X-IronPort-AV: E=Sophos;i="6.07,195,1708383600"; d="scan'208";a="84585832" Received: from unknown (HELO ribbon) ([193.50.110.177]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 11:35:47 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <877cznidn8.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 22 Nov 2022 09:42:19 +0100") References: <87mt8o14xd.fsf@gnu.org> <877cznidn8.fsf@gnu.org> Date: Fri, 12 Apr 2024 11:35:47 +0200 Message-ID: <87le5igbyk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.13 X-Spam-Score: 4.13 X-Migadu-Queue-Id: 0034D371BC X-Migadu-Scanner: mx12.migadu.com X-TUID: Ko2Efoenh0/L Hello, Ludovic Court=C3=A8s skribis: >> GC Warning: Failed to expand heap by 285216768 bytes >> GC Warning: Failed to expand heap by 268439552 bytes >> GC Warning: Out of Memory! Heap size: 3620 MiB. Returning NULL! >> Warning: Unwind-only out of memory exception; skipping pre-unwind hand= ler. >> Warning: Unwind-only out of memory exception; skipping pre-unwind hand= ler. >> Warning: Unwind-only out of memory exception; skipping pre-unwind hand= ler. >> >> (excerpt from https://ci.guix.gnu.org/build/1702995/log/raw) >> >> Not sure why this phase uses so much memory. Ideas? > > Yes: the gremlin.scm code uses =E2=80=98file-dynamic-info=E2=80=99, which= loads the > whole file in memory. Ridiculous. > > We should instead mmap it (but there are no =E2=80=98mmap=E2=80=99 bindin= gs in Guile, > yet) or arrange to load just the relevant parts (we=E2=80=99ll have to ch= eck but > maybe =E2=80=98file-dynamic-info=E2=80=99 can find everything it needs at= the beginning > of a file, the PT_DYNAMIC segment.) Another instance of the problem that we just stumbled upon is =E2=80=98guix= pack -RR=E2=80=99: that too tries to load entire ELF files in memory, in =E2=80=98elf-loader-compile-flags=E2=80=99. Mmap! Ludo=E2=80=99.