GNU bug report logs - #44742
Cuirass crashed when run interactively

Previous Next

Package: guix;

Reported by: Mathieu Othacehe <othacehe <at> gnu.org>

Date: Thu, 19 Nov 2020 17:50:02 UTC

Severity: normal

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44742 in the body.
You can then email your comments to 44742 AT debbugs.gnu.org in the normal way.

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#44742; Package guix. (Thu, 19 Nov 2020 17:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Othacehe <othacehe <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 19 Nov 2020 17:50:02 GMT) Full text and rfc822 format available.

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

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: Cuirass crashed when run interactively
Date: Thu, 19 Nov 2020 18:49:06 +0100
Hello,

When running Cuirass (3fd0eb1) directly from a command line, I have
the following error:

--8<---------------cut here---------------start------------->8---
2020-11-19T18:34:29 exception arguments: (#f "Wrong number of arguments to ~A" (#<procedure 7f8f7ffea660 at git/structs.scm:562:22 (ptr _)>) #f)
In ice-9/boot-9.scm:
  1731:15 12 (with-exception-handler #<procedure 7f8f7fe26d80 at ic…> …)
  1736:10 11 (with-exception-handler _ _ #:unwind? _ # _)
    718:2 10 (call-with-prompt ("break") #<procedure 7f8f82214c80 a…> …)
    718:2  9 (call-with-prompt ("continue") #<procedure 7f8f8221486…> …)
In ice-9/eval.scm:
    619:8  8 (_ #(#(#<directory (guile-user) 7f8f83128f00> #<var…> …)))
In srfi/srfi-1.scm:
    634:9  7 (for-each #<procedure 7f8f7ff52180 at cuirass/base.scm…> …)
In ice-9/boot-9.scm:
  1731:15  6 (with-exception-handler #<procedure 7f8f7fe26720 at ic…> …)
  1669:16  5 (raise-exception _ #:continuable? _)
  1764:13  4 (_ #<&compound-exception components: (#<&assertion-fail…>)
In cuirass/utils.scm:
    319:8  3 (_ _ . _)
In ice-9/boot-9.scm:
  1731:15  2 (with-exception-handler #<procedure 7f8f7c42d510 at ic…> …)
In cuirass/utils.scm:
   320:22  1 (_)
In unknown file:
           0 (make-stack #t)
ERROR: In procedure make-stack:
Wrong number of arguments to #<procedure 7f8f7ffea660 at git/structs.scm:562:22 (ptr _)>
--8<---------------cut here---------------end--------------->8---

this seems to be cause by the recent addition of a progress bar when
using Guile-Git.

The following work-around seem to confirm it:

--8<---------------cut here---------------start------------->8---
-                 (fetch-input store input
-                              #:writable-copy? (compile? input)))))
+                 (parameterize ((current-error-port (%make-void-port "rw+")))
+                   (fetch-input store input
+                                #:writable-copy? (compile? input))))))
--8<---------------cut here---------------end--------------->8---

Thanks,

Mathieu




Reply sent to Mathieu Othacehe <othacehe <at> gnu.org>:
You have taken responsibility. (Tue, 08 Dec 2020 11:12:02 GMT) Full text and rfc822 format available.

Notification sent to Mathieu Othacehe <othacehe <at> gnu.org>:
bug acknowledged by developer. (Tue, 08 Dec 2020 11:12:02 GMT) Full text and rfc822 format available.

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

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: 44742-done <at> debbugs.gnu.org
Subject: Re: bug#44742: Cuirass crashed when run interactively
Date: Tue, 08 Dec 2020 12:11:16 +0100
Hello,

> The following work-around seem to confirm it:
>
> -                 (fetch-input store input
> -                              #:writable-copy? (compile? input)))))
> +                 (parameterize ((current-error-port (%make-void-port "rw+")))
> +                   (fetch-input store input
> +                                #:writable-copy? (compile? input))))))

I've pushed this work-around as
e0f97e475f6d9d832eb67b3576f2c43a0aff65b4.

Thanks,

Mathieu




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 05 Jan 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 166 days ago.

Previous Next


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