Skip to content

x/tools/go/packages: TestParseFileModifyAST/Modules failures #73217

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

Closed
gopherbot opened this issue Apr 7, 2025 · 1 comment
Closed

x/tools/go/packages: TestParseFileModifyAST/Modules failures #73217

gopherbot opened this issue Apr 7, 2025 · 1 comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "golang.org/x/tools/go/packages" && test == "TestParseFileModifyAST/Modules"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestParseFileModifyAST/Modules
=== PAUSE TestParseFileModifyAST/Modules
=== CONT  TestParseFileModifyAST/Modules
    invoke.go:205: starting GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=off GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    invoke.go:205: 80.1619ms for GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=off GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=false -deps=true -find=false -pgo=off -- golang.org/fake/a
    invoke.go:205: 68.731ms for GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=false -deps=true -find=false -pgo=off -- golang.org/fake/a
    invoke.go:205: 237.6166ms for GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    packages_test.go:942: err: exit status 2: stderr: runtime: VirtualAlloc of 8192 bytes failed with errno=1455
        fatal error: out of memory
        
        runtime stack:
        runtime.throw({0x7ff678c7092a?, 0x40001d5000?})
        	runtime/panic.go:1073 +0x38 fp=0x2952dff7a0 sp=0x2952dff770 pc=0x7ff678660008
        runtime.sysUsedOS(0x40001d4000, 0x2000)
        	runtime/mem_windows.go:83 +0x178 fp=0x2952dff800 sp=0x2952dff7a0 pc=0x7ff678606428
        runtime.sysUsed(...)
        	runtime/mem.go:77
        runtime.(*mheap).allocSpan(0x7ff679156020, 0x1, 0x0, 0x35)
...
        runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
        	runtime/mgc.go:1781
        runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
        	runtime/mgc.go:1784 +0x3c fp=0x4000053fd0 sp=0x4000053fa0 pc=0x7ff67860c31c
        runtime.goexit({})
        	runtime/asm_arm64.s:1223 +0x4 fp=0x4000053fd0 sp=0x4000053fd0 pc=0x7ff678668554
        created by unique.runtime_registerUniqueMapCleanup in goroutine 1
        	runtime/mgc.go:1779 +0xa0
        
--- FAIL: TestParseFileModifyAST/Modules (0.34s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 7, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/go/packages" && test == "TestParseFileModifyAST/Modules"
2025-04-07 20:11 x_tools-go1.23-windows-arm64 tools@5916e3cb release-branch.go1.23@7a2cfb70 x/tools/go/packages.TestParseFileModifyAST/Modules (log)
=== RUN   TestParseFileModifyAST/Modules
=== PAUSE TestParseFileModifyAST/Modules
=== CONT  TestParseFileModifyAST/Modules
    invoke.go:205: starting GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=off GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    invoke.go:205: 80.1619ms for GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=off GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=false -deps=true -find=false -pgo=off -- golang.org/fake/a
    invoke.go:205: 68.731ms for GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=false -deps=true -find=false -pgo=off -- golang.org/fake/a
    invoke.go:205: 237.6166ms for GOROOT= GOPATH=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\modcache GO111MODULE=on GOPROXY=file:///C:/Users/swarming/.swarming/w/ir/x/t/TestParseFileModifyAST_Modules2955769261/modproxy PWD=C:\Users\swarming\.swarming\w\ir\x\t\TestParseFileModifyAST_Modules2955769261\fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    packages_test.go:942: err: exit status 2: stderr: runtime: VirtualAlloc of 8192 bytes failed with errno=1455
        fatal error: out of memory
        
        runtime stack:
        runtime.throw({0x7ff678c7092a?, 0x40001d5000?})
        	runtime/panic.go:1073 +0x38 fp=0x2952dff7a0 sp=0x2952dff770 pc=0x7ff678660008
        runtime.sysUsedOS(0x40001d4000, 0x2000)
        	runtime/mem_windows.go:83 +0x178 fp=0x2952dff800 sp=0x2952dff7a0 pc=0x7ff678606428
        runtime.sysUsed(...)
        	runtime/mem.go:77
        runtime.(*mheap).allocSpan(0x7ff679156020, 0x1, 0x0, 0x35)
...
        runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
        	runtime/mgc.go:1781
        runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
        	runtime/mgc.go:1784 +0x3c fp=0x4000053fd0 sp=0x4000053fa0 pc=0x7ff67860c31c
        runtime.goexit({})
        	runtime/asm_arm64.s:1223 +0x4 fp=0x4000053fd0 sp=0x4000053fd0 pc=0x7ff678668554
        created by unique.runtime_registerUniqueMapCleanup in goroutine 1
        	runtime/mgc.go:1779 +0xa0
        
--- FAIL: TestParseFileModifyAST/Modules (0.34s)

watchflakes

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Apr 7, 2025
@gopherbot gopherbot added this to the Unreleased milestone Apr 7, 2025
@qmuntal qmuntal closed this as completed Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
Status: Done
Development

No branches or pull requests

2 participants