vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.58k stars 246 forks source link

Adapter crashes when hitting breakpoint #476

Open TwentyPast4 opened 3 years ago

TwentyPast4 commented 3 years ago

I have tried launching my application built with llvm-12 and found that a second after a breakpoint is hit, the debug adapter crashes. I have pasted the crash log with verbose logging below:

Some information:

OS: Ubuntu 21.04 (also happens for me on 20.04, 20.10) VSCode version: 1.57.1 Extension version: 1.6.5 Compiler: C++ LLVM 12.0.1 Build target: x86_64-linux-gnu

Debug log
[2021-07-05T08:49:29.959Z DEBUG codelldb::debug_session] Debug event: 0x7fec90002ed0 Event: broadcaster = 0x55d8a94c1e58 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x55d8a94c1e20 (pid = 275424), state = stopped}
[2021-07-05T08:49:29.959Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":169,"event":"stopped","body":{"allThreadsStopped":true,"reason":"breakpoint","threadId":275424}}
[2021-07-05T08:49:30.277Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":9}
[2021-07-05T08:49:30.277Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[{"id":275424,"name":"1: tid=275424 \"yserver\""},{"id":275434,"name":"2: tid=275434 \"SDLTimer\""},{"id":275435,"name":"3: tid=275435 \"yserver\""},{"id":275436,"name":"4: tid=275436 \"yserver\""},{"id":275437,"name":"5: tid=275437 \"yserver\""},{"id":275438,"name":"6: tid=275438 \"yserver\""},{"id":275439,"name":"7: tid=275439 \"yserver\""},{"id":275440,"name":"8: tid=275440 \"yserver\""},{"id":275441,"name":"9: tid=275441 \"yserver\""},{"id":275442,"name":"10: tid=275442 \"yserver\""},{"id":275443,"name":"11: tid=275443 \"yserver\""},{"id":275444,"name":"12: tid=275444 \"yserver\""},{"id":275445,"name":"13: tid=275445 \"yserver\""},{"id":275446,"name":"14: tid=275446 \"yserver\""},{"id":275447,"name":"15: tid=275447 \"yserver\""},{"id":275448,"name":"16: tid=275448 \"yserver\""},{"id":275449,"name":"17: tid=275449 \"yserver\""},{"id":275450,"name":"18: tid=275450 \"yserver\""},{"id":275451,"name":"19: tid=275451 \"yserver\""},{"id":275452,"name":"20: tid=275452 \"yserver\""},{"id":275453,"name":"21: tid=275453 \"yserver\""},{"id":275454,"name":"22: tid=275454 \"yserver\""},{"id":275455,"name":"23: tid=275455 \"yserver\""},{"id":275456,"name":"24: tid=275456 \"yserver\""},{"id":275457,"name":"25: tid=275457 \"yserver\""},{"id":275458,"name":"26: tid=275458 \"yserver\""},{"id":275459,"name":"27: tid=275459 \"yserver\""},{"id":275460,"name":"28: tid=275460 \"yserver\""},{"id":275461,"name":"29: tid=275461 \"yserver\""},{"id":275462,"name":"30: tid=275462 \"yserver\""},{"id":275463,"name":"31: tid=275463 \"yserver\""},{"id":275464,"name":"32: tid=275464 \"yserver\""},{"id":275465,"name":"33: tid=275465 \"yserver\""},{"id":275466,"name":"34: tid=275466 \"yserver\""},{"id":275467,"name":"35: tid=275467 \"yserver\""},{"id":275468,"name":"36: tid=275468 \"yserver\""},{"id":275469,"name":"37: tid=275469 \"yserver\""},{"id":275470,"name":"38: tid=275470 \"yserver\""},{"id":275471,"name":"39: tid=275471 \"yserver\""},{"id":275472,"name":"40: tid=275472 \"yserver\""},{"id":275473,"name":"41: tid=275473 \"yserver\""},{"id":275474,"name":"42: tid=275474 \"yserver\""}]}}
[2021-07-05T08:49:30.443Z DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":275424,"startFrame":0,"levels":1},"type":"request","seq":10}
[2021-07-05T08:49:30.443Z DEBUG codelldb::disassembly] libstdc++.so.6`__cxa_throw
[2021-07-05T08:49:30.456Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":10,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":0,"id":1001,"line":3,"name":"__cxa_throw","presentationHint":"subtle","source":{"name":"@__cxa_throw","sourceReference":1000}}],"totalFrames":13}}
[2021-07-05T08:49:30.581Z DEBUG codelldb::dap_codec] --> {"command":"source","arguments":{"sourceReference":1000,"source":{"name":"@__cxa_throw","sourceReference":1000}},"type":"request","seq":11}
[2021-07-05T08:49:30.582Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":11,"success":true,"command":"source","body":{"content":"; id = {0x00000b42}, range = [0x00000000000ad7c0-0x00000000000ad809), name=\"__cxa_throw\"\n; Source location: unknown\n7FFFF75597C0: F3 0F 1E FA                endbr64 \n7FFFF75597C4: 41 55                      pushq  %r13\n7FFFF75597C6: 49 89 D5                   movq   %rdx, %r13\n7FFFF75597C9: 41 54                      pushq  %r12\n7FFFF75597CB: 49 89 F4                   movq   %rsi, %r12\n7FFFF75597CE: 55                         pushq  %rbp\n7FFFF75597CF: 48 89 FD                   movq   %rdi, %rbp\n7FFFF75597D2: 90                         nop    \n7FFFF75597D3: E8 08 24 FF FF             callq  0x7ffff754bbe0  ; ___lldb_unnamed_symbol3$$libstdc++.so.6 + 10640\n7FFFF75597D8: 4C 89 EA                   movq   %r13, %rdx\n7FFFF75597DB: 4C 89 E6                   movq   %r12, %rsi\n7FFFF75597DE: 48 89 EF                   movq   %rbp, %rdi\n7FFFF75597E1: 83 40 08 01                addl   $0x1, 0x8(%rax)\n7FFFF75597E5: E8 66 24 FF FF             callq  0x7ffff754bc50  ; ___lldb_unnamed_symbol3$$libstdc++.so.6 + 10752\n7FFFF75597EA: C7 00 01 00 00 00          movl   $0x1, (%rax)\n7FFFF75597F0: 48 8D 68 60                leaq   0x60(%rax), %rbp\n7FFFF75597F4: 48 89 EF                   movq   %rbp, %rdi\n7FFFF75597F7: E8 A4 14 FF FF             callq  0x7ffff754aca0  ; ___lldb_unnamed_symbol3$$libstdc++.so.6 + 6736\n7FFFF75597FC: 48 89 EF                   movq   %rbp, %rdi\n7FFFF75597FF: E8 7C FF FE FF             callq  0x7ffff7549780  ; ___lldb_unnamed_symbol3$$libstdc++.so.6 + 1328\n7FFFF7559804: E8 37 FA FE FF             callq  0x7ffff7549240  ; ___lldb_unnamed_symbol2$$libstdc++.so.6 + 384\n","mimeType":"text/x-lldb.disassembly"}}
[2021-07-05T08:49:30.975Z DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":275424,"startFrame":1,"levels":19},"type":"request","seq":12}
[2021-07-05T08:49:31.011Z DEBUG codelldb::disassembly] libc.so.6`__libc_start_main + 213
[2021-07-05T08:49:31.012Z DEBUG codelldb::disassembly] yserver`_start + 46
[2021-07-05T08:49:31.012Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":12,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":3,"id":1002,"line":17,"name":"TConfiguration::LoadConfiguration(std::filesystem::__cxx11::path const&)","source":{"name":"TConfiguration.cpp","path":"/home/user/Documents/roulettebillboard/src/common/TConfiguration.cpp"}},{"column":4,"id":1003,"line":257,"name":"yserver::YModule::LoadModuleConfig(Json::Value const&)","source":{"name":"YModule.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/YModule.cpp"}},{"column":20,"id":1004,"line":905,"name":"yserver::YServer::ProviderContainer::LoadSingle(yserver::provider::ProviderType, std::__cxx11::basic_string, std::allocator > const&, Json::Value const&)","source":{"name":"YServer.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/YServer.cpp"}},{"column":43,"id":1005,"line":2119,"name":"yserver::YModuleContainer::Load(Json::Value const&)","source":{"name":"YServer.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/YServer.cpp"}},{"column":21,"id":1006,"line":2353,"name":"yserver::YServer::OnConfigLoaded(std::filesystem::__cxx11::path const&)","source":{"name":"YServer.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/YServer.cpp"}},{"column":3,"id":1007,"line":26,"name":"TConfiguration::LoadConfiguration(std::filesystem::__cxx11::path const&)","source":{"name":"TConfiguration.cpp","path":"/home/user/Documents/roulettebillboard/src/common/TConfiguration.cpp"}},{"column":11,"id":1008,"line":22,"name":"TYModule::Load(void*)","source":{"name":"TYServerApp.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/TYServerApp.cpp"}},{"column":10,"id":1009,"line":53,"name":"rtfwk_sdl2::TAppModule::Init(std::__cxx11::basic_string, std::allocator > const&, void*, int)","source":{"name":"TAppModule.cpp","path":"/home/user/Documents/roulettebillboard/rtfwk-sdl2/src/TAppModule.cpp"}},{"column":30,"id":1010,"line":149,"name":"TYServerApp::Init()","source":{"name":"TYServerApp.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/TYServerApp.cpp"}},{"column":13,"id":1011,"line":10,"name":"main","source":{"name":"main.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/main.cpp"}},{"column":0,"id":1012,"line":55,"name":"__libc_start_main","presentationHint":"subtle","source":{"name":"@__libc_start_main","sourceReference":1001}},{"column":0,"id":1013,"line":15,"name":"_start","presentationHint":"subtle","source":{"name":"@_start","sourceReference":1002}}],"totalFrames":13}}
[2021-07-05T08:49:31.012Z DEBUG codelldb::dap_codec] --> {"command":"scopes","arguments":{"frameId":1001},"type":"request","seq":13}
[2021-07-05T08:49:31.013Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":13,"success":true,"command":"scopes","body":{"scopes":[{"expensive":false,"name":"Local","variablesReference":1014},{"expensive":false,"name":"Static","variablesReference":1015},{"expensive":false,"name":"Global","variablesReference":1016},{"expensive":false,"name":"Registers","variablesReference":1017}]}}
[2021-07-05T08:49:31.019Z DEBUG codelldb::dap_codec] --> {"command":"variables","arguments":{"variablesReference":1014},"type":"request","seq":14}
[2021-07-05T08:49:31.019Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":14,"success":true,"command":"variables","body":{"variables":[]}}
[2021-07-05T08:49:31.850Z DEBUG codelldb::dap_codec] --> {"command":"continue","arguments":{"threadId":275424},"type":"request","seq":15}
[2021-07-05T08:49:31.851Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":15,"success":true,"command":"continue","body":{"allThreadsContinued":true}}
[2021-07-05T08:49:31.852Z DEBUG codelldb::debug_session] Debug event: 0x55d8aae48fa0 Event: broadcaster = 0x55d8a94c1e58 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x55d8a94c1e20 (pid = 275424), state = running}
[2021-07-05T08:49:31.852Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":170,"event":"continued","body":{"allThreadsContinued":true,"threadId":0}}
[2021-07-05T08:49:31.918Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c71790 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libnss_files.so.2}
[2021-07-05T08:49:31.918Z DEBUG codelldb::debug_session] Debug event: 0x7fec918fa890 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libnss_files.so.2}
[2021-07-05T08:49:31.918Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":171,"event":"module","body":{"module":{"addressRange":"7FFFDEA62000","id":"7FFFDEA62000","name":"libnss_files.so.2","path":"/lib/x86_64-linux-gnu/libnss_files.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libnss_files.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:49:31.918Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":172,"event":"module","body":{"module":{"addressRange":"7FFFDEA62000","id":"7FFFDEA62000","name":"libnss_files.so.2","path":"/lib/x86_64-linux-gnu/libnss_files.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libnss_files.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:49:31.955Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c8db80 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libnss_mdns4_minimal.so.2}
[2021-07-05T08:49:31.955Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c8fb60 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libnss_mdns4_minimal.so.2}
[2021-07-05T08:49:31.955Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":173,"event":"module","body":{"module":{"addressRange":"7FFFF7FAD000","id":"7FFFF7FAD000","name":"libnss_mdns4_minimal.so.2","path":"/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:49:31.955Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":174,"event":"module","body":{"module":{"addressRange":"7FFFF7FAD000","id":"7FFFF7FAD000","name":"libnss_mdns4_minimal.so.2","path":"/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:49:31.990Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c95ef0 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libnss_dns.so.2}
[2021-07-05T08:49:31.990Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c98590 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libnss_dns.so.2}
[2021-07-05T08:49:31.990Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":175,"event":"module","body":{"module":{"addressRange":"7FFFDEA59000","id":"7FFFDEA59000","name":"libnss_dns.so.2","path":"/lib/x86_64-linux-gnu/libnss_dns.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libnss_dns.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:49:31.990Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":176,"event":"module","body":{"module":{"addressRange":"7FFFDEA59000","id":"7FFFDEA59000","name":"libnss_dns.so.2","path":"/lib/x86_64-linux-gnu/libnss_dns.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libnss_dns.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:49:32.172Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c7fe90 Event: broadcaster = 0x55d8a94c1e58 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x55d8a94c1e20 (pid = 275424), state = stopped}
[2021-07-05T08:49:32.172Z DEBUG codelldb::debug_session] Debug event: 0x7fec918fba00 Event: broadcaster = 0x55d8a94c1e58 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x55d8a94c1e20 (pid = 275424), state = running}
[2021-07-05T08:49:32.172Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":177,"event":"continued","body":{"allThreadsContinued":true,"threadId":0}}
[2021-07-05T08:50:32.754Z DEBUG codelldb::debug_session] Debug event: 0x7fec91cc5e80 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libtbbmalloc.so.2}
[2021-07-05T08:50:32.754Z DEBUG codelldb::debug_session] Debug event: 0x7fec91cc8390 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000002 (modules-loaded), data = {libtbbmalloc.so.2}
[2021-07-05T08:50:32.754Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":178,"event":"module","body":{"module":{"addressRange":"7FFFDC211000","id":"7FFFDC211000","name":"libtbbmalloc.so.2","path":"/lib/x86_64-linux-gnu/libtbbmalloc.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libtbbmalloc.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:50:32.754Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":179,"event":"module","body":{"module":{"addressRange":"7FFFDC211000","id":"7FFFDC211000","name":"libtbbmalloc.so.2","path":"/lib/x86_64-linux-gnu/libtbbmalloc.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libtbbmalloc.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-07-05T08:54:25.194Z DEBUG codelldb::dap_codec] --> {"command":"setBreakpoints","arguments":{"source":{"name":"YServer.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/YServer.cpp"},"lines":[1962],"breakpoints":[{"line":1962}],"sourceModified":false},"type":"request","seq":16}
[2021-07-05T08:54:25.338Z DEBUG codelldb::debug_session] Debug event: 0x7fec91c98590 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-07-05T08:54:25.338Z DEBUG codelldb::debug_session] Debug event: 0x55d8af525510 Event: broadcaster = 0x55d8a8688e28 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-07-05T08:54:25.338Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":16,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"line":1962,"message":"Locations: 1","verified":true}]}}
[2021-07-05T08:54:32.291Z DEBUG codelldb::debug_session] Callback for breakpoint location 2.1: where = yserver`yserver::YServer::RunOnce() + 540 at YServer.cpp:1962:4, address = 0x00000000007c342c, resolved, hit count = 1 

[2021-07-05T08:54:32.292Z DEBUG codelldb::debug_session] Debug event: 0x7fec906059b0 Event: broadcaster = 0x55d8a94c1e58 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x55d8a94c1e20 (pid = 275424), state = stopped}
[2021-07-05T08:54:32.292Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":180,"event":"stopped","body":{"allThreadsStopped":true,"reason":"breakpoint","threadId":275424}}
[2021-07-05T08:54:32.295Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":17}
[2021-07-05T08:54:32.295Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":17,"success":true,"command":"threads","body":{"threads":[{"id":275424,"name":"1: tid=275424 \"yserver\""},{"id":275434,"name":"2: tid=275434 \"SDLTimer\""},{"id":275435,"name":"3: tid=275435 \"yserver\""},{"id":275436,"name":"4: tid=275436 \"yserver\""},{"id":275437,"name":"5: tid=275437 \"yserver\""},{"id":275438,"name":"6: tid=275438 \"yserver\""},{"id":275439,"name":"7: tid=275439 \"yserver\""},{"id":275440,"name":"8: tid=275440 \"yserver\""},{"id":275441,"name":"9: tid=275441 \"yserver\""},{"id":275442,"name":"10: tid=275442 \"yserver\""},{"id":275443,"name":"11: tid=275443 \"yserver\""},{"id":275444,"name":"12: tid=275444 \"yserver\""},{"id":275445,"name":"13: tid=275445 \"yserver\""},{"id":275446,"name":"14: tid=275446 \"yserver\""},{"id":275447,"name":"15: tid=275447 \"yserver\""},{"id":275448,"name":"16: tid=275448 \"yserver\""},{"id":275449,"name":"17: tid=275449 \"yserver\""},{"id":275450,"name":"18: tid=275450 \"yserver\""},{"id":275451,"name":"19: tid=275451 \"yserver\""},{"id":275452,"name":"20: tid=275452 \"yserver\""},{"id":275453,"name":"21: tid=275453 \"yserver\""},{"id":275454,"name":"22: tid=275454 \"yserver\""},{"id":275455,"name":"23: tid=275455 \"yserver\""},{"id":275456,"name":"24: tid=275456 \"yserver\""},{"id":275457,"name":"25: tid=275457 \"yserver\""},{"id":275458,"name":"26: tid=275458 \"yserver\""},{"id":275459,"name":"27: tid=275459 \"yserver\""},{"id":275460,"name":"28: tid=275460 \"yserver\""},{"id":275461,"name":"29: tid=275461 \"yserver\""},{"id":275462,"name":"30: tid=275462 \"yserver\""},{"id":275463,"name":"31: tid=275463 \"yserver\""},{"id":275464,"name":"32: tid=275464 \"yserver\""},{"id":275465,"name":"33: tid=275465 \"yserver\""},{"id":275466,"name":"34: tid=275466 \"yserver\""},{"id":275467,"name":"35: tid=275467 \"yserver\""},{"id":275468,"name":"36: tid=275468 \"yserver\""},{"id":275469,"name":"37: tid=275469 \"yserver\""},{"id":275470,"name":"38: tid=275470 \"yserver\""},{"id":275471,"name":"39: tid=275471 \"yserver\""},{"id":275472,"name":"40: tid=275472 \"yserver\""},{"id":275473,"name":"41: tid=275473 \"yserver\""},{"id":275474,"name":"42: tid=275474 \"yserver\""},{"id":275475,"name":"43: tid=275475 \"nanothread\""},{"id":275476,"name":"44: tid=275476 \"yserver\""},{"id":275477,"name":"45: tid=275477 \"yserver\""},{"id":275478,"name":"46: tid=275478 \"yserver\""},{"id":275479,"name":"47: tid=275479 \"yserver\""},{"id":275480,"name":"48: tid=275480 \"yserver\""},{"id":275481,"name":"49: tid=275481 \"rmclient:Main\""},{"id":275482,"name":"50: tid=275482 \"yserver\""},{"id":275483,"name":"51: tid=275483 \"V8 DefaultWorke\""},{"id":275484,"name":"52: tid=275484 \"V8 DefaultWorke\""},{"id":275485,"name":"53: tid=275485 \"V8 DefaultWorke\""},{"id":275486,"name":"54: tid=275486 \"V8 DefaultWorke\""},{"id":275487,"name":"55: tid=275487 \"V8 DefaultWorke\""},{"id":275488,"name":"56: tid=275488 \"V8 DefaultWorke\""},{"id":275489,"name":"57: tid=275489 \"V8 DefaultWorke\""},{"id":275490,"name":"58: tid=275490 \"yserver\""},{"id":275491,"name":"59: tid=275491 \"ythread\""},{"id":275492,"name":"60: tid=275492 \"ythread\""},{"id":275493,"name":"61: tid=275493 \"ythread\""},{"id":275494,"name":"62: tid=275494 \"ythread\""},{"id":275495,"name":"63: tid=275495 \"ythread\""},{"id":275496,"name":"64: tid=275496 \"ythread\""},{"id":275497,"name":"65: tid=275497 \"ythread\""},{"id":275498,"name":"66: tid=275498 \"ythread\""},{"id":275499,"name":"67: tid=275499 \"ythread\""},{"id":275500,"name":"68: tid=275500 \"ythread\""},{"id":275501,"name":"69: tid=275501 \"ythread\""},{"id":275502,"name":"70: tid=275502 \"ythread\""},{"id":275503,"name":"71: tid=275503 \"ythread\""},{"id":275504,"name":"72: tid=275504 \"ythread\""},{"id":275505,"name":"73: tid=275505 \"ythread\""},{"id":275506,"name":"74: tid=275506 \"ythread\""}]}}
[2021-07-05T08:54:32.304Z DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":275424,"startFrame":0,"levels":1},"type":"request","seq":18}
[2021-07-05T08:54:32.306Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":18,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":4,"id":1001,"line":1962,"name":"yserver::YServer::RunOnce()","source":{"name":"YServer.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/YServer.cpp"}}],"totalFrames":8}}
[2021-07-05T08:54:32.732Z DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":275424,"startFrame":1,"levels":19},"type":"request","seq":19}
[2021-07-05T08:54:32.734Z DEBUG codelldb::dap_codec] --> {"command":"scopes","arguments":{"frameId":1001},"type":"request","seq":20}
[2021-07-05T08:54:32.736Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":19,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":46,"id":1002,"line":58,"name":"TYModule::Poll()","source":{"name":"TYServerApp.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/TYServerApp.cpp"}},{"column":17,"id":1003,"line":201,"name":"TYServerApp::RunOnce()","source":{"name":"TYServerApp.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/TYServerApp.cpp"}},{"column":19,"id":1004,"line":308,"name":"rtfwk_sdl2::TApplication::MainLoop()","source":{"name":"TApplication.cpp","path":"/home/user/Documents/roulettebillboard/rtfwk-sdl2/src/TApplication.cpp"}},{"column":12,"id":1005,"line":191,"name":"rtfwk_sdl2::TApplication::Run()","source":{"name":"TApplication.cpp","path":"/home/user/Documents/roulettebillboard/rtfwk-sdl2/src/TApplication.cpp"}},{"column":9,"id":1006,"line":24,"name":"main","source":{"name":"main.cpp","path":"/home/user/Documents/roulettebillboard/src/yserver/main.cpp"}},{"column":0,"id":1007,"line":55,"name":"__libc_start_main","presentationHint":"subtle","source":{"name":"@__libc_start_main","sourceReference":1001}},{"column":0,"id":1008,"line":15,"name":"_start","presentationHint":"subtle","source":{"name":"@_start","sourceReference":1002}}],"totalFrames":8}}
[2021-07-05T08:54:32.736Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":20,"success":true,"command":"scopes","body":{"scopes":[{"expensive":false,"name":"Local","variablesReference":1014},{"expensive":false,"name":"Static","variablesReference":1015},{"expensive":false,"name":"Global","variablesReference":1016},{"expensive":false,"name":"Registers","variablesReference":1017}]}}
[2021-07-05T08:54:32.765Z DEBUG codelldb::dap_codec] --> {"command":"variables","arguments":{"variablesReference":1014},"type":"request","seq":21}
Received signal: SIGSEGV
   0: codelldb::hook_crashes::handler
   1: 
   2: 
   3: 
   4: _ZNK5clang10ASTContext18getASTRecordLayoutEPKNS_10RecordDeclE
   5: _ZNK5clang10ASTContext15getTypeInfoImplEPKNS_4TypeE
   6: _ZNK5clang10ASTContext11getTypeInfoEPKNS_4TypeE
   7: 
   8: 
   9: 
  10: 
  11: 
  12: 
  13: 
  14: 
  15: 
  16: 
  17: 
  18: 
  19: 
  20: 
  21: 
  22: 
  23: 
  24: 
  25: 
  26: 
  27: 
  28: 
  29: 
  30: 
  31: 
  32: 
  33: 
  34: 
  35: 
  36: 
  37: 
  38: 
  39: 
  40: 
  41: 
  42: 
  43: 
  44: 
  45: _ZN4lldb7SBValue11DereferenceEv
  46: __cpp_closure_6287997593757070358
  47: lldb::sb::sbvalue::SBValue::dereference
  48: codelldb::debug_session::DebugSession::get_var_summary
  49: codelldb::debug_session::DebugSession::var_to_variable
  50: codelldb::debug_session::DebugSession::convert_scope_values
  51: codelldb::debug_session::DebugSession::handle_command
  52: codelldb::debug_session::DebugSession::handle_request
  53:  as core::future::future::Future>::poll
  54: tokio::macros::scoped_tls::ScopedKey::set
  55:  as core::future::future::Future>::poll
  56: tokio::runtime::enter::Enter::block_on
  57: tokio::runtime::thread_pool::ThreadPool::block_on
  58: tokio::runtime::Runtime::block_on
  59: entry
  60: codelldb::main
  61: std::sys_common::backtrace::__rust_begin_short_backtrace
  62: std::rt::lang_start::{{closure}}
  63: std::rt::lang_start_internal
  64: main
  65: __libc_start_main
  66: _start

Debug adapter exit code=255, signal=null.
vadimcn commented 3 years ago

So are you loading an alternate liblldb?

TwentyPast4 commented 3 years ago

So are you loading an alternate liblldb?

I have tried loading an alternate liblldb to see if that would solve the problem - it doesn't The trace looks identical without loading an alternate liblldb, so I'm sorry I even added that information as it might be confusing.

vadimcn commented 3 years ago

Looks like something blows up inside lldb. Does this happen in CLI version too?

TwentyPast4 commented 3 years ago

Looks like something blows up inside lldb. Does this happen in CLI version too?

No, running lldb from the command line works fine and doesn't crash lldb. However, this error pops up at every expression eval:

error: need to add support for DW_TAG_base_type 'auto' encoded with DW_ATE = 0x0, bit_size = 0

This error is also present in the adapter's verbose log (though I have no idea if it is related to the crash)