From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Abou Samra Newsgroups: gmane.lisp.guile.devel Subject: =?UTF-8?Q?Re=3a_=e2=80=9cToo_many_root_sets=e2=80=9d_when_calling_c?= =?UTF-8?Q?ompile_frequently?= Date: Fri, 19 Aug 2022 00:33:03 +0200 Message-ID: References: <8e80efa7-ca95-0472-f1b4-aaa4aabc75ab@abou-samra.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15899"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Aug 19 00:33:36 2022 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOo52-0003yC-R9 for guile-devel@m.gmane-mx.org; Fri, 19 Aug 2022 00:33:36 +0200 Original-Received: from localhost ([::1]:52220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOo51-0000lq-Ov for guile-devel@m.gmane-mx.org; Thu, 18 Aug 2022 18:33:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOo4b-0000lW-2M for guile-devel@gnu.org; Thu, 18 Aug 2022 18:33:10 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.130]:50701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOo4Z-00069t-4E for guile-devel@gnu.org; Thu, 18 Aug 2022 18:33:08 -0400 Original-Received: from [172.20.10.3] ([37.172.186.127]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.168]) with ESMTPSA (Nemesis) id 1MsrV2-1nVjY02SMK-00tDJk for ; Fri, 19 Aug 2022 00:33:04 +0200 Content-Language: en-US In-Reply-To: <8e80efa7-ca95-0472-f1b4-aaa4aabc75ab@abou-samra.fr> X-Provags-ID: V03:K1:Ukc1e1wS9r9q9Nb4cn4A94/2/AHc222qA11otqRc/ScPcxZBgFw xZZdSa5OGpqXXTLQfWnH2fMA6DgY3n0COaEvqaCW98Bql0jQPUZVD1ExSpEf+emALDqFOmn wGgT9ZmJG+PPfvczoznbE9VgSQLIVK0odAlAMaqZBSI1jLPEEC8RRX3t2isRERw3EXtRcFI af19EYdDGO9RFpGcslG+g== X-UI-Out-Filterresults: notjunk:1;V03:K0:LV8NNdpLYgc=:I+GjEjJoX0iQNrcrPNBos+ z+DPLLfLrblHUl3e2cQHVe9BynR/H/6XDNqb6tc5z+20GLc85dryKsGYeIym97B3jx5xzvb5d f38t46D519hWFNWE+SkXp72VkYBa1hIMaKcXg7iEwh1g8pR7P+yJ+NiJCVP5MSDMZ15zjYbfZ UKcX7xAvTgyHIc+2y0rePa8Ug8t53XtZtpqi4F0IrZPIhWiWXoCBi/fwOboaa1zjShDNJmjkm IbrAg0Y859QXeIAgqhs1q3kCbmCSL3U/GrQOChfuTXfTH+nkT5jdShmkm0GzueDkitGTiDrm7 YmMfM9h+V7cM3AauW9y1SJzvXcK42sKi943G99mqcETx6mADjUI3rlyBKnMSyRriYDr2zbO1k kgxC3A3govccMWOQJrV0bbSOjc9y74cyzhQIEiuRAlzI1grD6UN1qRgIk8F6W6kNFg7dElPP4 g6P31gSwrXGd9G34fs5JiGc33IwHP9M+4XdWG+1Kzfnwefe44Kplj3q3+lq7u7INaCf+69QLF 1lrx1vI7IAkkY5wwSFsxeGabyRFKarOjblgGLQau+aKIPEKuZzRjEl9gFHI3UW1M7shhHuVul t7cxoJRwcxpX3+9snBtGI+RmVW/QroHnPJL1YKiflJHekQ6aFfmrn1O01bgwZ7uxbirfkQl28 74OLRN1Rz2vWT4VnY2LTsGP+zUPznlfs01xLWEY0pW8DfTK3BOXNJ1moESzBgq1Ep7URJhvab RoETPjhqROe8GEVw/k73kWnEm+1VdZXLX1NEHw== Received-SPF: none client-ip=212.227.126.130; envelope-from=jean@abou-samra.fr; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21306 Archived-At: Le 19/08/2022 à 00:18, Jean Abou Samra a écrit : > Calling the Guile compiler often causes this BDWGC error: “Too > many root sets”. > > scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do > ((i 0 (1+ i))) ((eqv? i n)) expr expr* ...)) > scheme@(guile-user)> (use-modules (system base compile)) > scheme@(guile-user)> (repeat 10000 (compile 5)) > Too many root sets > Abandon (core dumped) > > Any idea what is going on here? Should I report it as a bug? > Is there a workaround? Interestingly: scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do ((i 0 (1+ i))) ((eqv? i n)) expr expr* ...)) scheme@(guile-user)> (use-modules (system base compile)) scheme@(guile-user)> (repeat 10000 (compile 5 #:to 'bytecode)) scheme@(guile-user)> (use-modules (system vm loader)) scheme@(guile-user)> (repeat 10000 (load-thunk-from-memory (compile 5 #:to 'bytecode))) Too many root sets Abandon (core dumped) So the problem lies in the VM loading infrastructure. (This is as far as I can investigate for now.)