Skip to content

x/tools/gopls/internal/cmd: TestDefinition failures (Windows virtual memory exhaustion) #75407

Closed as not planned

Description

@gopherbot
#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestDefinition" && `paging file is too small for this operation to complete`

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestDefinition
=== PAUSE TestDefinition
=== CONT  TestDefinition
    integration_test.go:291: gopls definition a.go:7:2: exited with code 2, want success: true (gopls definition a.go:7:2: exit=2 stdout=<<>> stderr=<<Error: Error loading workspace folders (expected 1, got 0)
        failed to load view for file:///C:/Users/swarming/.swarming/w/ir/x/t/TestDefinition856610601/001: err: fork/exec C:\Users\swarming\.swarming\w\ir\x\w\goroot\bin\go.exe: The paging file is too small for this operation to complete.: stderr: 
        
        Error: Error loading workspace folders (expected 1, got 0)
        failed to load view for file:///C:/Users/swarming/.swarming/w/ir/x/t/TestDefinition856610601/001: err: fork/exec C:\Users\swarming\.swarming\w\ir\x\w\goroot\bin\go.exe: The paging file is too small for this operation to complete.: stderr: 
        
        gopls: .\a.go:7:2: no views
...
        fatal error: out of memory
        
        runtime stack:
        runtime.throw({0x7ff67aac0caa?, 0xd683ffc30?})
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1227 +0x34 fp=0xd683ffbf0 sp=0xd683ffbc0 pc=0x7ff679d799e4
        runtime.sysUsedOS(0x4000256000, 0x2000)
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mem_windows.go:83 +0x194 fp=0xd683ffc70 sp=0xd683ffbf0 pc=0x7ff679d1dfc4
        runtime.sysUsed(...)
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mem.go:85
        runtime.(*mheap).allocSpan(0x7ff67b756180, 0x1, 0x0, 0x2a)
...
        runtime.goexit({})
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_arm64.s:1268 +0x4 fp=0x40000a9fd0 sp=0x40000a9fd0 pc=0x7ff679d81ad4
        created by runtime.gcBgMarkStartWorkers in goroutine 1
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1373 +0x140
        >>)
    integration_test.go:298: gopls definition a.go:4:7: stdout does not match [print.go.* defined here as func fmt.Println]; got <<>>
    integration_test.go:299: gopls definition a.go:4:7: stdout does not match [Println formats using the default formats for its operands]; got <<>>
    integration_test.go:304: gopls definition -json -markdown a.go:4:7: exited with code -1, want success: true (gopls definition -json -markdown a.go:4:7: exit=-1 stdout=<<>> stderr=<<fork/exec C:\Users\swarming\.swarming\w\ir\x\t\go-build2136575071\b763\cmd.test.exe: The paging file is too small for this operation to complete.>>)
    integration_test.go:1241: invalid JSON unexpected end of JSON input
--- FAIL: TestDefinition (5.56s)

— watchflakes

