Skip to content

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

@gopherbot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    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.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions