Skip to content
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

x/tools/gopls: regtest flakes due to hanging go commands #54461

Open
findleyr opened this issue Aug 15, 2022 · 212 comments
Open

x/tools/gopls: regtest flakes due to hanging go commands #54461

findleyr opened this issue Aug 15, 2022 · 212 comments
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@findleyr
Copy link
Contributor

findleyr commented Aug 15, 2022

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)

greplogs --dashboard -md -l -e 'runCmdContext' --since=2022-07-14

2022-08-15T17:42:12-987de34-1f833e4/darwin-amd64-12_0
2022-08-14T00:06:23-35f806b-59865f1/netbsd-amd64-9_0
2022-08-12T20:40:05-bebd890-2f6783c/netbsd-386-9_0
2022-08-12T18:15:28-bebd890-b6f87b0/netbsd-amd64-9_0
2022-08-12T12:39:26-88d981e-f67c766/netbsd-amd64-9_0
2022-08-12T00:04:29-c4ec74a-a5cd894/netbsd-386-9_0
2022-08-11T19:05:54-c4ec74a-62654df/netbsd-amd64-9_0
2022-08-11T17:53:50-37a81b6-a526ec1/netbsd-amd64-9_0
2022-08-11T16:19:14-37a81b6-2340d37/netbsd-amd64-9_0
2022-08-11T12:53:59-b2156b5-3c200d6/netbsd-386-9_0
2022-08-10T22:22:48-b2156b5-6b80b62/netbsd-amd64-9_0
2022-08-10T17:41:25-0ad49fd-f19f6c7/netbsd-amd64-9_0
2022-08-10T15:08:24-3950865-c81dfdd/netbsd-amd64-9_0
2022-08-10T02:14:09-6fa767d-5531838/plan9-386-0intro
2022-08-09T14:33:24-92d58ea-0981d9f/openbsd-386-70
2022-08-09T14:12:01-92d58ea-662a729/netbsd-amd64-9_0
2022-08-09T13:39:27-92d58ea-9e8020b/netbsd-386-9_0
2022-08-09T11:28:56-92d58ea-0f8dffd/netbsd-amd64-9_0
2022-08-08T18:10:56-fff6d6d-4bcc138/netbsd-amd64-9_0
2022-08-08T15:33:45-06d96ee-0581d69/netbsd-amd64-9_0
2022-08-08T15:07:46-06d96ee-cd54ef1/netbsd-amd64-9_0
2022-08-08T14:12:21-06d96ee-e761556/netbsd-amd64-9_0
2022-08-08T06:16:59-06d96ee-0f6ee42/darwin-amd64-11_0
2022-08-08T06:16:59-06d96ee-0f6ee42/netbsd-386-9_0
2022-08-06T15:20:00-06d96ee-0c4db1e/plan9-386-0intro
2022-08-05T19:51:08-06d96ee-4fb7e22/plan9-386-0intro
2022-08-04T20:05:03-81c7dc4-39728f4/netbsd-386-9_0
2022-08-04T20:05:03-81c7dc4-39728f4/netbsd-amd64-9_0
2022-08-04T20:04:16-3519aa2-39728f4/netbsd-386-9_0
2022-08-04T19:57:25-763f65c-39728f4/netbsd-386-9_0
2022-08-04T18:51:46-99fd76f-39728f4/openbsd-386-70
2022-08-04T17:05:18-3e0a503-fb1bfd4/netbsd-amd64-9_0
2022-08-04T15:50:11-3e0a503-fcdd099/netbsd-386-9_0
2022-08-04T15:50:11-3e0a503-44ff9bf/netbsd-amd64-9_0
2022-08-04T15:31:49-87f47bb-44ff9bf/plan9-386-0intro
2022-08-04T14:58:59-87f47bb-4345620/netbsd-386-9_0
2022-08-04T10:32:51-3e0a503-a10afb1/linux-386-buster
2022-08-03T21:02:27-8b9a1fb-f28fa95/plan9-386-0intro
2022-08-03T21:02:27-8b9a1fb-4345620/netbsd-386-9_0
2022-08-03T18:07:40-d08f5dc-fcdd099/netbsd-386-9_0
2022-08-03T13:50:38-ddb90ec-c6a2dad/dragonfly-amd64-622
2022-08-03T13:50:38-ddb90ec-c6a2dad/plan9-386-0intro
2022-08-03T12:09:24-ddb90ec-29b9a32/plan9-386-0intro
2022-08-02T18:52:36-0d04f65-29b9a32/plan9-386-0intro
2022-08-02T18:19:01-d025cce-be59153/netbsd-amd64-9_0
2022-08-02T18:16:22-10cb435-d723df7/netbsd-amd64-9_0
2022-08-02T18:07:14-4d0b383-d723df7/netbsd-386-9_0
2022-08-02T18:07:14-4d0b383-d723df7/netbsd-amd64-9_0
2022-08-02T17:23:42-4d0b383-1b7e71e/darwin-amd64-nocgo
2022-08-02T16:05:48-4d0b383-f2a9f3e/netbsd-amd64-9_0
2022-07-29T20:19:23-9580c84-9240558/windows-arm64-11
2022-07-28T20:06:00-8ea5687-d9242f7/darwin-amd64-nocgo
2022-07-27T15:04:58-39a4e36-4248146/freebsd-386-13_0
2022-07-26T18:43:08-6c8a6c4-d9242f7/aix-ppc64
2022-07-25T20:44:49-2a6393f-24dc27a/darwin-amd64-10_14
2022-07-25T18:11:01-4375b29-795a88d/plan9-386-0intro
2022-07-25T14:16:17-178fdf9-64f2829/plan9-386-0intro
2022-07-22T20:12:19-7b605f4-c5da4fb/plan9-386-0intro
2022-07-21T20:11:06-ec1f924-c4a6d30/plan9-386-0intro
2022-07-15T15:11:26-22d1494-2aa473c/windows-386-2008-newcc
2022-07-15T14:27:36-1a4e02f-4651ebf/windows-arm64-10
2022-07-15T14:20:24-db8f89b-4651ebf/windows-arm64-10
2022-07-14T21:03:14-db8f89b-783ff7d/windows-arm64-11
2022-07-14T21:01:58-db8f89b-aa80228/darwin-arm64-11
2022-07-14T19:05:09-db8f89b-a906d3d/windows-arm64-10
2022-07-14T15:54:36-db8f89b-266c70c/windows-arm64-10
2022-07-14T01:47:39-db8f89b-558785a/windows-arm64-11

We recently started waiting for all go command invocations when shutting down gopls regtests. It appears that sometimes we kill the go command and still don't get a result from cmd.Wait(). For example, here:
https://build.golang.org/log/00046e0b005c7660d676a3a415561950048f756a

In that failure, the test runner looks otherwise healthy (other tests ran fast), and yet the goroutine stack clearly shows a go command hanging for 9 minutes here:
https://cs.opensource.google/go/x/tools/+/master:internal/gocommand/invoke.go;l=260;drc=f38573358cbedf46d64c5759ef41b72afcf0c5c0

@bcmills do you happen to have any idea of what might cause this?

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Aug 15, 2022
@gopherbot gopherbot added this to the Unreleased milestone Aug 15, 2022
@findleyr findleyr modified the milestones: Unreleased, gopls/later Aug 15, 2022
@findleyr
Copy link
Contributor Author

Two observations:

  1. We're not checking the error from Kill. If killing failed, I don't think we can expect Wait to return.
  2. Discussion at https://groups.google.com/g/golang-nuts/c/pUaEjqd5wo8

@adonovan
Copy link
Member

adonovan commented Aug 15, 2022

The only reason the kill system call can fail (at least in this situation) is when the child process has already exited, so failure of kill is unlikely to be the culprit. More likely kill terminated the go process itself, but not the tree of processes rooted at it. If one of them (a test?) retains an open file descriptor to the stdout pipe created by os/exec then the cmd.Run operation will hang indefinitely.

To dig further, we could add logic to run during the failure (on linux) that does ps -e f and ls -l /proc/*/fd/* to show the process tree and their open files.

@bcmills
Copy link
Contributor

bcmills commented Aug 16, 2022

Please do check the error from Kill — that would at least give a useful data point for diagnostics. (This may be closely related to #53400 #50187.)

@bcmills
Copy link
Contributor

bcmills commented Sep 14, 2022

greplogs -l -e 'panic: test timed out(?:.*\n)*goroutine \d+ \[.*, \d+ minutes\]:\n.*runCmdContext' --since=2022-08-15 --details

2022-09-13T12:58:04-ec74389-dad2966/netbsd-386-9_0
2022-09-13T12:38:14-ec74389-c7a0b15/netbsd-amd64-9_0
2022-09-13T12:37:11-ec74389-f4a587b/netbsd-amd64-9_0
2022-09-11T21:08:46-e71c338-00ece11/netbsd-amd64-9_0
2022-09-09T18:42:57-0eebaab-b244b89/netbsd-386-9_0
2022-09-09T15:36:26-eeaf4eb-600db8a/netbsd-386-9_0
2022-09-09T15:10:10-4754f75-9a5574a/netbsd-amd64-9_0
2022-09-08T15:55:44-a630751-cd8aa40/netbsd-amd64-9_0
2022-09-08T14:33:45-a630751-e5ed221/netbsd-386-9_0
2022-09-08T13:27:43-a630751-51fdfeb/darwin-arm64-11
2022-09-07T16:37:07-dd1bab2-3e75859/darwin-arm64-12
2022-09-07T14:47:36-c1dd25e-d81ed4d/netbsd-386-9_0
2022-09-07T14:47:36-c1dd25e-d81ed4d/netbsd-amd64-9_0
2022-09-07T14:33:56-c1dd25e-0752f4a/netbsd-386-9_0
2022-09-07T00:49:41-83d7619-8fd2073/netbsd-amd64-9_0
2022-09-06T22:14:56-83d7619-c82304b/netbsd-386-9_0
2022-09-06T17:36:47-83d7619-e0e0c8f/netbsd-amd64-9_0
2022-09-06T16:17:26-83d7619-4a4127b/netbsd-amd64-9_0
2022-09-06T16:04:07-83d7619-60ef4b2/netbsd-386-9_0
2022-09-06T12:35:13-d815cba-8a32354/netbsd-amd64-9_0
2022-09-03T06:26:16-d815cba-9fc09d2/netbsd-386-9_0
2022-09-02T18:51:37-be9eab1-5b1fbfb/netbsd-amd64-9_0
2022-09-02T18:17:25-5ba8541-0cf996a/netbsd-amd64-9_0
2022-09-02T15:27:18-eb8352e-321a220/netbsd-386-9_0
2022-09-02T05:05:13-33c1ddd-8e35910/darwin-arm64-12
2022-09-02T05:05:13-33c1ddd-8e35910/netbsd-amd64-9_0
2022-09-02T00:06:00-40cfaff-0592ce5/netbsd-amd64-9_0
2022-09-01T23:18:06-40cfaff-1280ae7/netbsd-amd64-9_0
2022-09-01T22:37:04-40cfaff-aa5ff29/netbsd-386-9_0
2022-09-01T18:08:05-f16be35-ef84141/netbsd-386-9_0
2022-09-01T15:27:30-6c10975-86e9e0e/netbsd-386-9_0
2022-09-01T03:24:42-49ab44d-91ef076/netbsd-amd64-9_0
2022-09-01T00:42:27-550e1f5-64b260d/netbsd-386-9_0
2022-08-31T23:52:00-550e1f5-ca634fa/netbsd-amd64-9_0
2022-08-31T22:22:43-550e1f5-e4b624e/netbsd-amd64-9_0
2022-08-31T22:10:52-550e1f5-33a7e5a/netbsd-386-9_0
2022-08-31T21:08:24-4ccc73c-ce77a46/netbsd-386-9_0
2022-08-31T21:08:24-4ccc73c-889d326/netbsd-amd64-9_0
2022-08-31T16:26:07-41c3a9b-d2d5929/netbsd-386-9_0
2022-08-31T01:16:54-248c34b-ee0e40a/netbsd-amd64-9_0
2022-08-30T21:30:15-248c34b-bd56cb9/netbsd-amd64-9_0
2022-08-30T00:49:19-248c34b-629ae1c/netbsd-amd64-9_0
2022-08-28T16:04:49-717a671-846c378/netbsd-386-9_0
2022-08-26T19:15:02-717a671-897ad2f/netbsd-amd64-9_0
2022-08-26T18:28:14-717a671-bf812b3/netbsd-386-9_0
2022-08-26T17:48:20-7f23307-296c40d/netbsd-amd64-9_0
2022-08-26T15:36:36-7c5e035-951d2c6/netbsd-386-9_0
2022-08-25T19:17:14-d35bb19-f64f12f/netbsd-386-9_0
2022-08-25T17:31:33-db6a62c-83b5fe6/netbsd-386-9_0
2022-08-25T14:56:18-db6a62c-e4be2ac/netbsd-amd64-9_0
2022-08-25T04:00:07-db6a62c-8c8429f/netbsd-386-9_0
2022-08-25T04:00:07-db6a62c-8c8429f/netbsd-amd64-9_0
2022-08-24T21:20:11-db6a62c-e4bed41/netbsd-amd64-9_0
2022-08-24T17:56:56-587a153-cfae70c/netbsd-386-9_0
2022-08-24T15:37:38-587a153-d5aa088/netbsd-amd64-9_0
2022-08-24T14:31:08-c837a30-f983a93/netbsd-amd64-9_0
2022-08-24T12:12:12-587a153-b5a9459/netbsd-amd64-9_0
2022-08-23T20:32:50-587a153-fc0d423/netbsd-386-9_0
2022-08-19T16:55:03-e55fb40-7dad1d2/netbsd-386-9_0
2022-08-19T16:17:50-e55fb40-5729419/netbsd-386-9_0
2022-08-19T15:53:47-e55fb40-f324355/netbsd-amd64-9_0
2022-08-19T03:09:05-e55fb40-a409356/netbsd-386-9_0
2022-08-15T20:41:00-938e162-de0f4d1/netbsd-amd64-9_0
2022-08-15T20:02:31-938e162-7b45edb/netbsd-amd64-9_0
2022-08-15T19:17:20-8c83056-7b45edb/netbsd-amd64-9_0
2022-08-15T17:42:12-987de34-1f833e4/darwin-amd64-12_0

(66 matching logs)

@findleyr
Copy link
Contributor Author

Interesting, I was debugging this in https://go.dev/cl/424075. On windows, our call to Process.Kill() is failing with "invalid argument":
https://storage.googleapis.com/go-build-log/e2f60200/windows-386-2008_71ad7007.log

A bit of googling suggests that this is because we can't kill subprocesses on windows.

@bcmills any advice for how to properly kill the go command on windows?

@findleyr
Copy link
Contributor Author

After reading the source a bit more: this is EINVAL, which appears to mean that the Process.wait() has exited and the handle released, so this is a race, although it is surprising that we hit it so reliably.

@gopherbot
Copy link

Change https://go.dev/cl/424075 mentions this issue: internal/gocommand: add instrumentation for hanging go commands

@bcmills
Copy link
Contributor

bcmills commented Sep 14, 2022

any advice for how to properly kill the go command on windows?

Can't be done without creating a whole extra process group, unfortunately. (Probably we should add a side-channel — perhaps an open file descriptor or a pidfile? — to request clean shutdown on Windows.)

gopherbot pushed a commit to golang/tools that referenced this issue Sep 15, 2022
When a go command hangs during gopls regression tests, print out
additional information about processes and file descriptors.

For golang/go#54461

Change-Id: I92aa4665e9056d15a274c154fce2783bed79718e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/424075
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
@gopherbot
Copy link

Change https://go.dev/cl/431075 mentions this issue: internal/gocommand: tweak debugging for hanging go commands

gopherbot pushed a commit to golang/tools that referenced this issue Sep 15, 2022
Add a TODO and wait for a shorter period of time following Kill, per
post-submit advice from bcmills on CL 424075.

For golang/go#54461

Change-Id: Ia0e388c0119660844dad32629ebca4f122fded12
Reviewed-on: https://go-review.googlesource.com/c/tools/+/431075
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
@findleyr
Copy link
Contributor Author

@adonovan
Copy link
Member

Nice. Well, that test process seems very much alive, falsifying my hypothesis.

@findleyr
Copy link
Contributor Author

13032 12910 (compile)
 9802 13032 go list -modfile=/tmp/workdir/tmp/go.8f5d4cc245da9790bda529e64ae3e7

Looks like the hanging go command is in the middle of a compile. Wish we had the full subprocesss command line -- I'll look into that.

Not sure how to interpret the fstat output.

@adonovan
Copy link
Member

That's a dead cmd/compile process: there's no command because argv has been destroyed along with the rest of the address space. Perhaps the go list parent simply hasn't called waitpid yet, so the process table entry has to be retained. I suspect the problem is in go list.

@findleyr
Copy link
Contributor Author

Aha, thanks (excuse my ps noobness).

Note that we instrumented this panic in two places: once before Kill() and once after. This is before, so I don't think it falsifies your hypothesis, if I'm understanding correctly.

@bcmills
Copy link
Contributor

bcmills commented Sep 16, 2022

That one is netbsd, which could plausibly be explained as #50138. (I'd rather we wait for one of these on a platform without a known issue for Wait before we do too much digging.)

@findleyr
Copy link
Contributor Author

greplogs --dashboard -md -l -e 'HANGING GO' --since=2022-09-15

2022-09-17T02:56:51-4d18923-cc1b20e/netbsd-amd64-9_0
2022-09-16T17:59:31-a61f20e-a84f46a/netbsd-amd64-9_0
2022-09-16T16:33:11-a61f20e-8451529/netbsd-386-9_0
2022-09-16T14:49:13-a61f20e-b35b4a3/netbsd-amd64-9_0

Still only netbsd. Posting the greplogs query here for future reference.

@bcmills
Copy link
Contributor

bcmills commented Sep 21, 2022

Ooh, nice! https://go.dev/issue/55323#issuecomment-1254107802 has a darwin/arm64 hang. 😃

@bcmills
Copy link
Contributor

bcmills commented Sep 21, 2022

As expected, cmd/go itself has already exited at the point of the hang:

2022/09/20 08:42:37 error killing the Go command: os: process already finished

But there are an awful lot of processes in that dump, and nothing that obviously stands out as a subprocess of cmd/go that would have access to stdout or stderr. 😕

@bcmills
Copy link
Contributor

bcmills commented Sep 21, 2022

Here's an off-the-wall theory: maybe the file descriptors actually are closed, and something in the parent Go process (i.e. gopls) isn't waking up from the end-of-stream event..?

#53434 could be related.

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-23 20:28 darwin-amd64-longtest tools@15234410 go@e6891188 x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49346
serve.go:441: debug server listening at http://localhost:49347
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 41160): see golang/go#54461 for more details

goroutine 50494 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00ac846c0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:445 +0x419
golang.org/x/tools/internal/gocommand.runCmdContext({0x4361f18, 0xc0096f74a0}, 0xc000234420)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:378 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc00066ac50, {0x4361f18, 0xc0096f74a0}, {0x43588b8, 0xc0096f75c0}, {0x43588b8, 0xc0096f75f0})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:273 +0x1012
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc00066ac18?, {0x4361f18, 0xc0096f74a0}, {0x43588b8?, 0xc0096f75c0?}, {0x43588b8, 0xc0096f75f0})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc00032afa0, {0xc009235c20, 0x2, 0x2})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0028d0628, {0xc009235b40, 0x2, 0xc000de6980?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x7a5
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 50491
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-23 20:28 x_tools-gotip-windows-amd64-race tools@15234410 go@db5f2b41 golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	255.799s
2024-04-23 20:28 x_tools-gotip-windows-amd64-race tools@15234410 go@db5f2b41 x/tools/gopls/internal/test/integration/codelens.TestUpgradeCodelens_Workspace [ABORT] (log)
=== RUN   TestUpgradeCodelens_Workspace
2024-04-23 20:28 x_tools-gotip-windows-amd64-race tools@15234410 go@db5f2b41 golang.org/x/tools/gopls/internal/test/integration/diagnostics (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/diagnostics	253.369s

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-25 05:11 x_tools-go1.22-openbsd-amd64 tools@b00d49ed release-branch.go1.22@d6c972ad golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	212.138s
2024-04-25 05:11 x_tools-go1.22-openbsd-amd64 tools@b00d49ed release-branch.go1.22@d6c972ad x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 84913): see golang/go#54461 for more details

goroutine 4511 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/internal/gocommand/invoke.go:445
golang.org/x/tools/internal/gocommand.runCmdContext({0x1366308, 0xc0072a1f20}, 0xc000adb4a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/internal/gocommand/invoke.go:378 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc007148bf8, {0x1366308, 0xc0072a1f20}, {0x135d4a0, 0xc0072b60c0}, {0x135d4a0, 0xc0072b60f0})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/internal/gocommand/invoke.go:273 +0x1012
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc007148bc0?, {0x1366308, 0xc0072a1f20}, {0x135d4a0?, 0xc0072b60c0?}, {0x135d4a0, 0xc0072b60f0})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/internal/gocommand/invoke.go:182 +0x4f
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc007286d00, {0x1366308, 0xc0072a1f20}, {{0x106bc59, 0x4}, {0xc0072a60e0, 0xb, 0xe}, {0x1ab9040, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/internal/gocommand/invoke.go:121 +0x165
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0xc007286d00, {0x13663b0, 0xc004691420}, {{0x106bc59, 0x4}, {0xc0072a60e0, 0xb, 0xe}, {0x1ab9040, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/internal/gocommand/invoke.go:95 +0x335
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc0046b0be0?, {0x106bc59?, 0x4?}, {0xc0072a60e0, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc0046b0be0, {0xc007286d20, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0072a6008, {0xc007286c40, 0x2, 0x0?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/go/packages/golist.go:200 +0x7a5
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1173932031/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4508
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-25 20:20 x_tools-go1.21-openbsd-amd64 tools@fcea13b6 release-branch.go1.21@891ac91e golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	206.276s
2024-04-25 20:20 x_tools-go1.21-openbsd-amd64 tools@fcea13b6 release-branch.go1.21@891ac91e x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 89055): see golang/go#54461 for more details

goroutine 4014 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/internal/gocommand/invoke.go:445
golang.org/x/tools/internal/gocommand.runCmdContext({0x131e5e0, 0xc001e6a300}, 0xc000fc49a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/internal/gocommand/invoke.go:378 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc00153eaa8, {0x131e5e0, 0xc001e6a300}, {0x1315780?, 0xc001e6a420}, {0x1315780?, 0xc001e6a450})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/internal/gocommand/invoke.go:273 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc00153ea70?, {0x131e5e0, 0xc001e6a300}, {0x1315780?, 0xc001e6a420?}, {0x1315780?, 0xc001e6a450?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/internal/gocommand/invoke.go:182 +0x59
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc00221e360, {0x131e5e0, 0xc001e6a300}, {{0x102a8df, 0x4}, {0xc000ff2000, 0xb, 0xe}, {0x1a08400, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/internal/gocommand/invoke.go:121 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0x7a228a?, {0x131e688, 0xc003724000}, {{0x102a8df, 0x4}, {0xc000ff2000, 0xb, 0xe}, {0x1a08400, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/internal/gocommand/invoke.go:95 +0x335
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc000698e60?, {0x102a8df?, 0x4?}, {0xc000ff2000?, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc000698e60, {0xc00221e380, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc000738008, {0xc00221e2a0, 0x2, 0xc000a5c630?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/go/packages/golist.go:200 +0x7af
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2526726720/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4037
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
2024-04-26 17:54 x_tools-go1.21-openbsd-amd64 tools@bcec0994 release-branch.go1.21@891ac91e golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	207.921s
2024-04-26 17:54 x_tools-go1.21-openbsd-amd64 tools@bcec0994 release-branch.go1.21@891ac91e x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 25742): see golang/go#54461 for more details

goroutine 4025 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/internal/gocommand/invoke.go:445
golang.org/x/tools/internal/gocommand.runCmdContext({0x1322060, 0xc00145cf00}, 0xc000762160)
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/internal/gocommand/invoke.go:378 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0014c2aa8, {0x1322060, 0xc00145cf00}, {0x1319200?, 0xc00145d020}, {0x1319200?, 0xc00145d050})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/internal/gocommand/invoke.go:273 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0014c2a70?, {0x1322060, 0xc00145cf00}, {0x1319200?, 0xc00145d020?}, {0x1319200?, 0xc00145d050?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/internal/gocommand/invoke.go:182 +0x59
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc003085340, {0x1322060, 0xc00145cf00}, {{0x102de5f, 0x4}, {0xc00022e2a0, 0xb, 0xe}, {0x1a0c400, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/internal/gocommand/invoke.go:121 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0x7a228a?, {0x1322108, 0xc002eca620}, {{0x102de5f, 0x4}, {0xc00022e2a0, 0xb, 0xe}, {0x1a0c400, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/internal/gocommand/invoke.go:95 +0x335
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc00723caa0?, {0x102de5f?, 0x4?}, {0xc00022e2a0?, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc00723caa0, {0xc003085360, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc001294008, {0xc003085280, 0x2, 0xc0004d8990?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/go/packages/golist.go:200 +0x7af
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo932394896/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4038
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-26 20:48 darwin-amd64-longtest tools@0b451635 go@774d5b36 x/tools/gopls/internal/test/integration/workspace (log)
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
 PPID   PID COMMAND
...
panic: detected hanging go command (pid 40276): see golang/go#54461 for more details

goroutine 27971 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc009f7e4b0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x7105be8, 0xc006ddc390}, 0xc006263760)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0004e5620, {0x7105be8, 0xc006ddc390}, {0x70fc598, 0xc006ddc4b0}, {0x70fc598, 0xc006ddc4e0})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0004e55e8?, {0x7105be8, 0xc006ddc390}, {0x70fc598?, 0xc006ddc4b0?}, {0x70fc598, 0xc006ddc4e0})
...
golang.org/x/tools/gopls/internal/cache.(*Snapshot).ModTidy.func1({0x7105c20, 0xc0039fdb80}, {0x70f1c40, 0xc00705ad80})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/cache/mod_tidy.go:81 +0x75
golang.org/x/tools/internal/memoize.(*Promise).run.func2.1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:187 +0x9c
runtime/trace.WithRegion({0x7105c20?, 0xc0039fdb80?}, {0xc0058ec4c8, 0x13}, 0xc000659f80)
	/tmp/buildlet/go/src/runtime/trace/annotation.go:141 +0xd1
golang.org/x/tools/internal/memoize.(*Promise).run.func2()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:180 +0x11d
created by golang.org/x/tools/internal/memoize.(*Promise).run in goroutine 27970
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:179 +0x1a5

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-26 20:48 x_tools-go1.21-darwin-amd64-longtest tools@0b451635 release-branch.go1.21@891ac91e golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	111.329s
2024-04-26 20:48 x_tools-go1.21-darwin-amd64-longtest tools@0b451635 release-branch.go1.21@891ac91e x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 97352): see golang/go#54461 for more details

goroutine 14988 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0070798c0)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f71720, 0xc00718ef00}, 0xc006eeab00)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc006f82918, {0x1f71720, 0xc00718ef00}, {0x1f687c0?, 0xc00718f020}, {0x1f687c0?, 0xc00718f050})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc006f828e0?, {0x1f71720, 0xc00718ef00}, {0x1f687c0?, 0xc00718f020?}, {0x1f687c0?, 0xc00718f050?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f71720, 0xc006fd61b0}, 0xc006fd6780, {0x496b75f8, 0xc006fd60f0})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f71720, 0xc006fd61b0}, 0xc006fd6780, {0x496b75f8?, 0xc006fd60f0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f71720, 0xc006fd61b0}, 0xc006f9bec0, {0x496b75f8?, 0xc006fd60f0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 15188
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2592685925/internal/jsonrpc2/handler.go:100 +0x1ed

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-29 15:14 x_tools-gotip-openbsd-amd64 tools@5ef4fc90 go@16ce8b39 golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	204.670s
2024-04-29 15:14 x_tools-gotip-openbsd-amd64 tools@5ef4fc90 go@16ce8b39 x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 89727): see golang/go#54461 for more details

goroutine 4431 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x136a2c8, 0xc007a76ae0}, 0xc0002d6b00)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/internal/gocommand/invoke.go:380 +0x92a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc003410c48, {0x136a2c8, 0xc007a76ae0}, {0x1360b80, 0xc007a76c00}, {0x1360b80, 0xc007a76c30})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc003410c10?, {0x136a2c8, 0xc007a76ae0}, {0x1360b80?, 0xc007a76c00?}, {0x1360b80, 0xc007a76c30})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/internal/gocommand/invoke.go:184 +0x4f
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc007a7a080, {0x136a2c8, 0xc007a76ae0}, {{0x10759f2, 0x4}, {0xc00346e2a0, 0xb, 0xe}, {0x1a926c0, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0xc007a7a080, {0x136a370, 0xc00782cb60}, {{0x10759f2, 0x4}, {0xc00346e2a0, 0xb, 0xe}, {0x1a926c0, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc0034286e0?, {0x10759f2?, 0x4?}, {0xc00346e2a0, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc0034286e0, {0xc007a7a0a0, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc00346e1c8, {0xc00785ff40, 0x2, 0xc0039bd540?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2943098624/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4428
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-04-29 15:14 x_tools-go1.21-openbsd-amd64 tools@5ef4fc90 release-branch.go1.21@891ac91e golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	203.848s
2024-04-29 15:14 x_tools-go1.21-openbsd-amd64 tools@5ef4fc90 release-branch.go1.21@891ac91e x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 70558): see golang/go#54461 for more details

goroutine 3892 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x1320fe0, 0xc0075d6060}, 0xc0035589a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/internal/gocommand/invoke.go:380 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0075c4a78, {0x1320fe0, 0xc0075d6060}, {0x1318180?, 0xc0075d6180}, {0x1318180?, 0xc0075d61b0})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0075c4a40?, {0x1320fe0, 0xc0075d6060}, {0x1318180?, 0xc0075d6180?}, {0x1318180?, 0xc0075d61b0?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/internal/gocommand/invoke.go:184 +0x59
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc007593120, {0x1320fe0, 0xc0075d6060}, {{0x102cfa2, 0x4}, {0xc0075ca0e0, 0xb, 0xe}, {0x1a0b540, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0x7a222a?, {0x1321088, 0xc003c0c460}, {{0x102cfa2, 0x4}, {0xc0075ca0e0, 0xb, 0xe}, {0x1a0b540, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc003c08dc0?, {0x102cfa2?, 0x4?}, {0xc0075ca0e0?, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc003c08dc0, {0xc007593140, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0075ca008, {0xc007593060, 0x2, 0xc000c8a120?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/go/packages/golist.go:200 +0x7af
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1628105110/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 3665
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
2024-04-29 17:36 x_tools-go1.21-openbsd-amd64 tools@74c9cfe4 release-branch.go1.21@891ac91e golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	184.600s
2024-04-29 17:36 x_tools-go1.21-openbsd-amd64 tools@74c9cfe4 release-branch.go1.21@891ac91e x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 12798): see golang/go#54461 for more details

goroutine 3968 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x13210c0, 0xc0025b22d0}, 0xc003d47ce0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/internal/gocommand/invoke.go:380 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000ff0a78, {0x13210c0, 0xc0025b22d0}, {0x1318260?, 0xc0025b2450}, {0x1318260?, 0xc0025b24b0})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000ff0a40?, {0x13210c0, 0xc0025b22d0}, {0x1318260?, 0xc0025b2450?}, {0x1318260?, 0xc0025b24b0?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/internal/gocommand/invoke.go:184 +0x59
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc0016b7e80, {0x13210c0, 0xc0025b22d0}, {{0x102cfc2, 0x4}, {0xc000663180, 0xb, 0xe}, {0x1a0b540, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0x7a222a?, {0x1321168, 0xc002cc30a0}, {{0x102cfc2, 0x4}, {0xc000663180, 0xb, 0xe}, {0x1a0b540, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc003aad540?, {0x102cfc2?, 0x4?}, {0xc000663180?, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc003aad540, {0xc0016b7ea0, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0006630a8, {0xc0016b7dc0, 0x2, 0xc0003df290?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/go/packages/golist.go:200 +0x7af
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1824797321/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 3773
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-06 18:08 darwin-amd64-longtest tools@b020bdb5 go@5122a679 x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49365
serve.go:441: debug server listening at http://localhost:49366
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 42016): see golang/go#54461 for more details

goroutine 52321 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00707df50)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x9fc5f58, 0xc002d6f3e0}, 0xc002847ce0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc002c54db8, {0x9fc5f58, 0xc002d6f3e0}, {0x9fbd420, 0xc0017145a0}, {0x9fbc5a8, 0xc0001223a8})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc00c284b70?, {0x9fc5f58, 0xc002d6f3e0}, {0x9fbd420?, 0xc0017145a0?}, {0x9fbc5a8, 0xc0001223a8})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x9fc5f90, 0xc0021fba40}, 0xc00160ea50, {0x9fc60e0, 0xc00b526540})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x9fc5f90, 0xc0021fba40}, 0xc00160ea50, {0x9fc60e0, 0xc00b526540})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x9fc5f90, 0xc0021fba40}, 0xc00ee54c60, {0x9fc60e0, 0xc00b526540})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:35 +0xc6
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 52220
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:100 +0x1c5

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-07 14:48 darwin-amd64-longtest tools@b426bc7e go@5f5e9f4f x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49332
serve.go:441: debug server listening at http://localhost:49333
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 41496): see golang/go#54461 for more details

goroutine 51778 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0003b3b60)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x3a1b0d8, 0xc00d1cbe90}, 0xc008e25600)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc002866c48, {0x3a1b0d8, 0xc00d1cbe90}, {0x3a11a80, 0xc00748e030}, {0x3a11a80, 0xc00748e060})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc002866c10?, {0x3a1b0d8, 0xc00d1cbe90}, {0x3a11a80?, 0xc00748e030?}, {0x3a11a80, 0xc00748e060})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc000d761e0, {0xc004c77740, 0x2, 0x2})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc002694e08, {0xc004c77660, 0x2, 0x0?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 51794
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 13:35 x_tools-go1.21-darwin-amd64-longtest tools@1718e2d7 release-branch.go1.21@752b0090 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	95.483s
2024-05-08 13:35 x_tools-go1.21-darwin-amd64-longtest tools@1718e2d7 release-branch.go1.21@752b0090 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 75573): see golang/go#54461 for more details

goroutine 16750 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc007811830)
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f727e0, 0xc007836630}, 0xc007802160)
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc004290918, {0x1f727e0, 0xc007836630}, {0x1f698a0?, 0xc007836750}, {0x1f698a0?, 0xc007836780})
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0042908e0?, {0x1f727e0, 0xc007836630}, {0x1f698a0?, 0xc007836750?}, {0x1f698a0?, 0xc007836780?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f727e0, 0xc0078a3350}, 0xc0078a3920, {0x497ffb58, 0xc0078a3290})
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f727e0, 0xc0078a3350}, 0xc0078a3920, {0x497ffb58?, 0xc0078a3290?})
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f727e0, 0xc0078a3350}, 0xc0078909c0, {0x497ffb58?, 0xc0078a3290?})
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 16777
	/Volumes/Work/s/w/ir/x/w/targetrepo1616120464/internal/jsonrpc2/handler.go:100 +0x1ed

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 14:20 x_tools-gotip-openbsd-amd64 tools@5daf157e go@4ed358b5 golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	242.443s
2024-05-08 14:20 x_tools-gotip-openbsd-amd64 tools@5daf157e go@4ed358b5 x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 32132): see golang/go#54461 for more details

goroutine 4006 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x136b928, 0xc007ab0de0}, 0xc007a806e0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/internal/gocommand/invoke.go:380 +0x92a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0036d4c48, {0x136b928, 0xc007ab0de0}, {0x13621e0, 0xc007ab0f00}, {0x13621e0, 0xc007ab0f30})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0036d4c10?, {0x136b928, 0xc007ab0de0}, {0x13621e0?, 0xc007ab0f00?}, {0x13621e0, 0xc007ab0f30})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/internal/gocommand/invoke.go:184 +0x4f
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc0040b63e0, {0x136b928, 0xc007ab0de0}, {{0x10771d2, 0x4}, {0xc003bf8a80, 0xb, 0xe}, {0x1a957e0, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0xc0040b63e0, {0x136b9d0, 0xc0021abb90}, {{0x10771d2, 0x4}, {0xc003bf8a80, 0xb, 0xe}, {0x1a957e0, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc002b56e60?, {0x10771d2?, 0x4?}, {0xc003bf8a80, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc002b56e60, {0xc0040b6400, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0005eb508, {0xc0040b6320, 0x2, 0x40a917?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3120337713/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4467
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 15:39 x_tools-go1.21-openbsd-amd64 tools@ff28778d release-branch.go1.21@752b0090 golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	188.520s
2024-05-08 15:39 x_tools-go1.21-openbsd-amd64 tools@ff28778d release-branch.go1.21@752b0090 x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 46331): see golang/go#54461 for more details

goroutine 4010 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x1322920, 0xc0076b5200}, 0xc0001c9600)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/internal/gocommand/invoke.go:380 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc003e8ca78, {0x1322920, 0xc0076b5200}, {0x1319ac0?, 0xc0076b5320}, {0x1319ac0?, 0xc0076b5350})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc003e8ca40?, {0x1322920, 0xc0076b5200}, {0x1319ac0?, 0xc0076b5320?}, {0x1319ac0?, 0xc0076b5350?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/internal/gocommand/invoke.go:184 +0x59
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc0076949c0, {0x1322920, 0xc0076b5200}, {{0x102e2c2, 0x4}, {0xc0074c62a0, 0xb, 0xe}, {0x1a0d640, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0x7a24ea?, {0x13229c8, 0xc002f6e2a0}, {{0x102e2c2, 0x4}, {0xc0074c62a0, 0xb, 0xe}, {0x1a0d640, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc0074e21e0?, {0x102e2c2?, 0x4?}, {0xc0074c62a0?, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc0074e21e0, {0xc0076949e0, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0074c61c8, {0xc007694900, 0x2, 0xc000668090?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/go/packages/golist.go:200 +0x7af
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1981235014/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4007
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 18:24 x_tools-go1.21-darwin-amd64-longtest tools@e35e4ccd release-branch.go1.21@752b0090 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	96.631s
2024-05-08 18:24 x_tools-go1.21-darwin-amd64-longtest tools@e35e4ccd release-branch.go1.21@752b0090 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 10860): see golang/go#54461 for more details

goroutine 17038 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc006073740)
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f7c260, 0xc0052699e0}, 0xc00424adc0)
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc004da8918, {0x1f7c260, 0xc0052699e0}, {0x1f73320?, 0xc005269b00}, {0x1f73320?, 0xc005269b30})
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc004da88e0?, {0x1f7c260, 0xc0052699e0}, {0x1f73320?, 0xc005269b00?}, {0x1f73320?, 0xc005269b30?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f7c260, 0xc005388b70}, 0xc005389140, {0x495ea290, 0xc005388ab0})
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f7c260, 0xc005388b70}, 0xc005389140, {0x495ea290?, 0xc005388ab0?})
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f7c260, 0xc005388b70}, 0xc00177d188, {0x495ea290?, 0xc005388ab0?})
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 17006
	/Volumes/Work/s/w/ir/x/w/targetrepo3631942920/internal/jsonrpc2/handler.go:100 +0x1ed
2024-05-08 20:04 x_tools-go1.21-openbsd-amd64 tools@f38ac9b3 release-branch.go1.21@752b0090 golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	180.104s
2024-05-08 20:04 x_tools-go1.21-openbsd-amd64 tools@f38ac9b3 release-branch.go1.21@752b0090 x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 80935): see golang/go#54461 for more details

goroutine 3992 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x132b4e0, 0xc002eb9350}, 0xc001c1c160)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/internal/gocommand/invoke.go:380 +0x94a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000ed4a78, {0x132b4e0, 0xc002eb9350}, {0x1322680?, 0xc002eb9500}, {0x1322680?, 0xc002eb9530})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000ed4a40?, {0x132b4e0, 0xc002eb9350}, {0x1322680?, 0xc002eb9500?}, {0x1322680?, 0xc002eb9530?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/internal/gocommand/invoke.go:184 +0x59
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc001b94140, {0x132b4e0, 0xc002eb9350}, {{0x1027d7e, 0x4}, {0xc00049ac40, 0xb, 0xe}, {0x1a11520, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0x7a24ea?, {0x132b588, 0xc00104e7e0}, {{0x1027d7e, 0x4}, {0xc00049ac40, 0xb, 0xe}, {0x1a11520, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc000fb90e0?, {0x1027d7e?, 0x4?}, {0xc00049ac40?, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc000fb90e0, {0xc001b94c60, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc001074008, {0xc0013e10e0, 0x2, 0xc0004aa630?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/go/packages/golist.go:200 +0x7af
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3390906771/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 3989
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 20:50 x_tools-gotip-openbsd-amd64 tools@8483344d go@a878d3df golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	238.376s
2024-05-08 20:50 x_tools-gotip-openbsd-amd64 tools@8483344d go@a878d3df x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 85954): see golang/go#54461 for more details

goroutine 4421 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x13795a8, 0xc007ba5530}, 0xc000fd1080)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/internal/gocommand/invoke.go:380 +0x92a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc003e58c48, {0x13795a8, 0xc007ba5530}, {0x136fe60, 0xc007ba5650}, {0x136fe60, 0xc007ba5680})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc003e58c10?, {0x13795a8, 0xc007ba5530}, {0x136fe60?, 0xc007ba5650?}, {0x136fe60, 0xc007ba5680})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/internal/gocommand/invoke.go:184 +0x4f
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc007cc04e0, {0x13795a8, 0xc007ba5530}, {{0x1074c0e, 0x4}, {0xc0037c08c0, 0xb, 0xe}, {0x1aa0b80, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0xc007cc04e0, {0x1379650, 0xc001699810}, {{0x1074c0e, 0x4}, {0xc0037c08c0, 0xb, 0xe}, {0x1aa0b80, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc002d20be0?, {0x1074c0e?, 0x4?}, {0xc0037c08c0, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc002d20be0, {0xc007cc0500, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0002b9ea8, {0xc007cc0420, 0x2, 0x0?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2507407016/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4406
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
2024-05-08 20:50 x_tools-gotip-windows-amd64-race tools@8483344d go@a878d3df golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	426.427s
2024-05-08 20:50 x_tools-gotip-windows-amd64-race tools@8483344d go@a878d3df x/tools/gopls/internal/test/integration/codelens.TestUpgradeCodelens_Workspace [ABORT] (log)
=== RUN   TestUpgradeCodelens_Workspace
2024-05-08 20:50 x_tools-gotip-windows-amd64-race tools@8483344d go@a878d3df golang.org/x/tools/gopls/internal/test/integration/diagnostics (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/diagnostics	423.430s

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 18:24 darwin-amd64-longtest tools@e35e4ccd go@20721e5c x/tools/gopls/internal/test/integration/diagnostics (log)
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
 PPID   PID COMMAND
...
panic: detected hanging go command (pid 41545): see golang/go#54461 for more details

goroutine 57672 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00121b1d0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x105913c8, 0xc0021aa1e0}, 0xc002dfaf20)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0007b4a48, {0x105913c8, 0xc0021aa1e0}, {0x10587e00, 0xc0021aa300}, {0x10587e00, 0xc0021aa330})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0007b4a10?, {0x105913c8, 0xc0021aa1e0}, {0x10587e00?, 0xc0021aa300?}, {0x10587e00, 0xc0021aa330})
...
golang.org/x/tools/go/packages.(*golistState).runContainsQueries(0xc00056d360, 0xc0013f1ce0, {0xc0033a0770?, 0x16?, 0x103ef040?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:227 +0xe5
golang.org/x/tools/go/packages.goListDriver(0xc00049c628, {0xc0033a0600, 0x1, 0xfe5c7d4?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:208 +0x872
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 57979
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
2024-05-08 18:24 darwin-amd64-longtest tools@e35e4ccd go@20721e5c x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49342
serve.go:441: debug server listening at http://localhost:49343
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 41538): see golang/go#54461 for more details

goroutine 52585 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0000d5c80)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x6cbeb78, 0xc002936ed0}, 0xc001a7dce0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000c90c48, {0x6cbeb78, 0xc002936ed0}, {0x6cb5520, 0xc002937020}, {0x6cb5520, 0xc002937050})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000c90c10?, {0x6cbeb78, 0xc002936ed0}, {0x6cb5520?, 0xc002937020?}, {0x6cb5520, 0xc002937050})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc002633d60, {0xc001f8ac00, 0x2, 0x2})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc000e8a0e8, {0xc001f8ab20, 0x2, 0x1d?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 52641
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-08 23:50 x_tools-go1.21-darwin-amd64-longtest tools@3b13d03c release-branch.go1.21@752b0090 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	103.328s
2024-05-08 23:50 x_tools-go1.21-darwin-amd64-longtest tools@3b13d03c release-branch.go1.21@752b0090 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 36058): see golang/go#54461 for more details

goroutine 15426 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc006280540)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f7e900, 0xc006287410}, 0xc006f2ac60)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc006e38918, {0x1f7e900, 0xc006287410}, {0x1f75980?, 0xc006287530}, {0x1f75980?, 0xc006287560})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc006e388e0?, {0x1f7e900, 0xc006287410}, {0x1f75980?, 0xc006287530?}, {0x1f75980?, 0xc006287560?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f7e900, 0xc006f57b90}, 0xc006f74180, {0x496adf30, 0xc006f57ad0})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f7e900, 0xc006f57b90}, 0xc006f74180, {0x496adf30?, 0xc006f57ad0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f7e900, 0xc006f57b90}, 0xc006f70288, {0x496adf30?, 0xc006f57ad0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 15408
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2099907023/internal/jsonrpc2/handler.go:100 +0x1ed
2024-05-09 15:16 x_tools-go1.21-darwin-amd64-longtest tools@9795facf release-branch.go1.21@752b0090 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	102.293s
2024-05-09 15:16 x_tools-go1.21-darwin-amd64-longtest tools@9795facf release-branch.go1.21@752b0090 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 81058): see golang/go#54461 for more details

goroutine 15768 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc007126660)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f81000, 0xc00712e540}, 0xc006d3f1e0)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000eaa8e8, {0x1f81000, 0xc00712e540}, {0x1f78080?, 0xc00712e660}, {0x1f78080?, 0xc00712e690})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000eaa8b0?, {0x1f81000, 0xc00712e540}, {0x1f78080?, 0xc00712e660?}, {0x1f78080?, 0xc00712e690?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f81000, 0xc0070c0b70}, 0xc0070c1140, {0x4944c4b8, 0xc0070c0ab0})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f81000, 0xc0070c0b70}, 0xc0070c1140, {0x4944c4b8?, 0xc0070c0ab0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f81000, 0xc0070c0b70}, 0xc0070b4900, {0x4944c4b8?, 0xc0070c0ab0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 15784
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2897326749/internal/jsonrpc2/handler.go:100 +0x1ed

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-09 15:16 x_tools-gotip-windows-amd64-race tools@24f3b32f go@cecbf4f2 golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	157.596s
2024-05-09 15:16 x_tools-gotip-windows-amd64-race tools@24f3b32f go@cecbf4f2 x/tools/gopls/internal/test/integration/codelens.TestUpgradeCodelens_Workspace [ABORT] (log)
=== RUN   TestUpgradeCodelens_Workspace
2024-05-09 15:16 x_tools-gotip-windows-amd64-race tools@24f3b32f go@cecbf4f2 golang.org/x/tools/gopls/internal/test/integration/diagnostics (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/diagnostics	155.600s

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-09 18:39 darwin-amd64-longtest tools@3e9beb69 go@e0aab32c x/tools/gopls/internal/test/integration/diagnostics (log)
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
 PPID   PID COMMAND
...
panic: detected hanging go command (pid 41100): see golang/go#54461 for more details

goroutine 57269 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0091f3c50)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0xbd5ede8, 0xc003355ec0}, 0xc001432580)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000d56a48, {0xbd5ede8, 0xc003355ec0}, {0xbd55800, 0xc00575a090}, {0xbd55800, 0xc00575a0c0})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000d56a10?, {0xbd5ede8, 0xc003355ec0}, {0xbd55800?, 0xc00575a090?}, {0xbd55800, 0xc00575a0c0})
...
golang.org/x/tools/go/packages.(*golistState).runContainsQueries(0xc002eb8780, 0xc002f2d620, {0xc001daabb0?, 0xbd5da30?, 0xbbbc240?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:227 +0xe5
golang.org/x/tools/go/packages.goListDriver(0xc000729ce8, {0xc001daa600, 0x1, 0xc0001333b0?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:208 +0x872
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 57292
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
2024-05-09 18:39 darwin-amd64-longtest tools@3e9beb69 go@e0aab32c x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49329
serve.go:441: debug server listening at http://localhost:49330
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 41150): see golang/go#54461 for more details

goroutine 54812 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0004efe30)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x76e4598, 0xc0037cc390}, 0xc001ede9a0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000554e28, {0x76e4598, 0xc0037cc390}, {0x76dba60, 0xc001b0bb60}, {0x76daba8, 0xc002d108d0})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc00243a1c0?, {0x76e4598, 0xc0037cc390}, {0x76dba60?, 0xc001b0bb60?}, {0x76daba8, 0xc002d108d0})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x76e45d0, 0xc0017d6be0}, 0xc0039b67b0, {0x76e4720, 0xc00391fb40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x76e45d0, 0xc0017d6be0}, 0xc0039b67b0, {0x76e4720, 0xc00391fb40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x76e45d0, 0xc0017d6be0}, 0xc0010ab668, {0x76e4720, 0xc00391fb40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:35 +0xc6
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 54668
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:100 +0x1c5

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-09 18:39 darwin-amd64-longtest tools@3e9beb69 go@95a3779e x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49373
serve.go:441: debug server listening at http://localhost:49374
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 42556): see golang/go#54461 for more details

goroutine 54145 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00274a9f0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x637b598, 0xc002410ba0}, 0xc001afe000)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000faec48, {0x637b598, 0xc002410ba0}, {0x6371f20, 0xc002410cc0}, {0x6371f20, 0xc002410cf0})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000faec10?, {0x637b598, 0xc002410ba0}, {0x6371f20?, 0xc002410cc0?}, {0x6371f20, 0xc002410cf0})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc0017bce60, {0xc0004ffa00, 0x2, 0x2})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc00091c1c8, {0xc0004ff920, 0x2, 0x0?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 54119
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-09 18:39 darwin-amd64-longtest tools@3e9beb69 go@b44600f8 x/tools/gopls/internal/test/integration/diagnostics (log)
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
 PPID   PID COMMAND
...
panic: detected hanging go command (pid 40735): see golang/go#54461 for more details

goroutine 56364 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00138e4b0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x11f683c8, 0xc001fb2cc0}, 0xc001d55600)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0002f6a48, {0x11f683c8, 0xc001fb2cc0}, {0x11f5eb20, 0xc001fb2de0}, {0x11f5eb20, 0xc001fb2e40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0002f6a10?, {0x11f683c8, 0xc001fb2cc0}, {0x11f5eb20?, 0xc001fb2de0?}, {0x11f5eb20, 0xc001fb2e40})
...
golang.org/x/tools/go/packages.(*golistState).runContainsQueries(0xc001a78780, 0xc008ca46c0, {0xc009cfbef0?, 0x10fcb105?, 0x11dc53a0?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:227 +0xe5
golang.org/x/tools/go/packages.goListDriver(0xc000714e08, {0xc009cfbd90, 0x1, 0x10e7bfa01?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:208 +0x872
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 56363
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
2024-05-09 18:39 darwin-amd64-longtest tools@3e9beb69 go@b44600f8 x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49334
serve.go:441: debug server listening at http://localhost:49335
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 40727): see golang/go#54461 for more details

goroutine 51700 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00c8cd8c0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0xb83db78, 0xc0041bef90}, 0xc0026cc6e0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000550c48, {0xb83db78, 0xc0041bef90}, {0xb834240, 0xc0041bf0b0}, {0xb834240, 0xc0041bf0e0})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000550c10?, {0xb83db78, 0xc0041bef90}, {0xb834240?, 0xc0041bf0b0?}, {0xb834240, 0xc0041bf0e0})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc00155b860, {0xc006f7bb70, 0x1, 0x1})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0001d6b68, {0xc006f7b630, 0x1, 0xc000352300?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 51716
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-10 15:53 x_tools-gotip-windows-amd64-race tools@4cfd1809 go@69c74c9e golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	456.202s
2024-05-10 15:53 x_tools-gotip-windows-amd64-race tools@4cfd1809 go@69c74c9e x/tools/gopls/internal/test/integration/codelens.TestUpgradeCodelens_Workspace [ABORT] (log)
=== RUN   TestUpgradeCodelens_Workspace
2024-05-10 15:53 x_tools-gotip-windows-amd64-race tools@4cfd1809 go@69c74c9e golang.org/x/tools/gopls/internal/test/integration/diagnostics (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/diagnostics	454.348s

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-10 18:25 darwin-amd64-longtest tools@487737a1 go@a0a6026b x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49381
serve.go:441: debug server listening at http://localhost:49382
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 41708): see golang/go#54461 for more details

goroutine 55434 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc001c62660)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0xb09fa38, 0xc00318eff0}, 0xc0007e94a0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000614e28, {0xb09fa38, 0xc00318eff0}, {0xb096c80, 0xc00111b5c0}, {0xb095dd8, 0xc000123ae8})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc001385dc0?, {0xb09fa38, 0xc00318eff0}, {0xb096c80?, 0xc00111b5c0?}, {0xb095dd8, 0xc000123ae8})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0xb09fa70, 0xc003196a50}, 0xc0032ca030, {0xb09fbc0, 0xc00c340e40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0xb09fa70, 0xc003196a50}, 0xc0032ca030, {0xb09fbc0, 0xc00c340e40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0xb09fa70, 0xc003196a50}, 0xc006d6abe8, {0xb09fbc0, 0xc00c340e40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:35 +0xc6
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 55398
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/jsonrpc2/handler.go:100 +0x1c5

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-10 18:25 darwin-amd64-longtest tools@487737a1 go@9623a358 x/tools/gopls/internal/test/integration/diagnostics (log)
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
 PPID   PID COMMAND
...
panic: detected hanging go command (pid 42135): see golang/go#54461 for more details

goroutine 57685 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0030f7620)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x2f71488, 0xc00331c0c0}, 0xc000f60f20)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc00004d600, {0x2f71488, 0xc00331c0c0}, {0x2f67c20, 0xc00331c1e0}, {0x2f67c20, 0xc00331c210})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc00004d5c8?, {0x2f71488, 0xc00331c0c0}, {0x2f67c20?, 0xc00331c1e0?}, {0x2f67c20, 0xc00331c210})
...
golang.org/x/tools/gopls/internal/cache.(*Snapshot).ModTidy.func1({0x2f714c0?, 0xc0016f6000?}, {0x2f5d140?, 0xc00170fc20?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/cache/mod_tidy.go:81 +0x3d
golang.org/x/tools/internal/memoize.(*Promise).run.func2.1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:187 +0x9c
runtime/trace.WithRegion({0x2f714c0?, 0xc0016f6000?}, {0xc0029606f0, 0x13}, 0xc001c39780)
	/tmp/buildlet/go/src/runtime/trace/annotation.go:141 +0xd1
golang.org/x/tools/internal/memoize.(*Promise).run.func2()
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:180 +0x11d
created by golang.org/x/tools/internal/memoize.(*Promise).run in goroutine 57684
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:179 +0x1a5
2024-05-10 18:25 darwin-amd64-longtest tools@487737a1 go@9623a358 x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49369
serve.go:441: debug server listening at http://localhost:49370
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 42161): see golang/go#54461 for more details

goroutine 55038 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0006be390)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x7e07c38, 0xc00278e9f0}, 0xc0029062c0)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000ab4c48, {0x7e07c38, 0xc00278e9f0}, {0x7dfe340, 0xc00278eb10}, {0x7dfe340, 0xc00278eb40})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000ab4c10?, {0x7e07c38, 0xc00278e9f0}, {0x7dfe340?, 0xc00278eb10?}, {0x7dfe340, 0xc00278eb40})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc00247a8c0, {0xc000d45780, 0x2, 0x2})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc00017e2a8, {0xc000d44700, 0x2, 0x0?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 55031
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-10 18:25 x_tools-go1.21-darwin-amd64-longtest tools@487737a1 release-branch.go1.21@0fa334d4 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	110.597s
2024-05-10 18:25 x_tools-go1.21-darwin-amd64-longtest tools@487737a1 release-branch.go1.21@0fa334d4 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 95884): see golang/go#54461 for more details

goroutine 15473 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0059c8450)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f81080, 0xc005f2f380}, 0xc000d33340)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc000f208e8, {0x1f81080, 0xc005f2f380}, {0x1f78140?, 0xc005f2f4a0}, {0x1f78140?, 0xc005f2f4d0})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc000f208b0?, {0x1f81080, 0xc005f2f380}, {0x1f78140?, 0xc005f2f4a0?}, {0x1f78140?, 0xc005f2f4d0?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f81080, 0xc005fc1e90}, 0xc0060264b0, {0x4971f310, 0xc005fc1dd0})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f81080, 0xc005fc1e90}, 0xc0060264b0, {0x4971f310?, 0xc005fc1dd0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f81080, 0xc005fc1e90}, 0xc001544c18, {0x4971f310?, 0xc005fc1dd0?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 15471
	/Users/swarming/.swarming/w/ir/x/w/targetrepo3709046587/internal/jsonrpc2/handler.go:100 +0x1ed

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-14 02:42 darwin-amd64-longtest tools@59d97970 go@8623c0ba x/tools/gopls/internal/test/integration/misc (log)
serve.go:441: debug server listening at http://localhost:49355
serve.go:441: debug server listening at http://localhost:49356
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
...
panic: detected hanging go command (pid 40767): see golang/go#54461 for more details

goroutine 50652 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc002a30d20)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:447 +0x3e9
golang.org/x/tools/internal/gocommand.runCmdContext({0x9665e58, 0xc002ebaae0}, 0xc002a60420)
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:380 +0x49a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0032f8c48, {0x9665e58, 0xc002ebaae0}, {0x965c540, 0xc002ebac00}, {0x965c540, 0xc002ebac30})
	/tmp/buildlet/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0032f8c10?, {0x9665e58, 0xc002ebaae0}, {0x965c540?, 0xc002ebac00?}, {0x965c540, 0xc002ebac30})
...
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc0027b8280, {0xc001c2a7e0, 0x2, 0x2})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc0005bc1c8, {0xc001c2a700, 0x2, 0x0?})
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/tmp/buildlet/gopath/src/golang.org/x/tools/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 50649
	/tmp/buildlet/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-14 02:42 x_tools-gotip-openbsd-amd64 tools@59d97970 go@3454ac0d golang.org/x/tools/gopls/internal/test/integration/codelens (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/codelens	215.059s
2024-05-14 02:42 x_tools-gotip-openbsd-amd64 tools@59d97970 go@3454ac0d x/tools/gopls/internal/test/integration/codelens.TestRegenerateCgo/default [ABORT] (log)
=== RUN   TestRegenerateCgo/default
panic: detected hanging go command (pid 18792): see golang/go#54461 for more details

goroutine 3712 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(...)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/internal/gocommand/invoke.go:447
golang.org/x/tools/internal/gocommand.runCmdContext({0x1382028, 0xc007a1d230}, 0xc000f04dc0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/internal/gocommand/invoke.go:380 +0x92a
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0078c4c48, {0x1382028, 0xc007a1d230}, {0x1378640, 0xc007a1d350}, {0x1378640, 0xc007a1d380})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/internal/gocommand/invoke.go:275 +0xfe5
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0078c4c10?, {0x1382028, 0xc007a1d230}, {0x1378640?, 0xc007a1d350?}, {0x1378640, 0xc007a1d380})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/internal/gocommand/invoke.go:184 +0x4f
golang.org/x/tools/internal/gocommand.(*Runner).runConcurrent(0xc0033adf60, {0x1382028, 0xc007a1d230}, {{0x107bb4e, 0x4}, {0xc0036ce1c0, 0xb, 0xe}, {0x1aadb80, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/internal/gocommand/invoke.go:123 +0x15f
golang.org/x/tools/internal/gocommand.(*Runner).RunRaw(0xc0033adf60, {0x13820d0, 0xc007be0000}, {{0x107bb4e, 0x4}, {0xc0036ce1c0, 0xb, 0xe}, {0x1aadb80, 0x0, ...}, ...})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/internal/gocommand/invoke.go:97 +0x370
golang.org/x/tools/go/packages.(*golistState).invokeGo(0xc0036146e0?, {0x107bb4e?, 0x4?}, {0xc0036ce1c0, 0xb, 0xe?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/go/packages/golist.go:878 +0x385
golang.org/x/tools/go/packages.(*golistState).createDriverResponse(0xc0036146e0, {0xc007be4000, 0x2, 0x2})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/go/packages/golist.go:377 +0xa7
golang.org/x/tools/go/packages.goListDriver(0xc007be2008, {0xc0033adea0, 0x2, 0x0?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/go/packages/golist.go:200 +0x79f
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2983648926/go/packages/packages.go:336 +0x5c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4186
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-14 18:28 x_tools-go1.21-darwin-amd64-longtest tools@e8808ed5 release-branch.go1.21@0fa334d4 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	100.332s
2024-05-14 18:28 x_tools-go1.21-darwin-amd64-longtest tools@e8808ed5 release-branch.go1.21@0fa334d4 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 81341): see golang/go#54461 for more details

goroutine 15516 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00731ef30)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f87c40, 0xc0073393e0}, 0xc006d6f4a0)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc006e4c8e8, {0x1f87c40, 0xc0073393e0}, {0x1f7ed00?, 0xc007339500}, {0x1f7ed00?, 0xc007339530})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc006e4c8b0?, {0x1f87c40, 0xc0073393e0}, {0x1f7ed00?, 0xc007339500?}, {0x1f7ed00?, 0xc007339530?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f87c40, 0xc006fefdd0}, 0xc00730a3c0, {0x49447330, 0xc006fefd10})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f87c40, 0xc006fefdd0}, 0xc00730a3c0, {0x49447330?, 0xc006fefd10?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f87c40, 0xc006fefdd0}, 0xc006feca68, {0x49447330?, 0xc006fefd10?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 15514
	/Users/swarming/.swarming/w/ir/x/w/targetrepo1484569848/internal/jsonrpc2/handler.go:100 +0x1ed
2024-05-15 13:08 x_tools-go1.21-darwin-amd64-longtest tools@d40dfd59 release-branch.go1.21@0fa334d4 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	93.169s
2024-05-15 13:08 x_tools-go1.21-darwin-amd64-longtest tools@d40dfd59 release-branch.go1.21@0fa334d4 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 80688): see golang/go#54461 for more details

goroutine 16866 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0077441b0)
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/internal/gocommand/invoke.go:447 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f79fc0, 0xc0077428d0}, 0xc0070a42c0)
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/internal/gocommand/invoke.go:380 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc00067e8e8, {0x1f79fc0, 0xc0077428d0}, {0x1f710a0?, 0xc0077429f0}, {0x1f710a0?, 0xc007742a20})
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/internal/gocommand/invoke.go:275 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc00067e8b0?, {0x1f79fc0, 0xc0077428d0}, {0x1f710a0?, 0xc0077429f0?}, {0x1f710a0?, 0xc007742a20?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f79fc0, 0xc00767ecf0}, 0xc00767f2c0, {0x49811190, 0xc00767ec30})
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f79fc0, 0xc00767ecf0}, 0xc00767f2c0, {0x49811190?, 0xc00767ec30?})
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f79fc0, 0xc00767ecf0}, 0xc007647ae8, {0x49811190?, 0xc00767ec30?})
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 16848
	/Volumes/Work/s/w/ir/x/w/targetrepo2190499662/internal/jsonrpc2/handler.go:100 +0x1ed
2024-05-15 17:13 x_tools-go1.21-darwin-amd64-longtest tools@528484d5 release-branch.go1.21@0fa334d4 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	94.730s
2024-05-15 17:13 x_tools-go1.21-darwin-amd64-longtest tools@528484d5 release-branch.go1.21@0fa334d4 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 41836): see golang/go#54461 for more details

goroutine 16587 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00770ef60)
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/internal/gocommand/invoke.go:451 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f7a6c0, 0xc007720a20}, 0xc007732000)
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/internal/gocommand/invoke.go:384 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc005aea8e8, {0x1f7a6c0, 0xc007720a20}, {0x1f717a0?, 0xc007720b40}, {0x1f717a0?, 0xc007720b70})
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/internal/gocommand/invoke.go:279 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc005aea8b0?, {0x1f7a6c0, 0xc007720a20}, {0x1f717a0?, 0xc007720b40?}, {0x1f717a0?, 0xc007720b70?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f7a6c0, 0xc0076358c0}, 0xc007635e90, {0x4971c378, 0xc007635800})
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f7a6c0, 0xc0076358c0}, 0xc007635e90, {0x4971c378?, 0xc007635800?})
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f7a6c0, 0xc0076358c0}, 0xc00761f488, {0x4971c378?, 0xc007635800?})
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 16594
	/Volumes/Work/s/w/ir/x/w/targetrepo4058938965/internal/jsonrpc2/handler.go:100 +0x1ed

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-16 21:21 x_tools-go1.21-windows-amd64-race tools@1f300c90 release-branch.go1.21@6f521957 x/tools/gopls/internal/test/integration/codelens.TestUpgradeCodelens_Workspace/Upgrade_transitive_dependencies/default (log)
=== RUN   TestUpgradeCodelens_Workspace/Upgrade_transitive_dependencies/default
--- FAIL: TestUpgradeCodelens_Workspace/Upgrade_transitive_dependencies/default (976.30s)

watchflakes

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos != "netbsd" && (pkg ~ `^golang.org/x/tools/gopls` || (repo == "tools" && pkg == "")) && 
        (`detected hanging go command` || log ~ `detected hanging go command`)
2024-05-17 20:25 x_tools-go1.21-darwin-amd64-longtest tools@8cf8c6f7 release-branch.go1.21@6f521957 golang.org/x/tools/gopls/internal/test/integration/workspace (log)
FAIL	golang.org/x/tools/gopls/internal/test/integration/workspace	101.861s
2024-05-17 20:25 x_tools-go1.21-darwin-amd64-longtest tools@8cf8c6f7 release-branch.go1.21@6f521957 x/tools/gopls/internal/test/integration/workspace.TestTypeCheckingFutureVersions/default [ABORT] (log)
=== RUN   TestTypeCheckingFutureVersions/default
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
...
panic: detected hanging go command (pid 33060): see golang/go#54461 for more details

goroutine 15303 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc00730e300)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/internal/gocommand/invoke.go:451 +0x3d9
golang.org/x/tools/internal/gocommand.runCmdContext({0x1f7b840, 0xc007307ef0}, 0xc006973e40)
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/internal/gocommand/invoke.go:384 +0x4a5
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0011388e8, {0x1f7b840, 0xc007307ef0}, {0x1f72900?, 0xc007316030}, {0x1f72900?, 0xc007316060})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/internal/gocommand/invoke.go:279 +0xfaf
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0011388b0?, {0x1f7b840, 0xc007307ef0}, {0x1f72900?, 0xc007316030?}, {0x1f72900?, 0xc007316060?})
...
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1f7b840, 0xc007284720}, 0xc007284cf0, {0x495ecc10, 0xc007284660})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/gopls/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1f7b840, 0xc007284720}, 0xc007284cf0, {0x495ecc10?, 0xc007284660?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/gopls/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1f7b840, 0xc007284720}, 0xc0071ed908, {0x495ecc10?, 0xc007284660?})
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/internal/jsonrpc2/handler.go:35 +0xe5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 15315
	/Users/swarming/.swarming/w/ir/x/w/targetrepo2789432999/internal/jsonrpc2/handler.go:100 +0x1ed

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
Status: Active
Development

No branches or pull requests

5 participants