Activity

  1. gopherbot commented on Sep 11, 2025

    @gopherbot
    ContributorAuthor

    Found new dashboard test flakes for:

    #!watchflakes
    default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestDefinition"
    
    2025-09-11 02:24 x_tools-gotip-windows-arm64 tools@9ac18109 go@5cf8ca42 x/tools/gopls/internal/cmd.TestDefinition (log)
    === RUN   TestDefinition
    === PAUSE TestDefinition
    === CONT  TestDefinition
        integration_test.go:291: gopls definition a.go:7:2: exited with code 2, want success: true (gopls definition a.go:7:2: exit=2 stdout=<<>> stderr=<<Error: Error loading workspace folders (expected 1, got 0)
            failed to load view for file:///C:/Users/swarming/.swarming/w/ir/x/t/TestDefinition856610601/001: err: fork/exec C:\Users\swarming\.swarming\w\ir\x\w\goroot\bin\go.exe: The paging file is too small for this operation to complete.: stderr: 
            
            Error: Error loading workspace folders (expected 1, got 0)
            failed to load view for file:///C:/Users/swarming/.swarming/w/ir/x/t/TestDefinition856610601/001: err: fork/exec C:\Users\swarming\.swarming\w\ir\x\w\goroot\bin\go.exe: The paging file is too small for this operation to complete.: stderr: 
            
            gopls: .\a.go:7:2: no views
    ...
            fatal error: out of memory
            
            runtime stack:
            runtime.throw({0x7ff67aac0caa?, 0xd683ffc30?})
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1227 +0x34 fp=0xd683ffbf0 sp=0xd683ffbc0 pc=0x7ff679d799e4
            runtime.sysUsedOS(0x4000256000, 0x2000)
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mem_windows.go:83 +0x194 fp=0xd683ffc70 sp=0xd683ffbf0 pc=0x7ff679d1dfc4
            runtime.sysUsed(...)
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mem.go:85
            runtime.(*mheap).allocSpan(0x7ff67b756180, 0x1, 0x0, 0x2a)
    ...
            runtime.goexit({})
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_arm64.s:1268 +0x4 fp=0x40000a9fd0 sp=0x40000a9fd0 pc=0x7ff679d81ad4
            created by runtime.gcBgMarkStartWorkers in goroutine 1
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1373 +0x140
            >>)
        integration_test.go:298: gopls definition a.go:4:7: stdout does not match [print.go.* defined here as func fmt.Println]; got <<>>
        integration_test.go:299: gopls definition a.go:4:7: stdout does not match [Println formats using the default formats for its operands]; got <<>>
        integration_test.go:304: gopls definition -json -markdown a.go:4:7: exited with code -1, want success: true (gopls definition -json -markdown a.go:4:7: exit=-1 stdout=<<>> stderr=<<fork/exec C:\Users\swarming\.swarming\w\ir\x\t\go-build2136575071\b763\cmd.test.exe: The paging file is too small for this operation to complete.>>)
        integration_test.go:1241: invalid JSON unexpected end of JSON input
    --- FAIL: TestDefinition (5.56s)
    

    — watchflakes

  2. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    ToolsThis label describes issues relating to any tools in the x/tools repository.
    goplsIssues related to the Go language server, gopls.
    on Sep 11, 2025
  3. added this to the Unreleased milestone on Sep 11, 2025
  4. gopherbot commented on Sep 11, 2025

    @gopherbot
    ContributorAuthor

    Found new dashboard test flakes for:

    #!watchflakes
    default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestDefinition"
    
    2025-09-10 19:41 x_tools-gotip-windows-arm64 tools@3ea42bf2 go@2009e6c5 x/tools/gopls/internal/cmd.TestDefinition (log)
    === RUN   TestDefinition
    === PAUSE TestDefinition
    === CONT  TestDefinition
        integration_test.go:291: gopls definition a.go:7:2: exited with code 2, want success: true (gopls definition a.go:7:2: exit=2 stdout=<<.\a.go:3:6-7: defined here as func f()
            >> stderr=<<runtime: VirtualAlloc of 8192 bytes failed with errno=1455
            fatal error: out of memory
            
            runtime stack:
            runtime.throw({0x7ff668b80caa?, 0x9a1d1ff8e0?})
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1227 +0x34 fp=0x9a1d1ff8a0 sp=0x9a1d1ff870 pc=0x7ff667e39a54
    ...
            golang.org/x/tools/gopls/internal/cache.storePackageResults({0x7ff668f00c88, 0x400b0cd200}, 0x400830c780, 0x4014edbe00)
            	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo2362866928/gopls/internal/cache/check.go:417 +0x88 fp=0x400bff3fa0 sp=0x400bff3c60 pc=0x7ff6685ecbf8
            golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getPackage.func1.gowrap1()
            	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo2362866928/gopls/internal/cache/check.go:407 +0x24 fp=0x400bff3fd0 sp=0x400bff3fa0 pc=0x7ff6685ec9b4
            runtime.goexit({})
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_arm64.s:1268 +0x4 fp=0x400bff3fd0 sp=0x400bff3fd0 pc=0x7ff667e41b44
            created by golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getPackage.func1 in goroutine 3894
            	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo2362866928/gopls/internal/cache/check.go:407 +0x2f0
            >>)
    --- FAIL: TestDefinition (14.31s)
    

    — watchflakes

  5. gopherbot commented on Sep 11, 2025

    @gopherbot
    ContributorAuthor

    Found new dashboard test flakes for:

    #!watchflakes
    default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestDefinition"
    
    2025-09-11 02:24 x_tools-gotip-windows-arm64 tools@9ac18109 go@253dd08f x/tools/gopls/internal/cmd.TestDefinition (log)
    === RUN   TestDefinition
    === PAUSE TestDefinition
    === CONT  TestDefinition
        integration_test.go:291: gopls definition a.go:7:2: exited with code 2, want success: true (gopls definition a.go:7:2: exit=2 stdout=<<.\a.go:3:6-7: defined here as func f()
            >> stderr=<<runtime: VirtualAlloc of 8192 bytes failed with errno=1455
            fatal error: out of memory
            
            runtime stack:
            runtime.throw({0x7ff75e460caa?, 0xd18cbffad0?})
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1227 +0x34 fp=0xd18cbffa90 sp=0xd18cbffa60 pc=0x7ff75d719a54
    ...
            golang.org/x/tools/gopls/internal/cache.storePackageResults({0x7ff75e7e0e48, 0x4009b9cbd0}, 0x4007cfe500, 0x4013a8e480)
            	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo1884647828/gopls/internal/cache/check.go:433 +0x44c fp=0x4013171fa0 sp=0x4013171c60 pc=0x7ff75decd19c
            golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getPackage.func1.gowrap1()
            	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo1884647828/gopls/internal/cache/check.go:407 +0x24 fp=0x4013171fd0 sp=0x4013171fa0 pc=0x7ff75deccb94
            runtime.goexit({})
            	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_arm64.s:1268 +0x4 fp=0x4013171fd0 sp=0x4013171fd0 pc=0x7ff75d721b44
            created by golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getPackage.func1 in goroutine 3594
            	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo1884647828/gopls/internal/cache/check.go:407 +0x2f0
            >>)
    --- FAIL: TestDefinition (14.76s)
    

    — watchflakes

  6. gopherbot commented on Oct 29, 2025

    @gopherbot
    ContributorAuthor

    Found new dashboard test flakes for:

    #!watchflakes
    default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestDefinition"
    
    2025-10-29 01:19 x_tools-gotip-darwin-arm64-longtest tools@1385a78d go@041f564b x/tools/gopls/internal/cmd.TestDefinition (log)
    === RUN   TestDefinition
    === PAUSE TestDefinition
    === CONT  TestDefinition
        integration_test.go:291: gopls definition a.go:7:2: exited with code 2, want success: true (gopls definition a.go:7:2: exit=2 stdout=<<./a.go:3:6-7: defined here as func f()
            >> stderr=<<panic: surplus bytes
            
            goroutine 1084 [running]:
            golang.org/x/tools/gopls/internal/util/frob.(*frob).Decode(0x3f17b60ff470, {0x3f17bdc7c600, 0x8, 0x200}, {0x101a27b60?, 0x3f17bd4234f8?})
            	/Users/swarming/.swarming/w/ir/x/w/targetrepo3325812423/gopls/internal/util/frob/frob.go:252 +0x194
            golang.org/x/tools/gopls/internal/util/frob.Codec[...].Decode(...)
    ...
            golang.org/x/tools/gopls/internal/cache.(*analysisNode).runCached(0x658ed0ff22c0, {0x103b42710, 0x658ed1816390}, {0x92, 0x77, 0xc4, 0x58, 0x41, 0x82, 0xdc, ...})
            	/Users/swarming/.swarming/w/ir/x/w/targetrepo3325812423/gopls/internal/cache/analysis.go:588 +0x1d0
            golang.org/x/tools/gopls/internal/cache.(*Snapshot).Analyze.func6.1()
            	/Users/swarming/.swarming/w/ir/x/w/targetrepo3325812423/gopls/internal/cache/analysis.go:340 +0x3f4
            golang.org/x/sync/errgroup.(*Group).Go.func1()
            	/Users/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:93 +0x4c
            created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1107
            	/Users/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x98
            >>)
    --- FAIL: TestDefinition (4.00s)
    

    — watchflakes

  7. moved this from Done to Active in Test Flakeson Oct 29, 2025
  8. changed the title [-]x/tools/gopls/internal/cmd: TestDefinition failures[/-] [+]x/tools/gopls/internal/cmd: TestDefinition failures (Windows virtual memory exhaustion)[/+] on Oct 29, 2025
  9. adonovan commented on Oct 29, 2025

    @adonovan
    Member

    The recent failure has a different cause; splitting into its own issue.

  10. moved this from Active to Done in Test Flakeson Oct 31, 2025
  11. locked and limited conversation to collaborators on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions