[PATCH] stack: Add new '-n MAXFRAMES' option. Resolve addresses after unwind.

Mark Wielaard mjw at redhat.com
Tue Jan 7 09:03:26 UTC 2014


Hi Jan,

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.

Thanks,

Mark



More information about the elfutils-devel mailing list