bug#39997: High CPU load and no return value with 3.0.0

Ludovic Courtès <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Roel Janssen <[email protected]> skribis:

> On Wed, 2020-03-11 at 12:07 +0100, Ludovic Courtès wrote:

[...]

>> The Guix package has this patch:
>> 
>>         '(begin
>>            ;; Work around miscompilation on Guile 3.0.0 at -O2:
>>            ;; <https://bugs.gnu.org/39251>;.
>>            (substitute* "src/md5.scm"
>>              (("\\(define f-ash ash\\)")
>>               "(define f-ash (@ (guile) ash))\n")
>>              (("\\(define f-add \\+\\)")
>>               "(define f-add (@ (guile) +))\n"))
>>            #t)
>> 
>> It’s very likely that you’re hitting this problem.
>
> Yes!  Thanks for sharing this fix.
> I applied the same changes to my code and now I don't encounter the bug
> anymore.
>
> I tested the patched code with both guile-2.2 and guile-3.0.  Do you
> know whether this will also work with guile-2.0?  (I'd like to keep
> things compatible with guile-2.0 for a few more years).

Yes, the change above also works for Guile 2.0.

Ludo’.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.