Go version
go1.25
Output of go env in your module/workspace:
What did you do?
Call debug.SetCrashOutput and run a program that deliberately causes a fatal error.
What did you see happen?
I see crash.txt only include a bunch of stack traces.
What did you expect to see?
I expect crash.txt to start with:
fatal error: concurrent map writes
Note that a regular panic that is not recovered includes the panic message in the crash output, so the intent seems to be that the fatal message should be captured.
Go version
go1.25
Output of
go envin your module/workspace:What did you do?
Call
debug.SetCrashOutputand run a program that deliberately causes a fatal error.What did you see happen?
I see
crash.txtonly include a bunch of stack traces.What did you expect to see?
I expect
crash.txtto start with:Note that a regular panic that is not recovered includes the panic message in the crash output, so the intent seems to be that the fatal message should be captured.