-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: simple programs crash on linux/386 with go1.21 when build with -gcflags='all=-N -l' #61975
Comments
Programs built with `-gcflags='all=-N -l'` do not work on linux/386/1.21 due to golang/go#61975
The traceEnabled function splits the stack and is being called by reentersyscall that shouldn't call anything that splits the stack. Fixes golang#61975
Looks like |
Change https://go.dev/cl/519055 mentions this issue: |
The traceEnabled function splits the stack and is being called by reentersyscall that shouldn't call anything that splits the stack. Same with traceShuttingDown. Fixes golang#61975
@gopherbot, please backport to Go1.21, this is a regression. |
Backport issue(s) opened: #61987 (for 1.21). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Programs built with `-gcflags='all=-N -l'` do not work on linux/386/1.21 due to golang/go#61975
cc @seankhliao |
CC @mknyszek. |
Change https://go.dev/cl/519495 mentions this issue: |
…own as no:split This fixes a regression from CL 494181. The traceEnabled function splits the stack and is being called by reentersyscall that shouldn't call anything that splits the stack. Same with traceShuttingDown. For #61975 Fixes #61987 Change-Id: I5eca0ba74cfa6acb0259e8400b03c2093cd59dd1 GitHub-Last-Rev: 9e55ae9 GitHub-Pull-Request: #61981 Reviewed-on: https://go-review.googlesource.com/c/go/+/519055 Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> (cherry picked from commit aa5d483) Reviewed-on: https://go-review.googlesource.com/c/go/+/519495 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Austin Clements <[email protected]> Run-TryBot: Michael Knyszek <[email protected]>
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compile:
with
-gcflags='all=-N -l'
and run the executableWhat did you see instead?
The text was updated successfully, but these errors were encountered: