gulfemsavrun wrote: We started seeing a test failure (`lldb-api :: tools/lldb-dap/launch/TestDAP_launch.py`) after this patch: ``` 1754321883.282107115 (stdio) <-- {"body":{"category":"console","output":"(lldb) image dump sections a.out\n"},"event":"output","seq":0,"type":"event"} 1754321883.282118082 (stdio) <-- {"body":{"category":"console","output":"Sections for '/b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/tools/lldb-dap/launch/TestDAP_launch.test_failing_launch_commands/a.out' (aarch64):\n"},"event":"output","seq":0,"type":"event"} 1754321883.282129049 (stdio) <-- {"body":{"category":"console","output":" SectID Type File Address Perm File Off. File Size Flags Section Name\n"},"event":"output","seq":0,"type":"event"} 1754321883.282140017 (stdio) <-- {"body":{"category":"console","output":" ------------------ ---------------------- --------------------------------------- ---- ---------- ---------- ---------- ----------------------------\n"},"event":"output","seq":0,"type":"event"} 1754321883.282150984 (stdio) <-- {"body":{"category":"console","output":" 0xfffffffffffffffd container [0x0000000000000000-0x00000000000007b8) r-- 0x00000000 0x000007b8 0x00000000 a.out.PT_LOAD[0]\n"},"event":"output","seq":0,"type":"event"} 1754321883.282160997 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000001 regular [0x00000000000002a8-0x00000000000002c3) r-- 0x000002a8 0x0000001b 0x00000002 a.out.PT_LOAD[0]..interp\n"},"event":"output","seq":0,"type":"event"} 1754321883.282171011 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000002 regular [0x00000000000002c4-0x00000000000002e4) r-- 0x000002c4 0x00000020 0x00000002 a.out.PT_LOAD[0]..note.ABI-tag\n"},"event":"output","seq":0,"type":"event"} 1754321883.282181025 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000003 regular [0x00000000000002e4-0x0000000000000308) r-- 0x000002e4 0x00000024 0x00000002 a.out.PT_LOAD[0]..note.gnu.build-id\n"},"event":"output","seq":0,"type":"event"} 1754321883.282191038 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000004 elf-dynamic-symbols [0x0000000000000308-0x00000000000003f8) r-- 0x00000308 0x000000f0 0x00000002 a.out.PT_LOAD[0]..dynsym\n"},"event":"output","seq":0,"type":"event"} 1754321883.282201052 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000005 regular [0x00000000000003f8-0x000000000000040c) r-- 0x000003f8 0x00000014 0x00000002 a.out.PT_LOAD[0]..gnu.version\n"},"event":"output","seq":0,"type":"event"} 1754321883.282212019 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000006 regular [0x000000000000040c-0x000000000000043c) r-- 0x0000040c 0x00000030 0x00000002 a.out.PT_LOAD[0]..gnu.version_r\n"},"event":"output","seq":0,"type":"event"} 1754321883.282222033 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000007 regular [0x0000000000000440-0x000000000000045c) r-- 0x00000440 0x0000001c 0x00000002 a.out.PT_LOAD[0]..gnu.hash\n"},"event":"output","seq":0,"type":"event"} 1754321883.282232046 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000008 regular [0x000000000000045c-0x00000000000004fe) r-- 0x0000045c 0x000000a2 0x00000002 a.out.PT_LOAD[0]..dynstr\n"},"event":"output","seq":0,"type":"event"} 1754321883.282242060 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000009 elf-relocation-entries [0x0000000000000500-0x00000000000005c0) r-- 0x00000500 0x000000c0 0x00000002 a.out.PT_LOAD[0]..rela.dyn\n"},"event":"output","seq":0,"type":"event"} 1754321883.282252073 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000000a elf-relocation-entries [0x00000000000005c0-0x0000000000000698) r-- 0x000005c0 0x000000d8 0x00000042 a.out.PT_LOAD[0]..rela.plt\n"},"event":"output","seq":0,"type":"event"} 1754321883.282273054 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000000b regular [0x0000000000000698-0x00000000000006c8) r-- 0x00000698 0x00000030 0x00000032 a.out.PT_LOAD[0]..rodata\n"},"event":"output","seq":0,"type":"event"} 1754321883.282284975 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000000c regular [0x00000000000006c8-0x00000000000006f4) r-- 0x000006c8 0x0000002c 0x00000002 a.out.PT_LOAD[0]..eh_frame_hdr\n"},"event":"output","seq":0,"type":"event"} 1754321883.282294989 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000000d eh-frame [0x00000000000006f8-0x00000000000007b8) r-- 0x000006f8 0x000000c0 0x00000002 a.out.PT_LOAD[0]..eh_frame\n"},"event":"output","seq":0,"type":"event"} 1754321883.282305956 (stdio) <-- {"body":{"category":"console","output":" 0xfffffffffffffffc container [0x00000000000107c0-0x0000000000010aa0) r-x 0x000007c0 0x000002e0 0x00000000 a.out.PT_LOAD[1]\n"},"event":"output","seq":0,"type":"event"} 1754321883.282315969 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000000e code [0x00000000000107c0-0x00000000000109c0) r-x 0x000007c0 0x00000200 0x00000006 a.out.PT_LOAD[1]..text\n"},"event":"output","seq":0,"type":"event"} 1754321883.282325983 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000000f code [0x00000000000109c0-0x00000000000109d8) r-x 0x000009c0 0x00000018 0x00000006 a.out.PT_LOAD[1]..init\n"},"event":"output","seq":0,"type":"event"} 1754321883.282336950 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000010 code [0x00000000000109d8-0x00000000000109ec) r-x 0x000009d8 0x00000014 0x00000006 a.out.PT_LOAD[1]..fini\n"},"event":"output","seq":0,"type":"event"} 1754321883.282346964 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000011 code [0x00000000000109f0-0x0000000000010aa0) r-x 0x000009f0 0x000000b0 0x20000006 a.out.PT_LOAD[1]..plt\n"},"event":"output","seq":0,"type":"event"} 1754321883.282356977 (stdio) <-- {"body":{"category":"console","output":" 0xfffffffffffffffb container [0x0000000000020aa0-0x0000000000021000) rw- 0x00000aa0 0x000001e8 0x00000000 a.out.PT_LOAD[2]\n"},"event":"output","seq":0,"type":"event"} 1754321883.282366991 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000012 regular [0x0000000000020aa0-0x0000000000020aa8) rw- 0x00000aa0 0x00000008 0x00000003 a.out.PT_LOAD[2]..init_array\n"},"event":"output","seq":0,"type":"event"} 1754321883.282377958 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000013 regular [0x0000000000020aa8-0x0000000000020ab0) rw- 0x00000aa8 0x00000008 0x00000003 a.out.PT_LOAD[2]..fini_array\n"},"event":"output","seq":0,"type":"event"} 1754321883.282392979 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000014 elf-dynamic-link-info [0x0000000000020ab0-0x0000000000020c60) rw- 0x00000ab0 0x000001b0 0x00000003 a.out.PT_LOAD[2]..dynamic\n"},"event":"output","seq":0,"type":"event"} 1754321883.282403946 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000015 regular [0x0000000000020c60-0x0000000000020c88) rw- 0x00000c60 0x00000028 0x00000003 a.out.PT_LOAD[2]..got\n"},"event":"output","seq":0,"type":"event"} 1754321883.282413960 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000016 zero-fill [0x0000000000020c88-0x0000000000021000) rw- 0x00000c88 0x00000000 0x00000003 a.out.PT_LOAD[2]..relro_padding\n"},"event":"output","seq":0,"type":"event"} 1754321883.282423973 (stdio) <-- {"body":{"category":"console","output":" 0xfffffffffffffffa container [0x0000000000030c88-0x0000000000030d41) rw- 0x00000c88 0x00000070 0x00000000 a.out.PT_LOAD[3]\n"},"event":"output","seq":0,"type":"event"} 1754321883.282439947 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000017 data [0x0000000000030c88-0x0000000000030c98) rw- 0x00000c88 0x00000010 0x00000003 a.out.PT_LOAD[3]..data\n"},"event":"output","seq":0,"type":"event"} 1754321883.282449961 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000018 regular [0x0000000000030c98-0x0000000000030cf8) rw- 0x00000c98 0x00000060 0x00000003 a.out.PT_LOAD[3]..got.plt\n"},"event":"output","seq":0,"type":"event"} 1754321883.282459974 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000019 zero-fill [0x0000000000030cf8-0x0000000000030d41) rw- 0x00000cf8 0x00000000 0x00000003 a.out.PT_LOAD[3]..bss\n"},"event":"output","seq":0,"type":"event"} 1754321883.282469988 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000001a regular --- 0x00000cf8 0x000000ea 0x00000030 a.out..comment\n"},"event":"output","seq":0,"type":"event"} 1754321883.282480955 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000001b dwarf-abbrev --- 0x00000de2 0x00000097 0x00000000 a.out..debug_abbrev\n"},"event":"output","seq":0,"type":"event"} 1754321883.282490969 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000001c dwarf-info --- 0x00000e79 0x000000da 0x00000000 a.out..debug_info\n"},"event":"output","seq":0,"type":"event"} 1754321883.282502890 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000001d dwarf-str-offsets --- 0x00000f53 0x00000038 0x00000000 a.out..debug_str_offsets\n"},"event":"output","seq":0,"type":"event"} 1754321883.282512903 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000001e dwarf-str --- 0x00000f8b 0x0000016b 0x00000030 a.out..debug_str\n"},"event":"output","seq":0,"type":"event"} 1754321883.282524109 (stdio) <-- {"body":{"category":"console","output":" 0x000000000000001f dwarf-addr --- 0x000010f6 0x00000038 0x00000000 a.out..debug_addr\n"},"event":"output","seq":0,"type":"event"} 1754321883.282536030 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000020 dwarf-line --- 0x0000112e 0x000000ec 0x00000000 a.out..debug_line\n"},"event":"output","seq":0,"type":"event"} 1754321883.282546043 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000021 dwarf-line-str --- 0x0000121a 0x00000109 0x00000030 a.out..debug_line_str\n"},"event":"output","seq":0,"type":"event"} 1754321883.282556057 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000022 elf-symbol-table --- 0x00001328 0x000005d0 0x00000000 a.out..symtab\n"},"event":"output","seq":0,"type":"event"} 1754321883.282567978 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000023 regular --- 0x000018f8 0x00000177 0x00000000 a.out..shstrtab\n"},"event":"output","seq":0,"type":"event"} 1754321883.282586098 (stdio) <-- {"body":{"category":"console","output":" 0x0000000000000024 regular --- 0x00001a6f 0x000001e1 0x00000000 a.out..strtab\n"},"event":"output","seq":0,"type":"event"} 1754321883.282771111 (stdio) <-- {"body":{"category":"console","output":"Running launchCommands:\n"},"event":"output","seq":0,"type":"event"} 1754321883.282795906 (stdio) <-- {"body":{"category":"console","output":"(lldb) target create \"bad/path/b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/tools/lldb-dap/launch/TestDAP_launch.test_failing_launch_commands/a.out\"\n"},"event":"output","seq":0,"type":"event"} 1754321883.282813072 (stdio) <-- {"body":{"category":"console","output":"error: 'bad/path/b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/tools/lldb-dap/launch/TestDAP_launch.test_failing_launch_commands/a.out' does not exist\n"},"event":"output","seq":0,"type":"event"} 1754321883.282836914 (stdio) <-- {"body":{"error":{"format":"Failed to run launch commands. See the Debug Console for more details.","id":3,"showUser":true}},"command":"launch","request_seq":2,"seq":0,"success":false,"type":"response"} 1754321883.282847881 (stdio) <-- {"event":"initialized","seq":0,"type":"event"} 1754321883.292226076 (stdio) --> {"command":"disconnect","type":"request","arguments":{"terminateDebuggee":true},"seq":3} 1754321883.294018030 (stdio) <-- {"body":{"$__lldb_statistics":{"commands":"{\"platform list\":1,\"settings clear\":1,\"target create\":1,\"target list\":1,\"target modules dump sections\":1,\"target modules list\":1}","memory":"{\"strings\":{\"bytesTotal\":612520,\"bytesUnused\":597812,\"bytesUsed\":14708}}","plugins":"{\"abi\":[{\"enabled\":true,\"name\":\"SysV-arm64\"},{\"enabled\":true,\"name\":\"ABIMacOSX_arm64\"},{\"enabled\":true,\"name\":\"SysV-arm\"},{\"enabled\":true,\"name\":\"macosx-arm\"},{\"enabled\":true,\"name\":\"sysv-hexagon\"},{\"enabled\":true,\"name\":\"sysv-loongarch\"},{\"enabled\":true,\"name\":\"sysv-mips\"},{\"enabled\":true,\"name\":\"sysv-mips64\"},{\"enabled\":true,\"name\":\"sysv-msp430\"},{\"enabled\":true,\"name\":\"sysv-ppc\"},{\"enabled\":true,\"name\":\"sysv-ppc64\"},{\"enabled\":true,\"name\":\"sysv-riscv\"},{\"enabled\":true,\"name\":\"sysv-s390x\"},{\"enabled\":true,\"name\":\"abi.macosx-i386\"},{\"enabled\":true,\"name\":\"sysv-i386\"},{\"enabled\":true,\"name\":\"sysv-x86_64\"},{\"enabled\":true,\"name\":\"windows-x86_64\"}],\"architecture\":[{\"enabled\":true,\"name\":\"arm\"},{\"enabled\":true,\"name\":\"mips\"},{\"enabled\":true,\"name\":\"ppc64\"},{\"enabled\":true,\"name\":\"aarch64\"}],\"disassembler\":[{\"enabled\":true,\"name\":\"llvm-mc\"}],\"dynamic-loader\":[{\"enabled\":true,\"name\":\"darwin-kernel\"},{\"enabled\":true,\"name\":\"freebsd-kernel\"},{\"enabled\":true,\"name\":\"macosx-dyld\"},{\"enabled\":true,\"name\":\"macos-dyld\"},{\"enabled\":true,\"name\":\"posix-dyld\"},{\"enabled\":true,\"name\":\"static\"},{\"enabled\":true,\"name\":\"hexagon-dyld\"},{\"enabled\":true,\"name\":\"windows-dyld\"},{\"enabled\":true,\"name\":\"wasm-dyld\"}],\"emulate-instruction\":[{\"enabled\":true,\"name\":\"arm\"},{\"enabled\":true,\"name\":\"arm64\"},{\"enabled\":true,\"name\":\"LoongArch\"},{\"enabled\":true,\"name\":\"mips32\"},{\"enabled\":true,\"name\":\"mips64\"},{\"enabled\":true,\"name\":\"ppc64\"},{\"enabled\":true,\"name\":\"riscv\"}],\"instrumentation-runtime\":[{\"enabled\":true,\"name\":\"AddressSanitizer\"},{\"enabled\":true,\"name\":\"Libsanitizers-ASan\"},{\"enabled\":true,\"name\":\"MainThreadChecker\"},{\"enabled\":true,\"name\":\"ThreadSanitizer\"},{\"enabled\":true,\"name\":\"UndefinedBehaviorSanitizer\"}],\"jit-loader\":[{\"enabled\":true,\"name\":\"gdb\"}],\"language\":[{\"enabled\":true,\"name\":\"cplusplus\"},{\"enabled\":true,\"name\":\"objc\"},{\"enabled\":true,\"name\":\"objcplusplus\"}],\"language-runtime\":[{\"enabled\":true,\"name\":\"itanium\"},{\"enabled\":true,\"name\":\"apple-objc-v2\"},{\"enabled\":true,\"name\":\"apple-objc-v1\"},{\"enabled\":true,\"name\":\"gnustep-objc-libobjc2\"}],\"memory-history\":[{\"enabled\":true,\"name\":\"asan\"}],\"object-container\":[{\"enabled\":true,\"name\":\"bsd-archive\"},{\"enabled\":true,\"name\":\"mach-o\"},{\"enabled\":true,\"name\":\"mach-o-fileset\"}],\"object-file\":[{\"enabled\":true,\"name\":\"breakpad\"},{\"enabled\":true,\"name\":\"COFF\"},{\"enabled\":true,\"name\":\"elf\"},{\"enabled\":true,\"name\":\"JSON\"},{\"enabled\":true,\"name\":\"mach-o\"},{\"enabled\":true,\"name\":\"minidump\"},{\"enabled\":true,\"name\":\"pdb\"},{\"enabled\":true,\"name\":\"pe-coff\"},{\"enabled\":true,\"name\":\"xcoff\"},{\"enabled\":true,\"name\":\"wasm\"}],\"operating-system\":[{\"enabled\":true,\"name\":\"python\"}],\"platform\":[{\"enabled\":true,\"name\":\"remote-AIX\"},{\"enabled\":true,\"name\":\"remote-linux\"},{\"enabled\":true,\"name\":\"remote-android\"},{\"enabled\":true,\"name\":\"remote-freebsd\"},{\"enabled\":true,\"name\":\"remote-gdb-server\"},{\"enabled\":true,\"name\":\"darwin\"},{\"enabled\":true,\"name\":\"remote-ios\"},{\"enabled\":true,\"name\":\"remote-macosx\"},{\"enabled\":true,\"name\":\"host\"},{\"enabled\":true,\"name\":\"remote-netbsd\"},{\"enabled\":true,\"name\":\"remote-openbsd\"},{\"enabled\":true,\"name\":\"qemu-user\"},{\"enabled\":true,\"name\":\"remote-windows\"}],\"process\":[{\"enabled\":true,\"name\":\"ScriptedProcess\"},{\"enabled\":true,\"name\":\"elf-core\"},{\"enabled\":true,\"name\":\"mach-o-core\"},{\"enabled\":true,\"name\":\"minidump\"},{\"enabled\":true,\"name\":\"wasm\"},{\"enabled\":true,\"name\":\"gdb-remote\"}],\"register-type-builder\":[{\"enabled\":true,\"name\":\"register-types-clang\"}],\"repl\":[{\"enabled\":true,\"name\":\"ClangREPL\"}],\"script-interpreter\":[{\"enabled\":true,\"name\":\"script-none\"},{\"enabled\":true,\"name\":\"script-python\"}],\"scripted-interface\":[{\"enabled\":true,\"name\":\"OperatingSystemPythonInterface\"},{\"enabled\":true,\"name\":\"ScriptedPlatformPythonInterface\"},{\"enabled\":true,\"name\":\"ScriptedProcessPythonInterface\"},{\"enabled\":true,\"name\":\"ScriptedStopHookPythonInterface\"},{\"enabled\":true,\"name\":\"ScriptedBreakpointPythonInterface\"},{\"enabled\":true,\"name\":\"ScriptedThreadPlanPythonInterface\"}],\"structured-data\":[{\"enabled\":true,\"name\":\"darwin-log\"}],\"symbol-file\":[{\"enabled\":true,\"name\":\"breakpad\"},{\"enabled\":true,\"name\":\"CTF\"},{\"enabled\":true,\"name\":\"dwarf\"},{\"enabled\":true,\"name\":\"dwarf-debugmap\"},{\"enabled\":true,\"name\":\"JSON\"},{\"enabled\":true,\"name\":\"native-pdb\"},{\"enabled\":true,\"name\":\"symtab\"}],\"symbol-locator\":[{\"enabled\":true,\"name\":\"debuginfod\"},{\"enabled\":true,\"name\":\"Default\"}],\"symbol-vendor\":[{\"enabled\":true,\"name\":\"ELF\"},{\"enabled\":true,\"name\":\"PE-COFF\"},{\"enabled\":true,\"name\":\"WASM\"}],\"system-runtime\":[{\"enabled\":true,\"name\":\"systemruntime-macosx\"}],\"trace-exporter\":[{\"enabled\":true,\"name\":\"ctf\"}],\"type-system\":[{\"enabled\":true,\"name\":\"clang\"}],\"unwind-assembly\":[{\"enabled\":true,\"name\":\"inst-emulation\"},{\"enabled\":true,\"name\":\"x86\"}]}","targets":"[{\"breakpoints\":[],\"expressionEvaluation\":{\"failures\":0,\"successes\":0},\"frameVariable\":{\"failures\":0,\"successes\":0},\"moduleIdentifiers\":[187650679689336],\"sourceMapDeduceCount\":0,\"sourceRealpathAttemptCount\":0,\"sourceRealpathCompatibleCount\":0,\"summaryProviderStatistics\":[],\"targetCreateTime\":0.00032600000000000001,\"totalBreakpointResolveTime\":0,\"totalSharedLibraryEventHitCount\":0}]","totalDebugInfoByteSize":1345,"totalDebugInfoEnabled":1,"totalDebugInfoIndexLoadedFromCache":0,"totalDebugInfoIndexSavedToCache":0,"totalDebugInfoIndexTime":0.0063720000000000001,"totalDebugInfoParseTime":7.7000000000000001e-05,"totalDwoFileCount":0,"totalLoadedDwoFileCount":0,"totalModuleCount":1,"totalModuleCountHasDebugInfo":1,"totalModuleCountWithIncompleteTypes":0,"totalModuleCountWithVariableErrors":0,"totalSymbolLocatorTime":"{\"Default\":0.00019999999999999998,\"debuginfod\":0}","totalSymbolTableIndexTime":0.00029300000000000002,"totalSymbolTableParseTime":0.00027,"totalSymbolTableStripped":0,"totalSymbolTableSymbolCount":41,"totalSymbolTablesLoaded":1,"totalSymbolTablesLoadedFromCache":0,"totalSymbolTablesSavedToCache":0}},"event":"terminated","seq":0,"type":"event"} 1754321883.294076920 (stdio) <-- {"command":"disconnect","request_seq":3,"seq":0,"success":true,"type":"response"} ``` https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8707461172181407569/+/u/test_lldb/check_lldb/stdout
https://github.com/llvm/llvm-project/pull/149876 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits