glog icon indicating copy to clipboard operation
glog copied to clipboard

Support configurable stack trace depth.

Open bmahler opened this issue 8 years ago • 3 comments

I noticed some odd stack traces that looked truncated, and realized that the stack trace depth is currently burned in to be 32: https://github.com/google/glog/blob/v0.3.5/src/signalhandler.cc#L307

It would be great to support a configurable depth limit. In addition, the trace should explicitly say when the depth limit was reached and frames are omitted, to avoid confusion.

bmahler avatar Oct 27 '17 22:10 bmahler

@sergiud was this closed due to inactivity?

bmahler avatar Mar 30 '21 16:03 bmahler

Yes. Please reopen if necessary.

sergiud avatar Mar 30 '21 18:03 sergiud

@sergiud I don't think I have permission to re-open, but I do still think this is a useful improvement. Even if the limit isn't made configurable, printing that the limit was reached would avoid any confusion when reading truncated stack traces.

bmahler avatar Mar 30 '21 19:03 bmahler