This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] stack: Add new '-n MAXFRAMES' option. Resolve addresses after unwind.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 07 Jan 2014 10:03:26 +0100
- Subject: Re: [PATCH] stack: Add new '-n MAXFRAMES' option. Resolve addresses after unwind.
We just don't agree on what is useful default output for a user or
script that wants to quickly introspect or log the state of a
(multi-threaded) process with eu-stack. Defaulting to infinite
backtraces for all threads in a process will just flood console or log
files. That isn't useful.
But I do agree with this part:
On Mon, 2014-01-06 at 19:23 +0100, Jan Kratochvil wrote:
> > But by default it provides [n=2048] frames for all threads of a process.
> > A bit too much for my liking,
> It is too much to print on a console anyway while it is still breaking the
> stack overflow crashes. It is had only two cons, no pro.
You are right, that is too big a limit. It would mean ~30 pages of
output by default, which even for a log file would be too much. I'll
reduce it to 256 by default.