From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: 36471@debbugs.gnu.org
Cc: robert vollmert <rob@vllmrt.net>
Subject: bug#36471: Unreadable Stacktrace Example
Date: Tue, 2 Jul 2019 13:12:45 +0200 [thread overview]
Message-ID: <20190702131245.15561fbd@alma-ubu> (raw)
[-- Attachment #1: Type: text/plain, Size: 3363 bytes --]
X-Debbugs-CC: Robert Vollmert <rob@vllmrt.net>
Hello,
in the 1.0-beyond-discussions, Robert asked that Stacktraces should be
more clear. I refer to this message (lists.gnu.org is down, so I
cannot link):
From: Ludovic Courtès <ludo@gnu.org>
To: Robert Vollmert <rob@vllmrt.net>
Subject: Re: Guix beyond 1.0: let’s have a roadmap!
Message-ID: <878stirsdc.fsf@gnu.org>
Here is my example. I'm on top of
48eb71aea807262210c38b5fb675d747adfccff3
First the full stacktrace, below are some comments:
./pre-inst-env guix lint -c cve freecad
Backtrace:reecad@0.18.2-1.dbb4cc6 [cve]...
11 (apply-smob/1 #<catch-closure 1a071a0>)
In ice-9/boot-9.scm:
705:2 10 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 9 (_ #(#(#<directory (guile-user) 1ac5140>)))
In guix/ui.scm:
1668:12 8 (run-guix-command _ . _)
In srfi/srfi-1.scm:
640:9 7 (for-each #<procedure 1df01a0 at guix/scripts/lint.scm?> ?)
In guix/scripts/lint.scm:
1152:4 6 (run-checkers #<package freecad@0.18.2-1.dbb4cc6 gnu/p?> ?)
In srfi/srfi-1.scm:
640:9 5 (for-each #<procedure 3e473c0 at guix/scripts/lint.scm?> ?)
In guix/scripts/lint.scm:
933:4 4 (check-vulnerabilities _)
928:9 3 (_ _)
In unknown file:
2 (force #<promise #<procedure 7f1ce3ab6228 at guix/scrip?>)
In guix/scripts/lint.scm:
917:24 1 (_)
In ice-9/boot-9.scm:
829:9 0 (catch srfi-34 #<procedure 37e64e0 at guix/scripts/lin?> ?)
ice-9/boot-9.scm:829:9: In procedure catch:
In procedure connect: Connection timed out
OK, this is semi-readable but I will explain a bit what I find
strange/unreadable:
In guix/scripts/lint.scm:
1152:4 6 (run-checkers #<package freecad@0.18.2-1.dbb4cc6 gnu/p?> ?)
--> OK: This is perfectly readable. I know in which procedure I am,
in which line, the line matches my source code. Fine.
In srfi/srfi-1.scm:
640:9 5 (for-each #<procedure 3e473c0 at guix/scripts/lint.scm?> ?)
--> This is OK, though it could print the line of the procedure?
In guix/scripts/lint.scm:
933:4 4 (check-vulnerabilities _)
928:9 3 (_ _)
--> 933: Nice, I'm in check-vulnerabilities. But why is there no argument?
--> What is this strange second line: (_ _)? Why is there nothing written?
Is that due to tail-recursion?
In unknown file:
2 (force #<promise #<procedure 7f1ce3ab6228 at guix/scrip?>)
--> Why is this in a "unknown file"?
--> Is this force/promise making my stacktrace more unreadable?
In guix/scripts/lint.scm:
917:24 1 (_)
--> Uh. Any more details?. Is "(_)" the call to "(current-vulnerabilities*)"?!
In ice-9/boot-9.scm:
829:9 0 (catch srfi-34 #<procedure 37e64e0 at guix/scripts/lin?> ?)
ice-9/boot-9.scm:829:9: In procedure catch:
In procedure connect: Connection timed out
--> Now, wait: The real problem happens somewhere down here and I don't
have any detailed stacktrace about that?
I have to manually go down into current-vulnerabilities*,
call/nw/failsaife, etc? Why don't I get the details from here?
Is this because in "call-with-networking-fail-safe", line 900 we
through newly:
(args
(apply throw args))))))
but then the stacktrace gets lost?
Would there be a throw-with-caused-by?
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
reply other threads:[~2019-07-02 11:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190702131245.15561fbd@alma-ubu \
--to=bjoern.hoefling@bjoernhoefling.de \
--cc=36471@debbugs.gnu.org \
--cc=rob@vllmrt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).