Skip to content

Commit

Permalink
2nd try at github compile
Browse files Browse the repository at this point in the history
  • Loading branch information
toshski committed Dec 19, 2023
1 parent f9e8689 commit 6bb6d45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/common/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ func getFrame(skipFrames int) runtime.Frame {
}

func GetStackTrace() string {
buf := make([]byte, uint64(1)<<32)
buf := make([]byte, 2147483647)
stackSize := runtime.Stack(buf, false)
if stackSize > 2147483647 {
stackSize = 2147483647
}
return string(buf[:stackSize])
}

0 comments on commit 6bb6d45

Please sign in to comment.