Skip to content

dwarf/line: fix PrologueEndPC and FirstStmt - #4276

Merged
derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:fix4269
Mar 5, 2026
Merged

derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:fix4269

Conversation

@aarzilli

@aarzilli aarzilli commented Mar 5, 2026

Copy link
Copy Markdown
Member

In some circumstances PrologueEndPC and FirstStmt could return a PC
that is before the start PC that was passed to them.

It is not certain that this is what caused the crash in the issue
because it couldn't be reproduced with a real Go binary, but it looks
like the only possible cause.

Fix #4269

In some circumstances PrologueEndPC and FirstStmt could return a PC
that is before the start PC that was passed to them.

It is not certain that this is what caused the crash in the issue
because it couldn't be reproduced with a real Go binary, but it looks
like the only possible cause.

Fix go-delve#4269

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekparker
derekparker merged commit 5435aca into go-delve:master Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

telemetry report: pkg/dwarf/line: basePC after pc panic in call to PCToLine

2 participants