Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 #3401

Merged
merged 2 commits into from Jun 27, 2023

Conversation

aarzilli
Copy link
Member

proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21

Changes stacktrace code to read the signal context from the arguments
of sigtrampgo.

Also changes the automatic fatalthrow breakpoint for go 1.21.

In combination these two changes fix TestCgoStacktrace2 on Go 1.21 on
various platforms.

logflags,proc: flag to log stacktrace execution

Add a log flag to write logs about what the stacktracer does.

@aarzilli aarzilli changed the title proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 [WIP] proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 May 31, 2023
@aarzilli
Copy link
Member Author

@hyangah any chance we can get https://go-review.googlesource.com/c/go/+/495736 reviewed before the release candidate? It's pretty innocuous.

@aarzilli aarzilli changed the title [WIP] proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 Jun 6, 2023
@derekparker derekparker self-assigned this Jun 7, 2023
@derekparker
Copy link
Member

@aarzilli can you rebase this and we can merge? We should be cutting 1.21 soon.

Add a log flag to write logs about what the stacktracer does.
Changes stacktrace code to read the signal context from the arguments
of sigtrampgo.
Also changes the automatic fatalthrow breakpoint for go 1.21.
In combination these two changes fix TestCgoStacktrace2 on Go 1.21 on
various platforms.
@aarzilli
Copy link
Member Author

Done.

Copy link
Member

@derekparker derekparker left a comment

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 d963eb1 into go-delve:master Jun 27, 2023
1 of 2 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.

None yet

2 participants