Skip to content

os/exec: TestWaitInterrupt failures with leaked without a call to Wait #57596

@gopherbot

Description

@gopherbot
#!watchflakes
post <- pkg == "os/exec" && test == "TestWaitInterrupt" && `leaked without a call to Wait`

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestWaitInterrupt (0.01s)
    --- FAIL: TestWaitInterrupt/Exit-hang (0.33s)
        exec_test.go:1401: /home/gopher/build/tmp/go-build1563908597/b001/exec.test hang 1ms -subsleep=10m -probe=1ms
        exec_test.go:1403: stderr:
            30889: started 69095: /home/gopher/build/tmp/go-build1563908597/b001/exec.test hang 10m0s -read=true -probe=1ms
            69095: read 2022-12-27T18:17:46.964625019+11:00
            69095: read 2022-12-27T18:17:46.966334445+11:00
            69095: read 2022-12-27T18:17:46.967849073+11:00
            69095: read 2022-12-27T18:17:46.970397898+11:00
            69095: read 2022-12-27T18:17:46.979092698+11:00
...
            panic: exec: Cmd started a Process but leaked without a call to Wait

            goroutine 18 [running]:
            panic({0x2c3aa0, 0x4000098010})
            	/home/gopher/build/go/src/runtime/panic.go:987 +0x3ac fp=0x400004bd20 sp=0x400004bc60 pc=0x45b8c
            os/exec.Command.func1(0x40000ea580?)
            	/home/gopher/build/go/src/os/exec/exec.go:413 +0xf4 fp=0x400004bd60 sp=0x400004bd20 pc=0x1063b4
            runtime.call16(0x0, 0x360360, 0x400018c000, 0x10, 0x10, 0x10, 0x400004be40)
            	/home/gopher/build/go/src/runtime/asm_arm64.s:478 +0x78 fp=0x400004bd80 sp=0x400004bd60 pc=0x77908
            runtime.runfinq()
            	/home/gopher/build/go/src/runtime/mfinal.go:255 +0x408 fp=0x400004bfd0 sp=0x400004bd80 pc=0x284a8
            runtime.goexit()
            	/home/gopher/build/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x400004bfd0 sp=0x400004bfd0 pc=0x79a84
            created by runtime.createfing
            	/home/gopher/build/go/src/runtime/mfinal.go:163 +0x80

            goroutine 51 [running]:
            	goroutine running on other thread; stack unavailable
            created by runtime.gcBgMarkStartWorkers
            	/home/gopher/build/go/src/runtime/mgc.go:1199 +0x28

watchflakes

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.release-blocker

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions