diff --git a/doc/next/3-tools.md b/doc/next/3-tools.md index 0526c37687..ae94c9bcf7 100644 --- a/doc/next/3-tools.md +++ b/doc/next/3-tools.md @@ -53,3 +53,12 @@ module whose go.mod file specifies `go 1.21`. [cmd/cgo] supports the new `-ldflags` flag for passing flags to the C linker. The `go` command uses it automatically, avoiding "argument list too long" errors with a very large `CGO_LDFLAGS`. + +### Trace {#trace} + + +The `trace` tool now better tolerates partially broken traces by attempting to +recover what trace data it can. This functionality is particularly helpful when +viewing a trace that was collected during a program crash, since the trace data +leading up to the crash will now [be recoverable](/issue/65319) under most +circumstances. diff --git a/doc/next/6-stdlib/99-minor/runtime/trace/65319.md b/doc/next/6-stdlib/99-minor/runtime/trace/65319.md new file mode 100644 index 0000000000..b180368e00 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/runtime/trace/65319.md @@ -0,0 +1,4 @@ + +The runtime now explicitly flushes trace data when a program crashes due to an +uncaught panic. This means that more complete trace data will be available in a +trace if the program crashes while tracing is active.