GNU bug report logs - #71936
[Cuirass] ‘cuirass remote-server’ crashes badly when it receives garbage

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Thu, 4 Jul 2024 07:33:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

To reply to this bug, email your comments to 71936 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#71936; Package guix. (Thu, 04 Jul 2024 07:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 04 Jul 2024 07:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: [Cuirass] ‘cuirass remote-server’
 crashes badly when it receives garbage
Date: Thu, 04 Jul 2024 09:32:02 +0200
From the ‘cuirass remote-server’ log:

--8<---------------cut here---------------start------------->8---
2024-07-01 13:33:35 error: invalid log received from 141.80.181.254
2024-07-01 13:33:37 fetching 3 outputs of '/gnu/store/608c7ch5d34h9z0mavmpjm8h5jn0wjmf-exult-1.8.drv' from http://141.80.167.185:5558
2024-07-01 13:33:38 Uncaught exception in task:
2024-07-01 13:33:38 In fibers.scm:
2024-07-01 13:33:38    186:20 16 (_)
2024-07-01 13:33:38    145:21 15 (_)
2024-07-01 13:33:38 In ice-9/boot-9.scm:
2024-07-01 13:33:38   1752:10 14 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
2024-07-01 13:33:38 In cuirass/scripts/remote-server.scm:
2024-07-01 13:33:38    687:11 13 (_)
2024-07-01 13:33:38 In ice-9/boot-9.scm:
2024-07-01 13:33:38   1747:15 12 (with-exception-handler #<procedure 7f5cf21c9600 at ice-9/boot-9.scm:1831:7 (exn)> _ #:unwind? _ #:unwind-for-type _)
2024-07-01 13:33:38 In cuirass/scripts/remote-server.scm:
2024-07-01 13:33:38     430:6 11 (serve-build-requests _ #<<channel> getq: #<atomic-box 7f5cf2dbaa60 value: (() #(#<atomic-box 7f5cd4f233d0 value: W> #<procedure resume (thunk)>))> getq-gc-counter: #<atomic-box 7f5cf2dbaa50 value: 22> putq: #<atomic-box 7f5cf2dbaa30 value: (())> putq-gc-counter: #<atomic-box 7f5cf2dbaa20 value: 39>>)
2024-07-01 13:33:38 In ice-9/boot-9.scm:
2024-07-01 13:33:38   1752:10 10 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
2024-07-01 13:33:38 In cuirass/scripts/remote-server.scm:
2024-07-01 13:33:38    436:25  9 (_)
2024-07-01 13:33:38 In cuirass/remote.scm:
2024-07-01 13:33:38    483:41  8 (receive-message _ #:router? _)
2024-07-01 13:33:38 In ice-9/iconv.scm:
2024-07-01 13:33:38     75:20  7 (bytevector->string _ _ _)
2024-07-01 13:33:38 In ice-9/rdelim.scm:
2024-07-01 13:33:38    160:18  6 (read-string _)
2024-07-01 13:33:38 In ice-9/suspendable-ports.scm:
2024-07-01 13:33:38    591:33  5 (read-char _)
2024-07-01 13:33:38    522:13  4 (peek-char-and-next-cur/iconv #<input: string 7f5cd6c72150>)
2024-07-01 13:33:38 In unknown file:
2024-07-01 13:33:38            3 (port-decode-char #<input: string 7f5cd6c72150> #vu8(130 163 101 110 99 165 99 108 101 97 114 164 108 111 97 100 129 163 99 109 100 175 95 112 114 101 112 95 97 117 116 104 95 105 110 102 111 0 0 0 160 162 141 207 92 127 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 96 163 159 214 92 127 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 192 162 141 207 92 127 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 95 160 108 42 163 128 255 255 0 0 0 0 0 0 0 0 95 139 120 42 163 128 255 # ?) ?)
2024-07-01 13:33:38 In ice-9/boot-9.scm:
2024-07-01 13:33:38   1685:16  2 (raise-exception _ #:continuable? _)
2024-07-01 13:33:38   1683:16  1 (raise-exception _ #:continuable? _)
2024-07-01 13:33:38   1685:16  0 (raise-exception _ #:continuable? _)
2024-07-01 13:33:38 ice-9/boot-9.scm:1685:16: In procedure raise-exception:
2024-07-01 13:33:38 Throw to key `decoding-error' with args `("decode-char" "input decoding error" 84 #<input: string 7f5cd6c72150>)'.
2024-07-01 13:33:38 build succeeded: '/gnu/store/608c7ch5d34h9z0mavmpjm8h5jn0wjmf-exult-1.8.drv'
2024-07-01 13:33:38 Uncaught exception in task:
2024-07-01 13:33:38 In fibers.scm:
2024-07-01 13:33:38     172:8  1 (_)
2024-07-01 13:33:38 In ice-9/boot-9.scm:
2024-07-01 13:33:38   1685:16  0 (raise-exception _ #:continuable? _)
2024-07-01 13:33:38 ice-9/boot-9.scm:1685:16: In procedure raise-exception:
2024-07-01 13:33:38 Throw to key `psql-query-error' with args `(#f #f "no connection to the server\n")'.
2024-07-01 13:34:24 1 items queued for eventual download
2024-07-01 13:34:24 Uncaught exception in task:
2024-07-01 13:34:24 In fibers.scm:
2024-07-01 13:34:24     172:8  2 (_)
2024-07-01 13:34:24 In cuirass/notification.scm:
2024-07-01 13:34:24    164:15  1 (_)
2024-07-01 13:34:24 In ice-9/boot-9.scm:
2024-07-01 13:34:24   1685:16  0 (raise-exception _ #:continuable? _)
2024-07-01 13:34:24 ice-9/boot-9.scm:1685:16: In procedure raise-exception:
2024-07-01 13:34:24 Throw to key `psql-query-error' with args `(#f #f "no connection to the server\n")'.
2024-07-01 13:34:31 Uncaught exception in task:
2024-07-01 13:34:31 In fibers.scm:
2024-07-01 13:34:31     172:8  2 (_)
2024-07-01 13:34:31 In cuirass/scripts/remote-server.scm:
2024-07-01 13:34:31    424:10  1 (_)
2024-07-01 13:34:31 In ice-9/boot-9.scm:
2024-07-01 13:34:31   1685:16  0 (raise-exception _ #:continuable? _)
2024-07-01 13:34:31 ice-9/boot-9.scm:1685:16: In procedure raise-exception:
2024-07-01 13:34:31 Throw to key `psql-query-error' with args `(#f #f "no connection to the server\n")'.
2024-07-01 13:35:24 1 items queued for eventual download
--8<---------------cut here---------------end--------------->8---

Apparently, this happens as a result of a scanner on the MDC network (?)
sending garbage on open ports.

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 05 Sep 2024 07:54:03 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
bug acknowledged by developer. (Thu, 05 Sep 2024 07:54:04 GMT) Full text and rfc822 format available.

Message #10 received at 71936-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 71936-done <at> debbugs.gnu.org
Subject: Re: bug#71936: [Cuirass] ‘cuirass remote-server’ crashes badly when it receives garbage
Date: Thu, 05 Sep 2024 09:37:20 +0200
Ludovic Courtès <ludovic.courtes <at> inria.fr> skribis:

> 2024-07-01 13:33:38 In cuirass/scripts/remote-server.scm:
> 2024-07-01 13:33:38     430:6 11 (serve-build-requests _ #<<channel> getq: #<atomic-box 7f5cf2dbaa60 value: (() #(#<atomic-box 7f5cd4f233d0 value: W> #<procedure resume (thunk)>))> getq-gc-counter: #<atomic-box 7f5cf2dbaa50 value: 22> putq: #<atomic-box 7f5cf2dbaa30 value: (())> putq-gc-counter: #<atomic-box 7f5cf2dbaa20 value: 39>>)
> 2024-07-01 13:33:38 In ice-9/boot-9.scm:
> 2024-07-01 13:33:38   1752:10 10 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
> 2024-07-01 13:33:38 In cuirass/scripts/remote-server.scm:
> 2024-07-01 13:33:38    436:25  9 (_)
> 2024-07-01 13:33:38 In cuirass/remote.scm:
> 2024-07-01 13:33:38    483:41  8 (receive-message _ #:router? _)
> 2024-07-01 13:33:38 In ice-9/iconv.scm:
> 2024-07-01 13:33:38     75:20  7 (bytevector->string _ _ _)
> 2024-07-01 13:33:38 In ice-9/rdelim.scm:
> 2024-07-01 13:33:38    160:18  6 (read-string _)
> 2024-07-01 13:33:38 In ice-9/suspendable-ports.scm:
> 2024-07-01 13:33:38    591:33  5 (read-char _)
> 2024-07-01 13:33:38    522:13  4 (peek-char-and-next-cur/iconv #<input: string 7f5cd6c72150>)
> 2024-07-01 13:33:38 In unknown file:
> 2024-07-01 13:33:38            3 (port-decode-char #<input: string 7f5cd6c72150> #vu8(130 163 101 110 99 165 99 108 101 97 114 164 108 111 97 100 129 163 99 109 100 175 95 112 114 101 112 95 97 117 116 104 95 105 110 102 111 0 0 0 160 162 141 207 92 127 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 96 163 159 214 92 127 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 192 162 141 207 92 127 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 95 160 108 42 163 128 255 255 0 0 0 0 0 0 0 0 95 139 120 42 163 128 255 # ?) ?)
> 2024-07-01 13:33:38 In ice-9/boot-9.scm:
> 2024-07-01 13:33:38   1685:16  2 (raise-exception _ #:continuable? _)
> 2024-07-01 13:33:38   1683:16  1 (raise-exception _ #:continuable? _)
> 2024-07-01 13:33:38   1685:16  0 (raise-exception _ #:continuable? _)
> 2024-07-01 13:33:38 ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> 2024-07-01 13:33:38 Throw to key `decoding-error' with args `("decode-char" "input decoding error" 84 #<input: string 7f5cd6c72150>)'.

Fixed in Cuirass commit fbfbc6641cadfa15d3cc05c11b0d46ee1278a6c6.

I’ll update the ‘cuirass’ package soonish.

Ludo’.




This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.