Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of runtime.Callers when taking stack traces (#477)
The current code incorrectly assumes that `runtime.Callers(skip, pcbuf)` writes and returns up to `cap(pcbuf)` entries. This is incorrect: it only writes and returns up to `len(pcbuf)`. This change updates `takeStacktrace` to avoid changing the length of re-used slices.
- Loading branch information