-
Notifications
You must be signed in to change notification settings - Fork 19k
x/sys/windows: some syscalls are creating dangling pointers #73199
Copy link
Copy link
Closed
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
CL 653856 is an optimization that increases how often
makeslice results can be stored on the stack.@dmitshur noticed that the x/sys/windows.TestBuildSecurityDescriptor test started failing on Windows after that CL was merged.
As a diagnostic step, I was able to get the test to pass again by forcing some
makeresults in sys/windows/security_windows.go to be heap allocated in(*SECURITY_DESCRIPTOR).ToAbsolute.I also then commented on the CL that from the Windows docs, it looked like the
MakeAbsoluteSDWindows API was being used in a way that was creating dangling pointers:Keith responded that there are probably other related problems as well, including in some of the related functions:
Opening this issue to help track the scope of the problem and resolution.
CC @randall77