Skip to content

Investigate go1.22rc1 SetFileInformationByHandle issue: "Invalid access to memory location" #1100

@dagood

Description

@dagood

moby/moby#46982 (comment)

The bad news; looks like Windows is pretty much broken;

failed to register layer: re-exec error: exit status 1: output: SetFileInformationByHandle \\?\C:\Windows\SystemTemp\hcs2001018820\Files.$wcidirs$: Invalid access to memory location.
Error: Process completed with exit code 1.

That codepath seems to be hit by go-winio;

https://github.com/moby/moby/blob/7ad5396f79e107d9e0f1e26aa6684289c37a0e9c/vendor/github.com/Microsoft/go-winio/fileinfo.go#L21-L34

And used by hcsshim;

git grep '\.SetFileBasicInfo'
vendor/github.com/Microsoft/hcsshim/internal/safefile/safeopen.go:      return winio.SetFileBasicInfo(f, &sbi)
vendor/github.com/Microsoft/hcsshim/internal/wclayer/baselayerwriter.go:                err = winio.SetFileBasicInfo(f, &di.fileInfo)
vendor/github.com/Microsoft/hcsshim/internal/wclayer/baselayerwriter.go:        err = winio.SetFileBasicInfo(f, fileInfo)
vendor/github.com/Microsoft/hcsshim/internal/wclayer/legacy.go: err = winio.SetFileBasicInfo(dest, fileInfo)
vendor/github.com/Microsoft/hcsshim/internal/wclayer/legacy.go:         err = winio.SetFileBasicInfo(f, fileInfo)
vendor/github.com/Microsoft/hcsshim/internal/wclayer/legacy.go: err = winio.SetFileBasicInfo(f, &strippedFi)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions