Guile misbehaves in case of escapes and carriage returns, sometimes breaking "guix pull"

OpenSubmitted by Grigory Shepelev.
Details
2 participants
  • Maxime Devos
  • Grigory Shepelev
Owner
unassigned
Severity
important
G
G
Grigory Shepelev wrote on 26 Dec 2021 11:14
Bug report
(address . bug-guix@gnu.org)
CAGJuR-5kOYCLNF6Qe6Omr+tH_AHfH30KKc8XDrpH3SKwTJH=mQ@mail.gmail.com
Today's guix pull gives the following bug.
Attachment: file
shegeley@zone51 ~$ guix pull
Updating channel 'nonguix' from Git repository at 'https://gitlab.com/nonguix/nonguix'...
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from these channels:
Computing Guix derivation for 'x86_64-linux'... -ice-9/read.scm:126:4: In procedure read-string:
gnu/packages/virtualization.scm:640:1: invalid character in escape sequence: #\return
guix pull: error: You found a bug: the program '/gnu/store/w1hd6ab7f92y0f2r1ah4yyvi205a71bc-compute-guix-derivation'
failed to compute the derivation for Guix (version: "2495582e08cf411163f0799d290fda5101141949"; system: "x86_64-linux";
host version: "1dfe8c372163d481ebebb97dd3b4cafa49906b28"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix@gnu.org>.

shegeley@zone51 ~$ guix describe
Generation 1 Dec 25 2021 11:29:17 (current)
guix 1dfe8c3
branch: master
commit: 1dfe8c372163d481ebebb97dd3b4cafa49906b28
nonguix 39e4b41
branch: master
commit: 39e4b41e5f7277b8d58084cd7aff8edde71f6572

shegeley@zone51 ~$ guix home describe
Generation 7 Dec 26 2021 12:06:08 (current)
file name: /var/guix/profiles/per-user/shegeley/guix-home-7-link
canonical file name: /gnu/store/gs67wavx1yi8073j7ab89ld9fkkjqhc5-home
channels:
nonguix:
branch: master
commit: 39e4b41e5f7277b8d58084cd7aff8edde71f6572
guix:
branch: master
commit: 1dfe8c372163d481ebebb97dd3b4cafa49906b28
configuration file: /gnu/store/r7wlaf9pqmnrharqprvhwcsxbzylwqrl-configuration.scm

shegeley@zone51 ~$ guix system describe
Generation 12 Dec 25 2021 23:09:27 (current)
file name: /var/guix/profiles/system-12-link
canonical file name: /gnu/store/cyr8pjabz8gj9a99wydqwrs1igkmzxk8-system
label: GNU with Linux 5.15.11
bootloader: grub-efi
root device: UUID: b127a177-06dd-4c1d-8ddf-53a68170f1b6
kernel: /gnu/store/hs0vfgmvpywdzv7b7q2vpw38y73d6vls-linux-5.15.11/bzImage
channels:
nonguix:
branch: master
commit: 39e4b41e5f7277b8d58084cd7aff8edde71f6572
guix:
branch: master
commit: 1dfe8c372163d481ebebb97dd3b4cafa49906b28
configuration file: /gnu/store/ha2hn9i7yd7hds9hsx1bv5jf90ibja51-configuration.scm
M
M
Maxime Devos wrote on 26 Dec 2021 12:22
Re: bug#52801: Guile inconsistently misbehaves in case of escapes and carriage returns, breaking "guix pull"
a20a798c001e83689f103a81965298b81bf94a92.camel@telenet.be
retitle 52801 Guile inconsistently misbehaves in case of escapes and carriage returns, breaking "guix pull"
severity 52801 important
thanks

Grigory Shepelev schreef op zo 26-12-2021 om 13:14 [+0300]:
Today's guix pull gives the following bug.

Seems like an instance of https://issues.guix.gnu.org/52559#15.
I took the liberty of renaming the bug report appropriately.

Anyway, here's the minimal reproducer:

Run the following in a REPL:
(call-with-input-string "\"Hello\\\rcarriage return!\"" read)
;; --> invalid character in escape sequence: #\return

Greetings,
Maxime.
M
M
Maxime Devos wrote on 26 Dec 2021 16:20
(address . control@debbugs.gnu.org)
bacc21423898e97b4b694b4d71a4fba541c7c1da.camel@telenet.be
retitle 52801 Guil misbehaves in case of escapes and carriage returns, sometimes breaking "guix pull"
severity 52801 important
thanks
M
M
Maxime Devos wrote on 26 Dec 2021 16:22
(address . control@debbugs.gnu.org)
89849eb47d0d2393a272f977e402318fa1da3371.camel@telenet.be
retitle 52801 Guile misbehaves in case of escapes and carriage returns, sometimes breaking "guix pull"
severity 52801 important
thanks
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 52801@debbugs.gnu.org