bug#60522: make-vector takes 100% cpu if called without argument in the REPL

2023-01-03 Thread Sascha Ziemann
The following throws an error:
guile -c '(make-vector)'

But the evaluation of '(make-vector)' in the REPL generats just a warning:

;;; :1:0: warning: possibly wrong number of arguments to `make-vector'

and seems to enter an endless loop afterwards.

Environment:
$ guile --version
guile (GNU Guile) 3.0.5
Packaged by Debian (3.0.5-deb+3.0.5-4)
Copyright (C) 2021 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ uname -a
Linux l2108 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13)
x86_64 GNU/Linux





bug#60522: make-vector takes 100% cpu if called without argument in the REPL

2023-01-03 Thread tomas
On Tue, Jan 03, 2023 at 05:57:19PM +0100, Sascha Ziemann wrote:
> The following throws an error:
> guile -c '(make-vector)'
> 
> But the evaluation of '(make-vector)' in the REPL generats just a warning:
> 
> ;;; :1:0: warning: possibly wrong number of arguments to `make-vector'
> 
> and seems to enter an endless loop afterwards.

Can confirm for 3.0.8.57-bc3b1. It actually eats CPU, can be interrupted
with c-C.

Cheers
-- 
t
> 


signature.asc
Description: PGP signature


bug#60528: uri->string swallows mandatory slashes

2023-01-03 Thread Liliana Marie Prikler
Hi folks,

Below some unexpected behaviour observed in Guile 3.0.8, but it also
dates back to 2.2.7 and possibly earlier versions.

scheme@(guile-user)> ,use (web uri)
scheme@(guile-user)> (string->uri "file:///home") 
$1 = #< scheme: file userinfo: #f host: #f port: #f path: "/home"
query: #f fragment: #f>
scheme@(guile-user)> (uri->string $1)
$2 = "file:/home"
scheme@(guile-user)> (uri->string (build-uri 'file #:host "" #:path
"/home")) 
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `uri-error' with args `("Expected valid host: ~s" (""))'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

Cheers