From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#39997: High CPU load and no return value with 3.0.0 Date: Wed, 11 Mar 2020 12:07:33 +0100 Message-ID: <87eetzm9oq.fsf@gnu.org> References: <1dc6670b0cd28fb5a899fdf7afe0624007747c81.camel@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="122058"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 39997@debbugs.gnu.org To: Roel Janssen Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Mar 11 12:08:08 2020 Return-path: Envelope-to: guile-bugs@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 1jBzDc-000Vdw-2H for guile-bugs@m.gmane-mx.org; Wed, 11 Mar 2020 12:08:08 +0100 Original-Received: from localhost ([::1]:49644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBzDb-0008Qx-4t for guile-bugs@m.gmane-mx.org; Wed, 11 Mar 2020 07:08:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53291) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBzDX-0008Qr-Qt for bug-guile@gnu.org; Wed, 11 Mar 2020 07:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBzDW-0008Oc-On for bug-guile@gnu.org; Wed, 11 Mar 2020 07:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBzDW-0008OV-LQ for bug-guile@gnu.org; Wed, 11 Mar 2020 07:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jBzDW-0007mE-GL for bug-guile@gnu.org; Wed, 11 Mar 2020 07:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 11 Mar 2020 11:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39997 X-GNU-PR-Package: guile Original-Received: via spool by 39997-submit@debbugs.gnu.org id=B39997.158392486429866 (code B ref 39997); Wed, 11 Mar 2020 11:08:02 +0000 Original-Received: (at 39997) by debbugs.gnu.org; 11 Mar 2020 11:07:44 +0000 Original-Received: from localhost ([127.0.0.1]:53663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBzDD-0007le-RD for submit@debbugs.gnu.org; Wed, 11 Mar 2020 07:07:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBzDC-0007lP-EF for 39997@debbugs.gnu.org; Wed, 11 Mar 2020 07:07:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jBzD7-000858-CB for 39997@debbugs.gnu.org; Wed, 11 Mar 2020 07:07:37 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37814 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jBzD5-00084A-Lu; Wed, 11 Mar 2020 07:07:36 -0400 In-Reply-To: <1dc6670b0cd28fb5a899fdf7afe0624007747c81.camel@gnu.org> (Roel Janssen's message of "Mon, 09 Mar 2020 13:13:21 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9640 Archived-At: Hi, Roel Janssen skribis: > When I use the "md5" module from guile-lib (release 0.2.6.1) together > with the following snippet in Guile 3.0.0, it never returns, while on > Guile 2.2.6, it returns the MD5 sum of the input string: > --- > (use-modules (md5)) > > (define (md5-from-string input) > (call-with-input-string input md5)) > > (define (random-ascii length) > "Returns a random string of ASCII characters of length LENGTH." > (list->string > (map (lambda _ (integer->char (+ (random 95) 32))) > (iota length)))) > > (display > (md5-from-string > (random-ascii 32))) > --- > > Could you point me in the right direction for finding the problem? The Guix package has this patch: '(begin ;; Work around miscompilation on Guile 3.0.0 at -O2: ;; . (substitute* "src/md5.scm" (("\\(define f-ash ash\\)") "(define f-ash (@ (guile) ash))\n") (("\\(define f-add \\+\\)") "(define f-add (@ (guile) +))\n")) #t) It=E2=80=99s very likely that you=E2=80=99re hitting this problem. HTH! Ludo=E2=80=99.