Skip to content

runtime: crash message not included in debug.SetCrashOutput #76859

@dsnet

Description

@dsnet

Go version

go1.25

Output of go env in your module/workspace:

n/a

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.

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions