From: Ricardo Wurmus <rekado@elephly.net>
To: Marius Bakke <marius@gnu.org>
Cc: guix-devel@gnu.org,
Katherine Cox-Buday <cox.katherine.e@gmail.com>,
Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: Re: Can we increase the print width/column in daemon backtraces
Date: Wed, 27 May 2020 12:43:17 +0200 [thread overview]
Message-ID: <87zh9tirp6.fsf@elephly.net> (raw)
In-Reply-To: <87d06r5e42.fsf@gnu.org>
Marius Bakke <marius@gnu.org> writes:
> Pierre Neidhardt <mail@ambrevar.xyz> writes:
>
>> Marius Bakke <marius@gnu.org> writes:
>>
>>> You can run it directly from a shell, and/or attach a debugger.
>>
>> Thanks for the tip.
>>
>> Any idea how to attach Geiser to it?
>
> The daemon is a C++ program, so I'm not sure that would work ...
>
> If you are trying to increase the trace width within a build expression,
> you probably just need to (setenv "COLUMNS" "200") in the builder.
A daemon built with this change prevents truncation in the Guile
builders (without having to modify the Guile builders):
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 29266f1dd6..94609e07f5 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -2247,6 +2247,7 @@ void DerivationGoal::runChild()
Strings envStrs;
foreach (Environment::const_iterator, i, env)
envStrs.push_back(rewriteHashes(i->first + "=" + i->second, rewritesToTmp));
+ envStrs.push_back("COLUMNS=1024");
/* If we are running in `build-users' mode, then switch to the
user we allocated above. Make sure that we drop all root
--
Ricardo
next prev parent reply other threads:[~2020-05-27 10:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 10:36 Can we increase the print width/column in daemon backtraces Pierre Neidhardt
2019-07-15 12:47 ` Ricardo Wurmus
2019-07-15 12:56 ` Pierre Neidhardt
2019-09-17 1:58 ` Maxim Cournoyer
2019-09-17 6:46 ` Pierre Neidhardt
2020-05-20 9:02 ` Pierre Neidhardt
2020-05-21 11:14 ` Katherine Cox-Buday
2020-05-22 8:14 ` Pierre Neidhardt
2020-05-24 21:19 ` Ludovic Courtès
2020-05-25 8:39 ` Pierre Neidhardt
2020-05-25 9:54 ` Tobias Geerinckx-Rice
2020-05-25 11:51 ` Pierre Neidhardt
2020-05-25 21:28 ` Ludovic Courtès
2020-05-26 7:16 ` Pierre Neidhardt
2020-05-25 11:51 ` Pierre Neidhardt
2020-05-25 15:26 ` Marius Bakke
2020-05-26 7:17 ` Pierre Neidhardt
2020-05-26 7:50 ` Marius Bakke
2020-05-26 8:19 ` Pierre Neidhardt
2020-05-27 10:43 ` Ricardo Wurmus [this message]
2020-05-27 11:09 ` Pierre Neidhardt
2020-05-28 22:07 ` Ludovic Courtès
2020-05-29 9:30 ` Pierre Neidhardt
2019-07-15 12:58 ` swedebugia
2019-07-15 15:23 ` P
2019-07-15 15:40 ` Ricardo Wurmus
2019-07-15 18:38 ` Robert Vollmert
2019-07-15 20:41 ` Robert Vollmert
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=87zh9tirp6.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=cox.katherine.e@gmail.com \
--cc=guix-devel@gnu.org \
--cc=marius@gnu.org \
--cc=maxim.cournoyer@gmail.com \
/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).