Skip to content

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

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

Relationships

None yet

Development

No branches or pull requests

Issue actions