[Lldb-commits] [PATCH] D147370: [lldb] fixing #61727 fixing incorrect variable displaying with DW_OP_div
Michael Buch via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 4 18:55:00 PDT 2023
Michael137 added a comment.
I tried the new test case on my Mac but it's now hitting an assertion:
******************** TEST 'lldb-shell :: SymbolFile/DWARF/x86/DW_OP_div-with-signed.s' FAILED ********************
Script:
--
: 'RUN: at line 2'; /Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang --target=specify-a-target-or-use-a-_host-substitution -c --target=x86_64-pc-linux -o /Users/michaelbuch/Git/lldb-build-main-no-mod
ules/tools/lldb/test/Shell/SymbolFile/DWARF/x86/Output/DW_OP_div-with-signed.s.tmp /Users/michaelbuch/Git/llvm-project/lldb/test/Shell/SymbolFile/DWARF/x86/DW_OP_div-with-signed.s
: 'RUN: at line 3'; /Users/michaelbuch/Git/lldb-build-main-no-modules/bin/lldb --no-lldbinit -S /Users/michaelbuch/Git/lldb-build-main-no-modules/tools/lldb/test/Shell/lit-lldb-init-quiet /Users/michaelbuch/Git
/lldb-build-main-no-modules/tools/lldb/test/Shell/SymbolFile/DWARF/x86/Output/DW_OP_div-with-signed.s.tmp -o "expression -T -- g" -o "exit" | /Users/michaelbuch/Git/lldb-build-main-no-modules/bin/FileCheck /Users
/michaelbuch/Git/llvm-project/lldb/test/Shell/SymbolFile/DWARF/x86/DW_OP_div-with-signed.s
--
Exit Code: 1
Command Output (stderr):
--
Assertion failed: ((!RootFile.Name.empty() || MCDwarfFiles.size() >= 1) && "No root file and no .file directives"), function emitV5FileDirTables, file MCDwarf.cpp, line 473.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang --target=specify-a-target-or-use-a-_host-substitution -c --target=x86_64-pc-linux -o /Users/michaelbuch/Git/lldb-build-main-n
o-modules/tools/lldb/test/Shell/SymbolFile/DWARF/x86/Output/DW_OP_div-with-signed.s.tmp /Users/michaelbuch/Git/llvm-project/lldb/test/Shell/SymbolFile/DWARF/x86/DW_OP_div-with-signed.s
#0 0x0000000109466660 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x104682660)
#1 0x0000000109466bf8 PrintStackTraceSignalHandler(void*) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x104682bf8)
#2 0x00000001094649d0 llvm::sys::RunSignalHandlers() (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1046809d0)
#3 0x0000000109465e10 llvm::sys::CleanupOnSignal(unsigned long) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x104681e10)
#4 0x00000001093245c8 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1045405c8)
#5 0x0000000109324a64 CrashRecoverySignalHandler(int) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x104540a64)
#6 0x000000018ddc2a24 (/usr/lib/system/libsystem_platform.dylib+0x18042ea24)
#7 0x000000018dd93c28 (/usr/lib/system/libsystem_pthread.dylib+0x1803ffc28)
#8 0x000000018dca1ae8 (/usr/lib/system/libsystem_c.dylib+0x18030dae8)
#9 0x000000018dca0e44 (/usr/lib/system/libsystem_c.dylib+0x18030ce44)
#10 0x0000000108c3ad04 llvm::MCDwarfLineTableHeader::emitV5FileDirTables(llvm::MCStreamer*, std::__1::optional<llvm::MCDwarfLineStr>&) const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x103e5
6d04)
#11 0x0000000108c39ff8 llvm::MCDwarfLineTableHeader::Emit(llvm::MCStreamer*, llvm::MCDwarfLineTableParams, llvm::ArrayRef<char>, std::__1::optional<llvm::MCDwarfLineStr>&) const (/Users/michaelbuch/Git/lldb-build
-main-no-modules/bin/clang-17+0x103e55ff8)
#12 0x0000000108c3a178 llvm::MCDwarfLineTableHeader::Emit(llvm::MCStreamer*, llvm::MCDwarfLineTableParams, std::__1::optional<llvm::MCDwarfLineStr>&) const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/c
lang-17+0x103e56178)
#13 0x0000000108c39920 llvm::MCDwarfLineTable::emitCU(llvm::MCStreamer*, llvm::MCDwarfLineTableParams, std::__1::optional<llvm::MCDwarfLineStr>&) const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang
-17+0x103e55920)
#14 0x0000000108c397b4 llvm::MCDwarfLineTable::emit(llvm::MCStreamer*, llvm::MCDwarfLineTableParams) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x103e557b4)
#15 0x0000000108c80320 llvm::MCObjectStreamer::finishImpl() (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x103e9c320)
#16 0x0000000108c528e4 llvm::MCELFStreamer::finishImpl() (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x103e6e8e4)
#17 0x0000000108cb0b88 llvm::MCStreamer::finish(llvm::SMLoc) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x103eccb88)
#18 0x0000000108d51fb4 (anonymous namespace)::AsmParser::Run(bool, bool) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x103f6dfb4)
#19 0x0000000104e15b74 ExecuteAssemblerImpl((anonymous namespace)::AssemblerInvocation&, clang::DiagnosticsEngine&) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x100031b74)
#20 0x0000000104e117c8 ExecuteAssembler((anonymous namespace)::AssemblerInvocation&, clang::DiagnosticsEngine&) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x10002d7c8)
#21 0x0000000104e10190 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x10002c190)
#22 0x0000000104deb110 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x100007110)
#23 0x0000000104e008ac clang_main(int, char**, llvm::ToolContext const&)::$_0::operator()(llvm::SmallVectorImpl<char const*>&) const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x10001c8ac)
#24 0x0000000104e00880 int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::$_0>(long, llvm::SmallVectorImpl<char const*>&) (/Users/mic
haelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x10001c880)
#25 0x000000010a6a9ac0 llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::operator()(llvm::SmallVectorImpl<char const*>&) const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1058c5
ac0)
#26 0x000000010a6a9a80 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::
$_1::operator()() const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1058c5a80)
#27 0x000000010a6a9a4c void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char
>, std::__1::allocator<char>>*, bool*) const::$_1>(long) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1058c5a4c)
#28 0x0000000109324468 llvm::function_ref<void ()>::operator()() const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x104540468)
#29 0x00000001093243ec llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1045403ec)
#30 0x000000010a6a595c clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const (
/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1058c195c)
#31 0x000000010a63d890 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x10585
9890)
#32 0x000000010a63db1c clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&, bool) const (/Users/michaelbuch/Git/lldb-b
uild-main-no-modules/bin/clang-17+0x105859b1c)
#33 0x000000010a65a0d8 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) (/Users/michaelbuch/Git/lldb-build-main-no
-modules/bin/clang-17+0x1058760d8)
#34 0x0000000104dea6dc clang_main(int, char**, llvm::ToolContext const&) (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x1000066dc)
#35 0x0000000104e28918 main (/Users/michaelbuch/Git/lldb-build-main-no-modules/bin/clang-17+0x100044918)
#36 0x000000018da3bf28
clang: error: clang integrated assembler command failed with exit code 134 (use -v to see invocation)
clang version 17.0.0 (https://github.com/Michael137/llvm-project.git 398403259a5a42624d382517f05b21f106f591b8)
Target: x86_64-pc-linux
Thread model: posix
InstalledDir: /Users/michaelbuch/Git/lldb-build-main-no-modules/bin
clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
--
********************
********************
Failed Tests (1):
lldb-shell :: SymbolFile/DWARF/x86/DW_OP_div-with-signed.s
Testing Time: 129.47s
Failed: 1
1 warning(s) in tests
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147370/new/
https://reviews.llvm.org/D147370
More information about the lldb-commits
mailing list