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

Test Failure: switch goroutine #1958

Closed
suzmue opened this issue Dec 21, 2021 · 3 comments
Closed

Test Failure: switch goroutine #1958

suzmue opened this issue Dec 21, 2021 · 3 comments
Assignees
Labels
chore/testing issues related to bugs in test, CI setup Debug Issues related to the debugging functionality of the extension.

Comments

@suzmue
Copy link
Contributor

suzmue commented Dec 21, 2021

Failing test for switch goroutine step in using dlv-dap.

https://source.cloud.google.com/results/invocations/bd757144-4883-4c6b-9034-72633e20e110

Trace from failure:
step in FAILED: DAP Trace

accepted connection from client

-> server: {"type":"request","seq":1,"command":"initialize","arguments":{"adapterID":"go","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"DAP server listening at: 127.0.0.1:35569\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap DAP server pid = 15379\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap DAP connection 1 started\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":1,"type":"request","command":"initialize","arguments":{"adapterID":"go","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path"}}\n2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"supportsSetVariable":true,"supportsExceptionInfoRequest":true,"supportTerminateDebuggee":true,"supportsDelayedStackTraceLoading":true,"supportsLogPoints":true,"supportsDisassembleRequest":true,"supportsClipboardContext":true,"supportsSteppingGranularity":true,"supportsInstructionBreakpoints":true}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"supportsSetVariable":true,"supportsExceptionInfoRequest":true,"supportTerminateDebuggee":true,"supportsDelayedStackTraceLoading":true,"supportsLogPoints":true,"supportsDisassembleRequest":true,"supportsClipboardContext":true,"supportsSteppingGranularity":true,"supportsInstructionBreakpoints":true}}

-> server: {"type":"request","seq":2,"command":"launch","arguments":{"name":"Launch","type":"go","request":"launch","mode":"debug","program":".","debugAdapter":"dlv-dap","logOutput":"dap,debugger","showLog":true,"trace":"verbose","output":"/workspace/test/testdata/goroutineTest/__debug_bin_46","packagePathToGoModPathMap":{"/workspace/vscodego/go/src/test/testfixture":"/workspace/vscodego/go/src/test/testfixture","/workspace/vscodego/go/src/test/testfixture/baseTest":"","/workspace/vscodego/go/src/test/testfixture/gogetdocTestData":"","/workspace/vscodego/go/src/test/testfixture/completions":"","/workspace/vscodego/go/src/test/testfixture/testTags":"","/tmp/legacyl37Fa2/testfixture/baseTest":"/tmp/legacyl37Fa2/testfixture/baseTest","/tmp/legacyl37Fa2/testfixture/completions":"/tmp/legacyl37Fa2/testfixture/completions","/tmp/legacyl37Fa2/testfixture/testTags":"/tmp/legacyl37Fa2/testfixture/testTags"},"dlvToolPath":"/go/bin/dlv-dap","env":{},"__buildDir":"/workspace/test/testdata/goroutineTest"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":2,"type":"request","command":"launch","arguments":{"name":"Launch","type":"go","request":"launch","mode":"debug","program":".","debugAdapter":"dlv-dap","logOutput":"dap,debugger","showLog":true,"trace":"verbose","output":"/workspace/test/testdata/goroutineTest/__debug_bin_46","packagePathToGoModPathMap":{"/workspace/vscodego/go/src/test/testfixture":"/workspace/vscodego/go/src/test/testfixture","/workspace/vscodego/go/src/test/testfixture/baseTest":"","/workspace/vscodego/go/src/test/testfixture/gogetdocTestData":"","/workspace/vscodego/go/src/test/testfixture/completions":"","/workspace/vscodego/go/src/test/testfixture/testTags":"","/tmp/legacyl37Fa2/testfixture/baseTest":"/tmp/legacyl37Fa2/testfixture/baseTest","/tmp/legacyl37Fa2/testfixture/completions":"/tmp/legacyl37Fa2/testfixture/completions","/tmp/legacyl37Fa2/testfixture/testTags":"/tmp/legacyl37Fa2/testfixture/testTags"},"dlvToolPath":"/go/bin/dlv-dap","env":{},"__buildDir":"/workspace/test/testdata/goroutineTest"}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap parsed launch config: {\n\t"mode": "debug",\n\t"program": ".",\n\t"output": "/workspace/test/testdata/goroutineTest/__debug_bin_46",\n\t"backend": "default",\n\t"stackTraceDepth": 50\n}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap building from "/workspace/test/testdata/goroutineTest": [go build -o /workspace/test/testdata/goroutineTest/__debug_bin_46 -gcflags all=-N -l .]\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap launching binary '/workspace/test/testdata/goroutineTest/__debug_bin_46' with config: {\n\t"mode": "debug",\n\t"program": "/workspace/test/testdata/goroutineTest",\n\t"cwd": "/workspace/test/testdata/goroutineTest",\n\t"output": "/workspace/test/testdata/goroutineTest/__debug_bin_46",\n\t"dlvCwd": "/workspace/test/testdata/goroutineTest",\n\t"backend": "default",\n\t"stackTraceDepth": 50\n}\n2021-12-21T00:07:52Z info layer=debugger launching process with args: [/workspace/test/testdata/goroutineTest/__debug_bin_46]\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"initialized"}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":2,"success":true,"command":"launch"}\n"}}
<- server: {"seq":0,"type":"event","event":"initialized"}

<- server: {"seq":0,"type":"response","request_seq":2,"success":true,"command":"launch"}

-> server: {"type":"request","seq":3,"command":"setBreakpoints","arguments":{"lines":[6],"breakpoints":[{"line":6}],"source":{"path":"/workspace/test/testdata/goroutineTest/main.go"}}}
<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":3,"type":"request","command":"setBreakpoints","arguments":{"source":{"path":"/workspace/test/testdata/goroutineTest/main.go"},"breakpoints":[{"line":6}],"lines":[6]}}\n"}}
<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z info layer=debugger created breakpoint: &api.Breakpoint{ID:1, Name:"sourceBp Path=\"/workspace/test/testdata/goroutineTest/main.go\" Line=6 Column=0", Addr:0x4599e2, Addrs:[]uint64{0x4599e2}, File:"/workspace/test/testdata/goroutineTest/main.go", Line:6, FunctionName:"main.run1", Cond:"", HitCond:"", Tracepoint:false, TraceReturn:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), WatchExpr:"", WatchType:0x0, VerboseDescr:[]string(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0, Disabled:false, UserData:interface {}(nil)}\n2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":6}]}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":6}]}}

-> server: {"type":"request","seq":4,"command":"configurationDone"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":4,"type":"request","command":"configurationDone","arguments":{}}\n"}}
<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"output","body":{"category":"console","output":"Type 'dlv help' for list of commands.\n","source":{}}}\n2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":4,"success":true,"command":"configurationDone"}\n2021-12-21T00:07:52Z debug layer=debugger continuing\n"}}
<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"Type 'dlv help' for list of commands.\n","source":{}}}

<- server: {"seq":0,"type":"response","request_seq":4,"success":true,"command":"configurationDone"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap "continue" command stopped - reason "breakpoint", location /workspace/test/testdata/goroutineTest/main.go:6\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":5,"allThreadsStopped":true,"hitBreakpointIds":[1]}}\n"}}

<- server: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":5,"allThreadsStopped":true,"hitBreakpointIds":[1]}}

-> server: {"type":"request","seq":5,"command":"stackTrace","arguments":{"threadId":5}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":5,"type":"request","command":"stackTrace","arguments":{"threadId":5,"format":{}}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":5,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"main.run1","source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":6,"column":0,"instructionPointerReference":"0x4599e2"},{"id":1001,"name":"runtime.goexit","source":{"name":"asm_amd64.s","path":"/usr/local/go/src/runtime/asm_amd64.s"},"line":1581,"column":0,"instructionPointerReference":"0x456aa1","presentationHint":"subtle"}],"totalFrames":2}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":5,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"main.run1","source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":6,"column":0,"instructionPointerReference":"0x4599e2"},{"id":1001,"name":"runtime.goexit","source":{"name":"asm_amd64.s","path":"/usr/local/go/src/runtime/asm_amd64.s"},"line":1581,"column":0,"instructionPointerReference":"0x456aa1","presentationHint":"subtle"}],"totalFrames":2}}

-> server: {"type":"request","seq":6,"command":"threads"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":6,"type":"request","command":"threads"}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":6,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"[Go 1] main.main (Thread 15446)"},{"id":2,"name":"[Go 2] runtime.gopark"},{"id":3,"name":"[Go 3] runtime.gopark"},{"id":4,"name":"[Go 4] runtime.gopark"},{"id":5,"name":"* [Go 5] main.run1 (Thread 15450)"},{"id":6,"name":"[Go 6] main.run2"}]}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":6,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"[Go 1] main.main (Thread 15446)"},{"id":2,"name":"[Go 2] runtime.gopark"},{"id":3,"name":"[Go 3] runtime.gopark"},{"id":4,"name":"[Go 4] runtime.gopark"},{"id":5,"name":"* [Go 5] main.run1 (Thread 15450)"},{"id":6,"name":"[Go 6] main.run2"}]}}

-> server: {"type":"request","seq":7,"command":"setBreakpoints","arguments":{"source":{"path":"/workspace/test/testdata/goroutineTest/main.go"},"breakpoints":[{"line":14}]}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":7,"type":"request","command":"setBreakpoints","arguments":{"source":{"path":"/workspace/test/testdata/goroutineTest/main.go"},"breakpoints":[{"line":14}]}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z info layer=debugger cleared breakpoint: &api.Breakpoint{ID:1, Name:"sourceBp Path=\"/workspace/test/testdata/goroutineTest/main.go\" Line=6 Column=0", Addr:0x4599e2, Addrs:[]uint64{0x4599e2}, File:"/workspace/test/testdata/goroutineTest/main.go", Line:6, FunctionName:"main.run1", Cond:"", HitCond:"", Tracepoint:false, TraceReturn:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), WatchExpr:"", WatchType:0x0, VerboseDescr:[]string(nil), HitCount:map[string]uint64{"5":0x1}, TotalHitCount:0x1, Disabled:false, UserData:interface {}(nil)}\n2021-12-21T00:07:52Z info layer=debugger created breakpoint: &api.Breakpoint{ID:2, Name:"sourceBp Path=\"/workspace/test/testdata/goroutineTest/main.go\" Line=14 Column=0", Addr:0x459a02, Addrs:[]uint64{0x459a02}, File:"/workspace/test/testdata/goroutineTest/main.go", Line:14, FunctionName:"main.run2", Cond:"", HitCond:"", Tracepoint:false, TraceReturn:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), WatchExpr:"", WatchType:0x0, VerboseDescr:[]string(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0, Disabled:false, UserData:interface {}(nil)}\n2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":7,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":true,"source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":14}]}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":7,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":true,"source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":14}]}}

-> server: {"type":"request","seq":8,"command":"threads"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":8,"type":"request","command":"threads"}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"[Go 1] main.main (Thread 15446)"},{"id":2,"name":"[Go 2] runtime.gopark"},{"id":3,"name":"[Go 3] runtime.gopark"},{"id":4,"name":"[Go 4] runtime.gopark"},{"id":5,"name":"* [Go 5] main.run1 (Thread 15450)"},{"id":6,"name":"[Go 6] main.run2"}]}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"[Go 1] main.main (Thread 15446)"},{"id":2,"name":"[Go 2] runtime.gopark"},{"id":3,"name":"[Go 3] runtime.gopark"},{"id":4,"name":"[Go 4] runtime.gopark"},{"id":5,"name":"* [Go 5] main.run1 (Thread 15450)"},{"id":6,"name":"[Go 6] main.run2"}]}}

-> server: {"type":"request","seq":9,"command":"continue","arguments":{"threadId":1}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [<- from client]{"seq":9,"type":"request","command":"continue","arguments":{"threadId":1}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":9,"success":true,"command":"continue","body":{"allThreadsContinued":true}}\n2021-12-21T00:07:52Z debug layer=debugger continuing\n"}}

<- server: {"seq":0,"type":"response","request_seq":9,"success":true,"command":"continue","body":{"allThreadsContinued":true}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:52Z debug layer=dap "continue" command stopped - reason "breakpoint", location /workspace/test/testdata/goroutineTest/main.go:14\n2021-12-21T00:07:52Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":6,"allThreadsStopped":true,"hitBreakpointIds":[2]}}\n"}}

<- server: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":6,"allThreadsStopped":true,"hitBreakpointIds":[2]}}

-> server: {"type":"request","seq":10,"command":"stackTrace","arguments":{"threadId":6}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [<- from client]{"seq":10,"type":"request","command":"stackTrace","arguments":{"threadId":6,"format":{}}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":10,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"main.run2","source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":14,"column":0,"instructionPointerReference":"0x459a02"},{"id":1001,"name":"runtime.goexit","source":{"name":"asm_amd64.s","path":"/usr/local/go/src/runtime/asm_amd64.s"},"line":1581,"column":0,"instructionPointerReference":"0x456aa1","presentationHint":"subtle"}],"totalFrames":2}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":10,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"main.run2","source":{"name":"main.go","path":"/workspace/test/testdata/goroutineTest/main.go"},"line":14,"column":0,"instructionPointerReference":"0x459a02"},{"id":1001,"name":"runtime.goexit","source":{"name":"asm_amd64.s","path":"/usr/local/go/src/runtime/asm_amd64.s"},"line":1581,"column":0,"instructionPointerReference":"0x456aa1","presentationHint":"subtle"}],"totalFrames":2}}

-> server: {"type":"request","seq":11,"command":"setBreakpoints","arguments":{"source":{"path":"/workspace/test/testdata/goroutineTest/main.go"},"breakpoints":[]}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [<- from client]{"seq":11,"type":"request","command":"setBreakpoints","arguments":{"source":{"path":"/workspace/test/testdata/goroutineTest/main.go"}}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z info layer=debugger cleared breakpoint: &api.Breakpoint{ID:2, Name:"sourceBp Path=\"/workspace/test/testdata/goroutineTest/main.go\" Line=14 Column=0", Addr:0x459a02, Addrs:[]uint64{0x459a02}, File:"/workspace/test/testdata/goroutineTest/main.go", Line:14, FunctionName:"main.run2", Cond:"", HitCond:"", Tracepoint:false, TraceReturn:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), WatchExpr:"", WatchType:0x0, VerboseDescr:[]string(nil), HitCount:map[string]uint64{"6":0x1}, TotalHitCount:0x1, Disabled:false, UserData:interface {}(nil)}\n2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":11,"success":true,"command":"setBreakpoints","body":{"breakpoints":[]}}\n"}}

<- server: {"seq":0,"type":"response","request_seq":11,"success":true,"command":"setBreakpoints","body":{"breakpoints":[]}}

-> server: {"type":"request","seq":12,"command":"stepIn","arguments":{"threadId":6}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [<- from client]{"seq":12,"type":"request","command":"stepIn","arguments":{"threadId":6}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"continued","body":{"threadId":6,"allThreadsContinued":true}}\n2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":12,"success":true,"command":"stepIn"}\n2021-12-21T00:07:53Z debug layer=debugger switching to goroutine 6\n"}}

<- server: {"seq":0,"type":"event","event":"continued","body":{"threadId":6,"allThreadsContinued":true}}

<- server: {"seq":0,"type":"response","request_seq":12,"success":true,"command":"stepIn"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=debugger stepping\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap "step" command stopped - reason "next finished", location /workspace/test/testdata/goroutineTest/main.go:15\n2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":6,"allThreadsStopped":true}}\n"}}

<- server: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":6,"allThreadsStopped":true}}

-> server: {"type":"request","seq":13,"command":"stepIn","arguments":{"threadId":5}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [<- from client]{"seq":13,"type":"request","command":"stepIn","arguments":{"threadId":5}}\n2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"continued","body":{"threadId":5,"allThreadsContinued":true}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":13,"success":true,"command":"stepIn"}\n2021-12-21T00:07:53Z debug layer=debugger switching to goroutine 5\n"}}

<- server: {"seq":0,"type":"event","event":"continued","body":{"threadId":5,"allThreadsContinued":true}}

<- server: {"seq":0,"type":"response","request_seq":13,"success":true,"command":"stepIn"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=debugger stepping\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap "step" command stopped - reason "next finished", location /usr/local/go/src/runtime/runtime2.go:282\n2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":5,"allThreadsStopped":true}}\n"}}

<- server: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":5,"allThreadsStopped":true}}

-> server: {"type":"request","seq":14,"command":"stepIn","arguments":{"threadId":5}}
<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [<- from client]{"seq":14,"type":"request","command":"stepIn","arguments":{"threadId":5}}\n"}}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"event","event":"continued","body":{"threadId":5,"allThreadsContinued":true}}\n2021-12-21T00:07:53Z debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":14,"success":true,"command":"stepIn"}\n2021-12-21T00:07:53Z debug layer=debugger switching to goroutine 5\n"}}

<- server: {"seq":0,"type":"event","event":"continued","body":{"threadId":5,"allThreadsContinued":true}}

<- server: {"seq":0,"type":"response","request_seq":14,"success":true,"command":"stepIn"}

<- server: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"2021-12-21T00:07:53Z debug layer=debugger stepping\n"}}

@gopherbot gopherbot added this to the Untriaged milestone Dec 21, 2021
@suzmue suzmue changed the title Test Failure: switch goroutine step in Test Failure: switch goroutine Dec 21, 2021
@suzmue suzmue modified the milestones: Untriaged, On Deck Dec 21, 2021
@gopherbot
Copy link
Collaborator

Change https://golang.org/cl/375294 mentions this issue: test: disable switch goroutine tests

gopherbot pushed a commit that referenced this issue Jan 4, 2022
Updates #1958

Change-Id: I324d8008dbe1bad29777180162c41d5c0ad76679
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/375294
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
@suzmue suzmue self-assigned this Jan 5, 2022
@gopherbot
Copy link
Collaborator

Change https://golang.org/cl/376694 mentions this issue: goDebug.test.ts: update switch goroutine test

gopherbot pushed a commit that referenced this issue Jan 10, 2022
The original switch goroutine test provided no guarantees
that the goroutine would ever execute. Update the test
to match the test used in delve.

Updates #1958

Change-Id: I768297a86310e878ad37083bc144ddea982f9193
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/376694
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
@gopherbot
Copy link
Collaborator

Change https://go.dev/cl/376694 mentions this issue: goDebug.test.ts: update switch goroutine test

@polinasok polinasok added chore/testing issues related to bugs in test, CI setup Debug Issues related to the debugging functionality of the extension. labels Mar 30, 2022
@suzmue suzmue closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore/testing issues related to bugs in test, CI setup Debug Issues related to the debugging functionality of the extension.
Projects
None yet
Development

No branches or pull requests

3 participants