From: Roel Janssen <roel@gnu.org>
To: 39997@debbugs.gnu.org
Subject: bug#39997: High CPU load and no return value with 3.0.0
Date: Mon, 09 Mar 2020 13:13:21 +0100 [thread overview]
Message-ID: <1dc6670b0cd28fb5a899fdf7afe0624007747c81.camel@gnu.org> (raw)
Dear Guile hackers,
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?
This could be completely off-topic:
I also noticed that the function "read-string!/partial" (used by the
md5 module) no longer appears in the manual since the Guile 2.2. Is
the usage of this function considered deprecated?
Kind regards,
Roel Janssen
next reply other threads:[~2020-03-09 12:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-09 12:13 Roel Janssen [this message]
2020-03-11 11:07 ` bug#39997: High CPU load and no return value with 3.0.0 Ludovic Courtès
2020-03-11 13:03 ` Roel Janssen
2020-03-11 14:05 ` Ludovic Courtès
2020-03-11 14:11 ` Roel Janssen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1dc6670b0cd28fb5a899fdf7afe0624007747c81.camel@gnu.org \
--to=roel@gnu.org \
--cc=39997@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).