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

runtime: print SIGSEGV/SIGBUS fault address from system stack #60894

Closed
prattmic opened this issue Jun 20, 2023 · 1 comment
Closed

runtime: print SIGSEGV/SIGBUS fault address from system stack #60894

prattmic opened this issue Jun 20, 2023 · 1 comment
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@prattmic
Copy link
Member

Normally sigpanic is responsible for printing the fault address of a SIGSEGV / SIGBUS, but when a signal occurs on the system stack, we convert to a throw. Thus the signal print occurs in fatalsignal, which does not attempt to print the fault address.

cc @golang/runtime

@prattmic prattmic added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 20, 2023
@prattmic prattmic added this to the Backlog milestone Jun 20, 2023
@prattmic prattmic self-assigned this Jun 20, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jun 20, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/504635 mentions this issue: runtime: print fault addr in fatalsignal

@mknyszek mknyszek moved this to In Progress in Go Compiler / Runtime Jun 28, 2023
@mknyszek mknyszek modified the milestones: Backlog, Go1.22 Jun 28, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Go Compiler / Runtime Sep 20, 2023
@golang golang locked and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants