dap: race conditions in tests
The output of go test -race ./service/dap
Details
DAP server listening at: [::]:41907
2025-08-30T11:09:19-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
DAP server listening at: [::]:41247
2025-08-30T11:09:19-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
DAP server listening at: [::]:38739
2025-08-30T11:09:19-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38739
DAP server listening at: [::]:39559
2025-08-30T11:09:20-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39559
DAP server listening at: [::]:43137
2025-08-30T11:09:20-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43137
DAP server listening at: [::]:37531
2025-08-30T11:09:20-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37531
DAP server listening at: [::]:35993
2025-08-30T11:09:21-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35993
DAP server listening at: [::]:35647
2025-08-30T11:09:22-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35647
DAP server listening at: [::]:40779
2025-08-30T11:09:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40779
4
Connecting to server at: [::]:46149
Connecting to server at: [::]:46191
Connecting to server at: [::]:37613
Connecting to server at: [::]:36693
4
DAP server listening at: [::]:38061
2025-08-30T11:09:27-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38061
DAP server listening at: [::]:42873
2025-08-30T11:09:28-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42873
4
DAP server listening at: [::]:44727
2025-08-30T11:09:29-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44727
--- FAIL: TestAttachStopOnEntry (0.79s)
server_test.go:121: server stop triggered internally
server_test.go:630: got &dap.StoppedEvent{Event:dap.Event{ProtocolMessage:dap.ProtocolMessage{Seq:0, Type:"event"}, Event:"stopped"}, Body:dap.StoppedEventBody{Reason:"pause", Description:"", ThreadId:1, PreserveFocusHint:false, Text:"", AllThreadsStopped:true, HitBreakpointIds:[]int(nil)}}, want *dap.TerminatedEvent
DAP server listening at: [::]:35825
2025-08-30T11:09:30-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35825
4
DAP server listening at: [::]:36213
2025-08-30T11:09:30-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36213
4
DAP server listening at: [::]:34297
2025-08-30T11:09:31-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34297
DAP server listening at: [::]:35885
2025-08-30T11:09:32-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35885
4
DAP server listening at: [::]:33583
2025-08-30T11:09:33-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33583
4
DAP server listening at: [::]:35853
2025-08-30T11:09:34-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35853
DAP server listening at: [::]:41543
2025-08-30T11:09:35-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41543
DAP server listening at: [::]:39129
2025-08-30T11:09:36-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39129
DAP server listening at: [::]:42057
2025-08-30T11:09:37-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42057
DAP server listening at: [::]:44117
2025-08-30T11:09:37-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44117
DAP server listening at: [::]:36611
2025-08-30T11:09:38-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36611
DAP server listening at: [::]:34891
2025-08-30T11:09:39-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34891
DAP server listening at: [::]:43719
2025-08-30T11:09:40-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43719
DAP server listening at: [::]:36023
2025-08-30T11:09:41-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36023
DAP server listening at: [::]:46261
2025-08-30T11:09:42-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:46261
DAP server listening at: [::]:35441
2025-08-30T11:09:43-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35441
DAP server listening at: [::]:36781
2025-08-30T11:09:43-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36781
bur
foofoofoofoofoofoo 6 7.23 [1 2] [1 2 3 4 5] {8 word} &{5 strum} {10 feh} ofo [{1 a} {2 b} {3 c}] [{4 d} {5 e}] [0xc00000e1b0 0xc00000e1c8 0xc00000e1e0] true false bazburzum -1 1 255 65535 4294967295 18446744073709551615 5 1.2 (1+2i) (2+3i) [1 2] {10 lorem} 0x4b1c20 {0 0xc0000123b0} [[123]] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 10 map[1:42 2:43]
DAP server listening at: [::]:39279
2025-08-30T11:09:45-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39279
0
1
2
3
4
5
6
7
8
9
DAP server listening at: [::]:45579
2025-08-30T11:09:46-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45579
bur
foofoofoofoofoofoo 6 7.23 [1 2] [1 2 3 4 5] {8 word} &{5 strum} {10 feh} ofo [{1 a} {2 b} {3 c}] [{4 d} {5 e}] [0xc00000e1b0 0xc00000e1c8 0xc00000e1e0] true false bazburzum -1 1 255 65535 4294967295 18446744073709551615 5 1.2 (1+2i) (2+3i) [1 2] {10 lorem} 0x491c80 {0 0xc000012180} [[123]] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 10 map[1:42 2:43]
DAP server listening at: [::]:33917
2025-08-30T11:09:47-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33917
0
1
2
3
4
5
6
7
8
9
DAP server listening at: [::]:43097
2025-08-30T11:09:48-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43097
DAP server listening at: [::]:33747
2025-08-30T11:09:49-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33747
0
1
2
3
4
5
6
7
8
9
DAP server listening at: [::]:33529
2025-08-30T11:09:50-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33529
2 3 3 33 10 0 2
DAP server listening at: [::]:34423
2025-08-30T11:09:51-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34423
2 3 3 33 10 0 2
DAP server listening at: [::]:41245
2025-08-30T11:09:52-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41245
1
0
DAP server listening at: [::]:39147
2025-08-30T11:09:53-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39147
4
DAP server listening at: [::]:38605
2025-08-30T11:09:53-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38605
past main
DAP server listening at: [::]:35143
2025-08-30T11:09:54-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35143
past main
DAP server listening at: [::]:41309
2025-08-30T11:09:55-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41309
past main
DAP server listening at: [::]:45073
2025-08-30T11:09:56-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45073
SomeTypeObject OtherTypeObject 10
SomeFunction called
DAP server listening at: [::]:39323
2025-08-30T11:09:57-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39323
SomeTypeObject OtherTypeObject 10
SomeFunction called
DAP server listening at: [::]:41181
2025-08-30T11:09:58-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41181
got: 0
got: 1
got: 2
got: 3
got: 4
callme2
DAP server listening at: [::]:45839
2025-08-30T11:09:59-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45839
DAP server listening at: [::]:43055
2025-08-30T11:10:00-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43055
got: 0
got: 1
got: 2
got: 3
DAP server listening at: [::]:34985
2025-08-30T11:10:01-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34985
WARNING: DATA RACE Write at 0x00c0002f7071 by goroutine 833: github.com/go-delve/delve/pkg/proc/native.(*nativeProcess).postExit() /home/deparker/Code/delve/pkg/proc/native/proc.go:421 +0x34 github.com/go-delve/delve/pkg/proc/native.trapWaitInternal() /home/deparker/Code/delve/pkg/proc/native/proc_linux.go:435 +0x33c github.com/go-delve/delve/pkg/proc/native.trapWait() /home/deparker/Code/delve/pkg/proc/native/proc_linux.go:387 +0x2c8 github.com/go-delve/delve/pkg/proc/native.(*processGroup).ContinueOnce() /home/deparker/Code/delve/pkg/proc/native/proc.go:294 +0x2b2 github.com/go-delve/delve/pkg/proc.(*TargetGroup).Continue() /home/deparker/Code/delve/pkg/proc/target_exec.go:95 +0x466 github.com/go-delve/delve/service/debugger.(*Debugger).Command() /home/deparker/Code/delve/service/debugger/debugger.go:1111 +0x2ecb github.com/go-delve/delve/service/dap.(*Session).resumeOnce() /home/deparker/Code/delve/service/dap/server.go:3785 +0x3a5 github.com/go-delve/delve/service/dap.(*Session).resumeOnceAndCheckStop() /home/deparker/Code/delve/service/dap/server.go:3933 +0x64 github.com/go-delve/delve/service/dap.init.func1() /home/deparker/Code/delve/service/dap/server.go:3929 +0x44 github.com/go-delve/delve/service/dap.(*Session).runUntilStop() /home/deparker/Code/delve/service/dap/server.go:3921 +0x172 github.com/go-delve/delve/service/dap.(*Session).runUntilStopAndNotify() /home/deparker/Code/delve/service/dap/server.go:3796 +0x6e github.com/go-delve/delve/service/dap.(*Session).onContinueRequest() /home/deparker/Code/delve/service/dap/server.go:1738 +0x23b github.com/go-delve/delve/service/dap.(*Session).handleRequest.func2() /home/deparker/Code/delve/service/dap/server.go:717 +0xc4
Previous read at 0x00c0002f7071 by goroutine 804: github.com/go-delve/delve/pkg/proc/native.(*nativeProcess).Valid() /home/deparker/Code/delve/pkg/proc/native/proc.go:143 +0x4a github.com/go-delve/delve/pkg/proc.(*Target).Valid() /home/deparker/Code/delve/pkg/proc/target.go:240 +0x4a github.com/go-delve/delve/pkg/proc.(*TargetGroup).Valid() /home/deparker/Code/delve/pkg/proc/target_group.go:161 +0xad github.com/go-delve/delve/service/debugger.(*Debugger).Command() /home/deparker/Code/delve/service/debugger/debugger.go:1073 +0x25d github.com/go-delve/delve/service/dap.(*Session).halt() /home/deparker/Code/delve/service/dap/server.go:1405 +0x274 github.com/go-delve/delve/service/dap.(*Session).stopDebugSession() /home/deparker/Code/delve/service/dap/server.go:1352 +0x154 github.com/go-delve/delve/service/dap.(*Session).onDisconnectRequest() /home/deparker/Code/delve/service/dap/server.go:1317 +0x989 github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:624 +0x51d github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 833 (running) created at: github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:715 +0x14fc github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 804 (running) created at: github.com/go-delve/delve/service/dap.(*Server).Run() /home/deparker/Code/delve/service/dap/server.go:475 +0x144 github.com/go-delve/delve/service/dap.startDAPServer() /home/deparker/Code/delve/service/dap/server_test.go:105 +0x334 github.com/go-delve/delve/service/dap.startDAPServerWithClient() /home/deparker/Code/delve/service/dap/server_test.go:81 +0x3d github.com/go-delve/delve/service/dap.runTestBuildFlags() /home/deparker/Code/delve/service/dap/server_test.go:73 +0x12f github.com/go-delve/delve/service/dap.runTest() /home/deparker/Code/delve/service/dap/server_test.go:64 +0xfe github.com/go-delve/delve/service/dap.TestConcurrentBreakpointsLogPoints.func1() /home/deparker/Code/delve/service/dap/server_test.go:3592 +0x37 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
DAP server listening at: [::]:33089
2025-08-30T11:10:02-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33089
--- FAIL: TestConcurrentBreakpointsLogPoints (1.48s)
--- FAIL: TestConcurrentBreakpointsLogPoints/source_breakpoints (0.69s)
server_test.go:121: server stop triggered internally
testing.go:1490: race detected during execution of test
DAP server listening at: [::]:39085
2025-08-30T11:10:02-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39085
hi
hi
DAP server listening at: [::]:40987
2025-08-30T11:10:06-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40987
hi
hi
hi
DAP server listening at: [::]:45731
2025-08-30T11:10:10-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45731
DAP server listening at: [::]:33499
2025-08-30T11:10:11-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33499
past main
DAP server listening at: [::]:37793
2025-08-30T11:10:12-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37793
past main
DAP server listening at: [::]:40547
2025-08-30T11:10:13-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40547
/tmp
DAP server listening at: [::]:46563
2025-08-30T11:10:14-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:46563
bur
foofoofoofoofoofoo 6 7.23 [1 2] [1 2 3 4 5] {8 word} &{5 strum} {10 feh} ofo [{1 a} {2 b} {3 c}] [{4 d} {5 e}] [0xc00000e1b0 0xc00000e1c8 0xc00000e1e0] true false bazburzum -1 1 255 65535 4294967295 18446744073709551615 5 1.2 (1+2i) (2+3i) [1 2] {10 lorem} 0x4b1c20 {0 0xc0000123b0} [[123]] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 10 map[1:42 2:43]
DAP server listening at: [::]:37671
2025-08-30T11:10:15-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37671
DAP server listening at: [::]:38031
2025-08-30T11:10:16-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38031
DAP server listening at: [::]:43955
2025-08-30T11:10:17-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43955
DAP server listening at: [::]:39175
2025-08-30T11:10:18-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39175
about to breakcall0: first: 1 second: 2
first: 1 second: 2
about to panic
call2: first: 1 second: 2
first: 1 second: 2
first: 1 second: 1
about to exit
DAP server listening at: [::]:43615
2025-08-30T11:10:19-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43615
12 20
DAP server listening at: [::]:36111
2025-08-30T11:10:20-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36111
2 3 3 33 10 0 2
DAP server listening at: [::]:36435
2025-08-30T11:10:21-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36435
DAP server listening at: [::]:44955
2025-08-30T11:10:22-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44955
hi 4
hi 4
hi 1
hi 1
hi 5
hi 5
hi 0
hi 0
hi 6
hi 6
hi 7
hi 7
hi 9
hi 9
hi 3
hi 3
hi 8
hi 8
hi 2
hi 2
DAP server listening at: [::]:45657
2025-08-30T11:10:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45657
hello 66 132
hello 99 198
hello 11 22
goodbye 11 22
hello 12 24
hello 41 82
goodbye 41 82
hello 42 84
hello 48 96
goodbye 48 96
hello 50 100
goodbye 50 100
hello 51 102
goodbye 12 24
hello 73 146
hello 26 52
hello 0 0
hello 77 154
hello 45 90
goodbye 45 90
hello 91 182
hello 43 86
goodbye 91 182
goodbye 43 86
hello 83 166
hello 94 188
hello 87 174
goodbye 51 102
hello 78 156
hello 75 150
goodbye 78 156
hello 97 194
hello 89 178
goodbye 73 146
hello 79 158
goodbye 26 52
goodbye 42 84
hello 25 50
goodbye 25 50
hello 84 168
goodbye 84 168
hello 23 46
goodbye 23 46
hello 72 144
goodbye 72 144
goodbye 66 132
hello 68 136
goodbye 68 136
hello 4 8
goodbye 4 8
hello 5 10
goodbye 5 10
hello 16 32
goodbye 16 32
goodbye 75 150
hello 46 92
hello 34 68
hello 49 98
goodbye 49 98
hello 65 130
goodbye 89 178
hello 82 164
hello 98 196
goodbye 0 0
goodbye 98 196
hello 18 36
hello 96 192
goodbye 18 36
goodbye 96 192
hello 37 74
goodbye 37 74
hello 38 76
goodbye 77 154
hello 39 78
goodbye 39 78
hello 80 160
goodbye 80 160
hello 53 106
hello 1 2
hello 19 38
goodbye 1 2
hello 52 104
hello 14 28
goodbye 14 28
hello 20 40
goodbye 20 40
hello 36 72
goodbye 94 188
hello 88 176
hello 21 42
goodbye 21 42
hello 62 124
hello 86 172
hello 24 48
hello 58 116
goodbye 58 116
hello 47 94
hello 35 70
goodbye 35 70
goodbye 34 68
hello 33 66
hello 15 30
goodbye 97 194
hello 9 18
goodbye 9 18
hello 93 186
goodbye 93 186
hello 30 60
goodbye 79 158
hello 7 14
hello 27 54
goodbye 27 54
hello 59 118
goodbye 59 118
hello 54 108
goodbye 54 108
hello 13 26
goodbye 13 26
goodbye 87 174
hello 76 152
goodbye 76 152
hello 71 142
goodbye 99 198
hello 81 162
goodbye 36 72
hello 56 112
goodbye 83 166
hello 61 122
goodbye 61 122
hello 63 126
goodbye 46 92
hello 31 62
goodbye 31 62
hello 32 64
goodbye 32 64
hello 74 148
goodbye 74 148
goodbye 65 130
hello 10 20
goodbye 10 20
hello 28 56
goodbye 28 56
hello 29 58
goodbye 29 58
hello 3 6
goodbye 3 6
goodbye 30 60
goodbye 38 76
goodbye 7 14
goodbye 33 66
goodbye 15 30
hello 8 16
goodbye 8 16
goodbye 82 164
hello 44 88
goodbye 44 88
hello 6 12
goodbye 6 12
hello 69 138
goodbye 69 138
hello 60 120
goodbye 60 120
goodbye 81 162
goodbye 88 176
goodbye 56 112
hello 85 170
goodbye 85 170
goodbye 62 124
goodbye 63 126
hello 92 184
goodbye 92 184
goodbye 24 48
hello 22 44
goodbye 22 44
goodbye 47 94
hello 90 180
goodbye 90 180
goodbye 86 172
hello 2 4
goodbye 2 4
hello 95 190
hello 64 128
goodbye 53 106
goodbye 19 38
hello 57 114
goodbye 57 114
hello 70 140
goodbye 70 140
goodbye 95 190
hello 17 34
goodbye 17 34
goodbye 64 128
hello 40 80
goodbye 40 80
goodbye 52 104
goodbye 71 142
hello 67 134
goodbye 67 134
hello 55 110
goodbye 55 110
100
DAP server listening at: [::]:34755
2025-08-30T11:10:24-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34755
goroutine: 3
goroutine: 5
goroutine: 4
goroutine: 2
goroutine: 0
DAP server listening at: [::]:43703
2025-08-30T11:10:25-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43703
DAP server listening at: [::]:40269
2025-08-30T11:10:26-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40269
DAP server listening at: [::]:34207
2025-08-30T11:10:27-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34207
DAP server listening at: [::]:41837
2025-08-30T11:10:28-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41837
DAP server listening at: [::]:33587
Connecting to server at: [::]:33587
4
DAP server listening at: [::]:34769
2025-08-30T11:10:29-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:34769
4
DAP server listening at: [::]:43883
2025-08-30T11:10:30-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43883
4
DAP server listening at: [::]:46739
2025-08-30T11:10:31-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:46739
4
DAP server listening at: [::]:37989
2025-08-30T11:10:32-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37989
received args []string{"/home/deparker/Code/delve/service/dap/__somebin"}
DAP server listening at: [::]:37071
2025-08-30T11:10:33-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37071
demo &{ 0 [] 0 false}
DAP server listening at: [::]:43001
2025-08-30T11:10:34-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43001
4
DAP server listening at: [::]:43323
2025-08-30T11:10:34-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43323
DAP server listening at: [::]:40173
2025-08-30T11:10:35-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40173
DAP server listening at: [::]:36933
2025-08-30T11:10:35-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36933
hello world!
DAP server listening at: [::]:42527
2025-08-30T11:10:36-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42527
4
DAP server listening at: [::]:42619
2025-08-30T11:10:36-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42619
PASS
DAP server listening at: [::]:37575
2025-08-30T11:10:38-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37575
PASS
DAP server listening at: [::]:36723
2025-08-30T11:10:39-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36723
PASS
DAP server listening at: [::]:38489
2025-08-30T11:10:40-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38489
PASS
DAP server listening at: [::]:44173
2025-08-30T11:10:41-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44173
PASS
DAP server listening at: [::]:40675
2025-08-30T11:10:43-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40675
PASS
DAP server listening at: [::]:33949
2025-08-30T11:10:44-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33949
PASS
DAP server listening at: [::]:36515
2025-08-30T11:10:45-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36515
received args []string{"/tmp/testargs.2166f2dd", "test", "pass flag"}
DAP server listening at: [::]:46535
2025-08-30T11:10:46-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:46535
Hello World!
DAP server listening at: [::]:40165
2025-08-30T11:10:47-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40165
Hello World!
DAP server listening at: [::]:36997
2025-08-30T11:10:48-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36997
DAP server listening at: [::]:41479
2025-08-30T11:10:49-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41479
DAP server listening at: [::]:43101
2025-08-30T11:10:50-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43101
DAP server listening at: [::]:38895
2025-08-30T11:10:51-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38895
DAP server listening at: [::]:39841
2025-08-30T11:10:52-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39841
DAP server listening at: [::]:39077
2025-08-30T11:10:53-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39077
DAP server listening at: [::]:41291
2025-08-30T11:10:54-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41291
past main
DAP server listening at: [::]:46327
2025-08-30T11:10:54-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:46327
DAP server listening at: [::]:45255
2025-08-30T11:10:55-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45255
past main
1000000
2000000
3000000
4000000
5000000
6000000
7000000
8000000
9000000
10000000
11000000
12000000
13000000
14000000
15000000
16000000
17000000
18000000
19000000
20000000
21000000
22000000
23000000
24000000
25000000
26000000
27000000
28000000
29000000
30000000
31000000
32000000
33000000
34000000
35000000
36000000
37000000
38000000
39000000
40000000
41000000
42000000
43000000
44000000
45000000
46000000
47000000
48000000
49000000
50000000
51000000
52000000
53000000
54000000
55000000
56000000
57000000
58000000
59000000
60000000
61000000
62000000
63000000
64000000
65000000
66000000
67000000
68000000
69000000
70000000
71000000
72000000
73000000
74000000
75000000
76000000
77000000
78000000
79000000
80000000
81000000
82000000
83000000
84000000
85000000
86000000
87000000
88000000
89000000
90000000
91000000
92000000
93000000
94000000
95000000
96000000
97000000
98000000
99000000
100000000
101000000
102000000
103000000
104000000
105000000
106000000
107000000
108000000
109000000
110000000
111000000
112000000
113000000
114000000
115000000
116000000
117000000
118000000
119000000
120000000
121000000
122000000
123000000
124000000
125000000
126000000
127000000
128000000
129000000
130000000
131000000
132000000
133000000
134000000
135000000
136000000
137000000
138000000
139000000
140000000
141000000
142000000
143000000
144000000
145000000
146000000
147000000
148000000
149000000
150000000
151000000
152000000
153000000
154000000
155000000
156000000
157000000
158000000
159000000
160000000
161000000
162000000
163000000
164000000
165000000
166000000
167000000
168000000
169000000
170000000
171000000
172000000
173000000
174000000
175000000
176000000
177000000
178000000
179000000
180000000
181000000
182000000
183000000
184000000
185000000
186000000
187000000
188000000
189000000
190000000
191000000
192000000
193000000
194000000
195000000
196000000
197000000
198000000
199000000
200000000
201000000
202000000
203000000
204000000
205000000
206000000
207000000
208000000
209000000
210000000
211000000
212000000
213000000
214000000
215000000
216000000
217000000
218000000
219000000
220000000
221000000
222000000
223000000
224000000
225000000
226000000
227000000
228000000
229000000
230000000
231000000
232000000
233000000
234000000
235000000
236000000
237000000
238000000
239000000
240000000
241000000
242000000
243000000
244000000
245000000
246000000
247000000
248000000
249000000
250000000
251000000
252000000
253000000
254000000
255000000
256000000
257000000
258000000
259000000
260000000
261000000
262000000
263000000
264000000
265000000
266000000
267000000
268000000
269000000
270000000
271000000
272000000
273000000
274000000
275000000
276000000
277000000
278000000
279000000
280000000
281000000
282000000
283000000
284000000
285000000
286000000
287000000
288000000
289000000
290000000
291000000
292000000
293000000
294000000
295000000
296000000
297000000
298000000
299000000
300000000
301000000
302000000
303000000
304000000
305000000
306000000
307000000
308000000
309000000
310000000
311000000
312000000
313000000
314000000
315000000
316000000
317000000
318000000
319000000
320000000
321000000
322000000
323000000
324000000
325000000
326000000
327000000
328000000
329000000
330000000
331000000
332000000
333000000
334000000
335000000
336000000
337000000
338000000
339000000
340000000
341000000
342000000
343000000
344000000
345000000
346000000
347000000
348000000
349000000
350000000
351000000
352000000
353000000
354000000
355000000
356000000
357000000
358000000
359000000
360000000
361000000
362000000
363000000
364000000
365000000
366000000
367000000
368000000
369000000
370000000
371000000
372000000
373000000
374000000
375000000
376000000
377000000
378000000
379000000
380000000
381000000
382000000
383000000
384000000
385000000
386000000
387000000
388000000
389000000
390000000
391000000
392000000
393000000
394000000
395000000
396000000
397000000
398000000
399000000
400000000
401000000
402000000
403000000
404000000
405000000
406000000
407000000
408000000
409000000
410000000
411000000
412000000
413000000
414000000
415000000
416000000
417000000
418000000
419000000
420000000
421000000
422000000
423000000
424000000
425000000
426000000
427000000
428000000
429000000
430000000
431000000
432000000
433000000
434000000
435000000
436000000
437000000
438000000
439000000
440000000
441000000
442000000
443000000
444000000
445000000
446000000
447000000
448000000
449000000
450000000
451000000
452000000
453000000
454000000
455000000
456000000
457000000
458000000
459000000
460000000
461000000
462000000
463000000
464000000
465000000
466000000
467000000
468000000
469000000
470000000
471000000
472000000
473000000
474000000
475000000
476000000
477000000
478000000
479000000
480000000
481000000
482000000
483000000
484000000
485000000
486000000
487000000
488000000
489000000
490000000
491000000
492000000
493000000
494000000
495000000
496000000
497000000
498000000
499000000
500000000
501000000
502000000
503000000
504000000
505000000
506000000
507000000
508000000
509000000
510000000
511000000
512000000
513000000
514000000
515000000
516000000
517000000
518000000
519000000
520000000
521000000
522000000
523000000
524000000
525000000
526000000
527000000
528000000
529000000
530000000
531000000
532000000
533000000
534000000
535000000
536000000
537000000
538000000
539000000
540000000
541000000
542000000
543000000
544000000
545000000
546000000
547000000
548000000
549000000
550000000
551000000
552000000
553000000
554000000
555000000
556000000
557000000
558000000
559000000
560000000
561000000
562000000
563000000
564000000
565000000
566000000
567000000
568000000
569000000
570000000
571000000
572000000
573000000
574000000
575000000
576000000
577000000
578000000
579000000
580000000
581000000
582000000
583000000
584000000
585000000
586000000
587000000
588000000
589000000
590000000
591000000
592000000
593000000
594000000
595000000
596000000
597000000
598000000
599000000
600000000
601000000
602000000
603000000
DAP server listening at: [::]:37383
2025-08-30T11:10:57-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37383
DAP server listening at: [::]:33209
2025-08-30T11:10:58-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33209
DAP server listening at: [::]:43453
2025-08-30T11:11:00-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:43453
DAP server listening at: [::]:36981
2025-08-30T11:11:02-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36981
DAP server listening at: [::]:44669
2025-08-30T11:11:02-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44669
DAP server listening at: [::]:44941
2025-08-30T11:11:03-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44941
DAP server listening at: [::]:45473
2025-08-30T11:11:04-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45473
DAP server listening at: [::]:40945
2025-08-30T11:11:05-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40945
about to panic
about to breakDAP server listening at: [::]:45001
2025-08-30T11:11:07-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45001
DAP server listening at: [::]:40975
2025-08-30T11:11:07-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40975
could not remove /home/deparker/Code/delve/service/dap/__debug_bin1231354225: remove /home/deparker/Code/delve/service/dap/__debug_bin1231354225: no such file or directory
could not remove /home/deparker/Code/delve/service/dap/__debug_bin1231354225: remove /home/deparker/Code/delve/service/dap/__debug_bin1231354225: no such file or directory
could not remove /home/deparker/Code/delve/service/dap/__debug_bin2795303041: remove /home/deparker/Code/delve/service/dap/__debug_bin2795303041: no such file or directory
could not remove /home/deparker/Code/delve/service/dap/__debug_bin2795303041: remove /home/deparker/Code/delve/service/dap/__debug_bin2795303041: no such file or directory
DAP server listening at: [::]:45801
2025-08-30T11:11:07-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:45801
DAP server listening at: [::]:39023
2025-08-30T11:11:08-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:39023
DAP server listening at: [::]:44481
2025-08-30T11:11:10-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44481
DAP server listening at: [::]:40237
2025-08-30T11:11:11-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40237
DAP server listening at: [::]:39529
2025-08-30T11:11:14-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
past main
1000000
2000000
3000000
4000000
5000000
6000000
7000000
8000000
9000000
10000000
11000000
12000000
13000000
14000000
15000000
16000000
17000000
18000000
19000000
20000000
21000000
22000000
23000000
24000000
25000000
26000000
27000000
28000000
29000000
30000000
31000000
32000000
33000000
34000000
35000000
36000000
37000000
38000000
39000000
40000000
41000000
42000000
43000000
44000000
45000000
46000000
47000000
48000000
49000000
50000000
51000000
52000000
53000000
54000000
55000000
56000000
57000000
58000000
59000000
Connecting to server at: [::]:39529
60000000
61000000
62000000
63000000
64000000
65000000
66000000
67000000
68000000
69000000
70000000
71000000
72000000
73000000
74000000
75000000
76000000
77000000
78000000
79000000
80000000
81000000
82000000
83000000
84000000
85000000
86000000
87000000
88000000
89000000
90000000
91000000
92000000
93000000
94000000
95000000
96000000
97000000
98000000
99000000
100000000
101000000
102000000
103000000
104000000
105000000
106000000
107000000
108000000
109000000
110000000
111000000
112000000
113000000
114000000
115000000
116000000
117000000
118000000
119000000
120000000
121000000
DAP server listening at: [::]:37499
2025-08-30T11:11:15-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
past main
1000000
2000000
3000000
4000000
5000000
6000000
7000000
8000000
9000000
10000000
11000000
12000000
13000000
14000000
15000000
16000000
17000000
18000000
19000000
20000000
21000000
22000000
23000000
24000000
25000000
26000000
27000000
28000000
29000000
30000000
31000000
32000000
33000000
34000000
35000000
36000000
37000000
38000000
39000000
40000000
41000000
42000000
43000000
44000000
45000000
46000000
47000000
48000000
49000000
50000000
51000000
52000000
53000000
54000000
55000000
56000000
57000000
58000000
59000000
60000000
Connecting to server at: [::]:37499
61000000
62000000
63000000
64000000
65000000
66000000
67000000
68000000
69000000
70000000
71000000
72000000
73000000
74000000
75000000
76000000
77000000
78000000
79000000
80000000
81000000
82000000
83000000
84000000
85000000
86000000
87000000
88000000
89000000
90000000
91000000
92000000
93000000
94000000
95000000
96000000
97000000
98000000
99000000
100000000
101000000
102000000
103000000
104000000
105000000
106000000
107000000
108000000
109000000
110000000
111000000
112000000
113000000
114000000
115000000
116000000
117000000
118000000
119000000
120000000
121000000
122000000
DAP server listening at: [::]:35907
2025-08-30T11:11:15-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:35907
DAP server listening at: [::]:40593
2025-08-30T11:11:17-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:40593
DAP server listening at: [::]:42725
2025-08-30T11:11:19-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42725
DAP server listening at: [::]:41673
2025-08-30T11:11:21-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:41673
DAP server listening at: [::]:39559
2025-08-30T11:11:22-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
past main
1000000
2000000
3000000
4000000
5000000
6000000
7000000
8000000
9000000
10000000
11000000
12000000
13000000
14000000
15000000
16000000
17000000
18000000
19000000
20000000
21000000
22000000
23000000
24000000
25000000
26000000
27000000
28000000
29000000
30000000
31000000
32000000
33000000
34000000
35000000
36000000
37000000
38000000
39000000
40000000
41000000
42000000
43000000
44000000
45000000
46000000
47000000
48000000
49000000
50000000
51000000
52000000
53000000
54000000
55000000
56000000
57000000
58000000
59000000
60000000
Connecting to server at: [::]:39559
61000000
62000000
63000000
64000000
65000000
66000000
67000000
68000000
69000000
70000000
71000000
72000000
73000000
74000000
75000000
76000000
77000000
78000000
79000000
80000000
81000000
82000000
83000000
84000000
85000000
86000000
87000000
88000000
89000000
90000000
91000000
92000000
93000000
94000000
95000000
96000000
97000000
98000000
99000000
100000000
101000000
102000000
103000000
104000000
105000000
106000000
107000000
108000000
109000000
110000000
111000000
112000000
113000000
114000000
115000000
116000000
117000000
118000000
119000000
120000000
121000000
122000000
123000000
DAP server listening at: [::]:42689
2025-08-30T11:11:22-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42689
DAP server listening at: [::]:33817
2025-08-30T11:11:22-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:33817
DAP server listening at: [::]:38589
2025-08-30T11:11:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38589
DAP server listening at: [::]:36877
2025-08-30T11:11:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:36877
DAP server listening at: [::]:44507
2025-08-30T11:11:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:44507
DAP server listening at: [::]:37883
2025-08-30T11:11:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37883
DAP server listening at: [::]:42039
2025-08-30T11:11:23-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:42039
DAP server listening at: [::]:37145
2025-08-30T11:11:24-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37145
DAP server listening at: [::]:37595
2025-08-30T11:11:26-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:37595
DAP server listening at: [::]:38601
2025-08-30T11:11:28-07:00 warn layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
Connecting to server at: [::]:38601
WARNING: DATA RACE Write at 0x00c001bba0b8 by goroutine 2018: github.com/go-delve/delve/service/dap.TestBreakpointAfterDisconnect() /home/deparker/Code/delve/service/dap/server_test.go:7882 +0x785 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
Previous read at 0x00c001bba0b8 by goroutine 2020: github.com/go-delve/delve/service/dap.(*Session).onDisconnectRequest() /home/deparker/Code/delve/service/dap/server.go:1296 +0x7bb github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:624 +0x51d github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 2018 (running) created at: testing.(*T).Run() /usr/lib/golang/src/testing/testing.go:1851 +0x8f2 testing.runTests.func1() /usr/lib/golang/src/testing/testing.go:2279 +0x85 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.runTests() /usr/lib/golang/src/testing/testing.go:2277 +0x96c testing.(*M).Run() /usr/lib/golang/src/testing/testing.go:2142 +0xeea github.com/go-delve/delve/pkg/proc/test.RunTestsWithFixtures() /home/deparker/Code/delve/pkg/proc/test/support.go:230 +0x6b github.com/go-delve/delve/service/dap.TestMain() /home/deparker/Code/delve/service/dap/server_test.go:59 +0x2c7 main.main() _testmain.go:245 +0x171
Goroutine 2020 (finished) created at: github.com/go-delve/delve/service/dap.(*Server).Run() /home/deparker/Code/delve/service/dap/server.go:475 +0x144 github.com/go-delve/delve/service/dap.startDAPServer() /home/deparker/Code/delve/service/dap/server_test.go:105 +0x334 github.com/go-delve/delve/service/dap.TestBreakpointAfterDisconnect() /home/deparker/Code/delve/service/dap/server_test.go:7855 +0x2a4 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
** execution is paused because a breakpoint is hit ** To continue the execution please connect your client to the debugger. Stack trace: 0 0x000000000073b084 in main.main.func2 at /home/deparker/Code/delve/_fixtures/testnextnethttp.go:16 1 0x000000000071d4b3 in net/http.HandlerFunc.ServeHTTP at /usr/lib/golang/src/net/http/server.go:2294 2 0x00000000007205e2 in net/http.(*ServeMux).ServeHTTP at /usr/lib/golang/src/net/http/server.go:2822 3 0x000000000072bc57 in net/http.serverHandler.ServeHTTP at /usr/lib/golang/src/net/http/server.go:3301 4 0x000000000071c095 in net/http.(*conn).serve at /usr/lib/golang/src/net/http/server.go:2102 5 0x000000000072271c in net/http.(*Server).Serve.gowrap3 at /usr/lib/golang/src/net/http/server.go:3454 6 0x0000000000481501 in runtime.goexit at /usr/lib/golang/src/runtime/asm_amd64.s:1700
WARNING: DATA RACE
Write at 0x00c0043241b0 by goroutine 2042:
sync/atomic.CompareAndSwapInt32()
/usr/lib/golang/src/runtime/race_amd64.s:361 +0xb
sync/atomic.CompareAndSwapInt32()
Previous write at 0x00c0043241b0 by goroutine 2018: github.com/go-delve/delve/service/dap.TestBreakpointAfterDisconnect() /home/deparker/Code/delve/service/dap/server_test.go:7882 +0x6d6 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
Goroutine 2042 (running) created at: github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:715 +0x14fc github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 2018 (running) created at: testing.(*T).Run() /usr/lib/golang/src/testing/testing.go:1851 +0x8f2 testing.runTests.func1() /usr/lib/golang/src/testing/testing.go:2279 +0x85 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.runTests() /usr/lib/golang/src/testing/testing.go:2277 +0x96c testing.(*M).Run() /usr/lib/golang/src/testing/testing.go:2142 +0xeea github.com/go-delve/delve/pkg/proc/test.RunTestsWithFixtures() /home/deparker/Code/delve/pkg/proc/test/support.go:230 +0x6b github.com/go-delve/delve/service/dap.TestMain() /home/deparker/Code/delve/service/dap/server_test.go:59 +0x2c7 main.main() _testmain.go:245 +0x171
================== WARNING: DATA RACE Read at 0x00c0043241b8 by goroutine 2042: github.com/go-delve/delve/service/dap.(*connection).isClosed() /home/deparker/Code/delve/service/dap/server.go:210 +0x8b github.com/go-delve/delve/service/dap.(*Session).resumeOnceAndCheckStop() /home/deparker/Code/delve/service/dap/server.go:3936 +0x144 github.com/go-delve/delve/service/dap.init.func1() /home/deparker/Code/delve/service/dap/server.go:3929 +0x44 github.com/go-delve/delve/service/dap.(*Session).runUntilStop() /home/deparker/Code/delve/service/dap/server.go:3921 +0x172 github.com/go-delve/delve/service/dap.(*Session).runUntilStopAndNotify() /home/deparker/Code/delve/service/dap/server.go:3796 +0x6e github.com/go-delve/delve/service/dap.(*Session).onContinueRequest() /home/deparker/Code/delve/service/dap/server.go:1738 +0x23b github.com/go-delve/delve/service/dap.(*Session).handleRequest.func2() /home/deparker/Code/delve/service/dap/server.go:717 +0xc4
Previous write at 0x00c0043241b8 by goroutine 2018: github.com/go-delve/delve/service/dap.TestBreakpointAfterDisconnect() /home/deparker/Code/delve/service/dap/server_test.go:7882 +0x6d6 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
Goroutine 2042 (running) created at: github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:715 +0x14fc github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 2018 (running) created at: testing.(*T).Run() /usr/lib/golang/src/testing/testing.go:1851 +0x8f2 testing.runTests.func1() /usr/lib/golang/src/testing/testing.go:2279 +0x85 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.runTests() /usr/lib/golang/src/testing/testing.go:2277 +0x96c testing.(*M).Run() /usr/lib/golang/src/testing/testing.go:2142 +0xeea github.com/go-delve/delve/pkg/proc/test.RunTestsWithFixtures() /home/deparker/Code/delve/pkg/proc/test/support.go:230 +0x6b github.com/go-delve/delve/service/dap.TestMain() /home/deparker/Code/delve/service/dap/server_test.go:59 +0x2c7 main.main() _testmain.go:245 +0x171
==================
WARNING: DATA RACE
Read at 0x00c0043241c8 by goroutine 2042:
github.com/go-delve/delve/service/dap.(*connection).Write()
Previous write at 0x00c0043241c8 by goroutine 2018: github.com/go-delve/delve/service/dap.TestBreakpointAfterDisconnect() /home/deparker/Code/delve/service/dap/server_test.go:7882 +0x6d6 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
Goroutine 2042 (running) created at: github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:715 +0x14fc github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 2018 (running) created at: testing.(*T).Run() /usr/lib/golang/src/testing/testing.go:1851 +0x8f2 testing.runTests.func1() /usr/lib/golang/src/testing/testing.go:2279 +0x85 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.runTests() /usr/lib/golang/src/testing/testing.go:2277 +0x96c testing.(*M).Run() /usr/lib/golang/src/testing/testing.go:2142 +0xeea github.com/go-delve/delve/pkg/proc/test.RunTestsWithFixtures() /home/deparker/Code/delve/pkg/proc/test/support.go:230 +0x6b github.com/go-delve/delve/service/dap.TestMain() /home/deparker/Code/delve/service/dap/server_test.go:59 +0x2c7 main.main() _testmain.go:245 +0x171
================== WARNING: DATA RACE Read at 0x00c0043241c0 by goroutine 2042: github.com/go-delve/delve/service/dap.(*Session).resumeOnce() /home/deparker/Code/delve/service/dap/server.go:3785 +0x374 github.com/go-delve/delve/service/dap.(*Session).resumeOnceAndCheckStop() /home/deparker/Code/delve/service/dap/server.go:3933 +0x64 github.com/go-delve/delve/service/dap.init.func1() /home/deparker/Code/delve/service/dap/server.go:3929 +0x44 github.com/go-delve/delve/service/dap.(*Session).runUntilStop() /home/deparker/Code/delve/service/dap/server.go:3921 +0x172 github.com/go-delve/delve/service/dap.(*Session).runUntilStopAndNotify() /home/deparker/Code/delve/service/dap/server.go:3796 +0x6e github.com/go-delve/delve/service/dap.(*Session).onContinueRequest() /home/deparker/Code/delve/service/dap/server.go:1738 +0x23b github.com/go-delve/delve/service/dap.(*Session).handleRequest.func2() /home/deparker/Code/delve/service/dap/server.go:717 +0xc4
Previous write at 0x00c0043241c0 by goroutine 2018: github.com/go-delve/delve/service/dap.TestBreakpointAfterDisconnect() /home/deparker/Code/delve/service/dap/server_test.go:7882 +0x6d6 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.(*T).Run.gowrap1() /usr/lib/golang/src/testing/testing.go:1851 +0x44
Goroutine 2042 (running) created at: github.com/go-delve/delve/service/dap.(*Session).handleRequest() /home/deparker/Code/delve/service/dap/server.go:715 +0x14fc github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec() /home/deparker/Code/delve/service/dap/server.go:569 +0x604 github.com/go-delve/delve/service/dap.(*Server).runSession() /home/deparker/Code/delve/service/dap/server.go:501 +0xdc github.com/go-delve/delve/service/dap.(*Server).Run.func1() /home/deparker/Code/delve/service/dap/server.go:493 +0x539
Goroutine 2018 (running) created at: testing.(*T).Run() /usr/lib/golang/src/testing/testing.go:1851 +0x8f2 testing.runTests.func1() /usr/lib/golang/src/testing/testing.go:2279 +0x85 testing.tRunner() /usr/lib/golang/src/testing/testing.go:1792 +0x225 testing.runTests() /usr/lib/golang/src/testing/testing.go:2277 +0x96c testing.(*M).Run() /usr/lib/golang/src/testing/testing.go:2142 +0xeea github.com/go-delve/delve/pkg/proc/test.RunTestsWithFixtures() /home/deparker/Code/delve/pkg/proc/test/support.go:230 +0x6b github.com/go-delve/delve/service/dap.TestMain() /home/deparker/Code/delve/service/dap/server_test.go:59 +0x2c7 main.main() _testmain.go:245 +0x171
--- FAIL: TestBreakpointAfterDisconnect (3.14s) testing.go:1490: race detected during execution of test FAIL FAIL github.com/go-delve/delve/service/dap 131.200s FAIL
exited into an atomic.Bool?
Yeah, that fixes one of the races, I sent https://github.com/go-delve/delve/pull/4121/files with that change. There's another one introduced by TestBreakpointAfterDisconnect. Do you mind looking into that one @aarzilli since you authored the test originally?
There's another one introduced by
TestBreakpointAfterDisconnect. Do you mind looking into that one @aarzilli since you authored the test originally?
I don't really remember what the logic behind that race condition was. Maybe it's enough to change that line to this:
server.impl.session.conn.ReadWriteCloser = discard{}
server.impl.session.conn.closed = false
server.impl.session.conn.closedChan = nil
The race condition wasn't on conn, it was on the s.debugger field but I think I needed to change conn there so that the test wouldn't fail in some other way.