New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: Stack() output cannot be deduplicated #29769
Comments
It seems to me that this can be done easily enough by post processing the |
There's no guarantee in the documentation for |
Personally, I don't think it's worth the cost. In any case we clearly cannot change |
Indeed, it would have to be a new function. I think it'd have to be in the runtime package, since the
It might be cleanest to have both of these, along with a new option to control inclusion of the goroutine header and function argument addresses, passed into this new function in either a |
I would not be optimistic about approving a function that is complex enough to require a |
https://github.com/maruel/panicparse "deduplicates redundant goroutine stacks" among some other useful utilities -- its source might be a good starting point for a third-party utility for deduplicating stack traces from separate crashes. |
I think this is waiting on a concrete proposal (per #29769 (comment))? |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
runtime.Stack()
outputs the ID of the goroutine and addresses of function arguments. All of these differ between runs of a program. It would be nice if it was possible to pass an option that caused it to omit these details from the stacktrace, so that stacktraces can be deduplicated between runs (e.g. for reporting purposes).The text was updated successfully, but these errors were encountered: