[llvm-bugs] [Bug 50703] New: Segfault in llvm::DIE::getUnitDie

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 13 23:33:32 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50703

            Bug ID: 50703
           Summary: Segfault in llvm::DIE::getUnitDie
           Product: libraries
           Version: 12.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: tblodt at icloud.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang-12 -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all --mrelax-relocations -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name poll.c -mrelocation-model pic -pic-level 2
-fhalf-no-semantic-interposition -mframe-pointer=all -fmath-errno
-fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64
-tune-cpu generic -fno-split-dwarf-inlining -debug-info-kind=limited
-dwarf-version=4 -debugger-tuning=gdb -sys-header-deps -D _FILE_OFFSET_BITS=64
-D LOG_HANDLER_DPRINTF=1 -D ENGINE_JIT=1 -Wall -Winvalid-pch -Wextra
-Wimplicit-fallthrough -Wtautological-constant-in-range-compare -Wno-switch
-std=gnu11 -ferror-limit 19 -stack-protector 2 -fgnuc-version=4.2.1
-fcolor-diagnostics -faddrsig -x c poll-23377e.c
1.      <eof> parser at end of file
2.      Code generation
 #0 0x00007fca2a0fa643 (/usr/bin/../lib/libLLVM-12.so+0xb48643)
 #1 0x00007fca2a0f7d46 (/usr/bin/../lib/libLLVM-12.so+0xb45d46)
 #2 0x00007fca2920cda0 __restore_rt (/usr/bin/../lib/libc.so.6+0x3cda0)
 #3 0x00007fca2aa95af0 llvm::DIE::getUnitDie() const
(/usr/bin/../lib/libLLVM-12.so+0x14e3af0)
 #4 0x00007fca2aab6f3d llvm::DwarfDebug::finishEntityDefinitions()
(/usr/bin/../lib/libLLVM-12.so+0x1504f3d)
 #5 0x00007fca2aacb456 llvm::DwarfDebug::finalizeModuleInfo()
(/usr/bin/../lib/libLLVM-12.so+0x1519456)
 #6 0x00007fca2aad3130 llvm::DwarfDebug::endModule()
(/usr/bin/../lib/libLLVM-12.so+0x1521130)
 #7 0x00007fca2aa7e026 llvm::AsmPrinter::doFinalization(llvm::Module&)
(/usr/bin/../lib/libLLVM-12.so+0x14cc026)
 #8 0x00007fca2a24b67d llvm::FPPassManager::doFinalization(llvm::Module&)
(/usr/bin/../lib/libLLVM-12.so+0xc9967d)
 #9 0x00007fca2a2582b8 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/bin/../lib/libLLVM-12.so+0xca62b8)
#10 0x00007fca310e4173 (/usr/bin/../lib/libclang-cpp.so.12+0x1898173)
#11 0x00007fca310e6035 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/bin/../lib/libclang-cpp.so.12+0x189a035)
#12 0x00007fca314635e2 (/usr/bin/../lib/libclang-cpp.so.12+0x1c175e2)
#13 0x00007fca30183659 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.12+0x937659)
#14 0x00007fca31bce249 clang::FrontendAction::Execute()
(/usr/bin/../lib/libclang-cpp.so.12+0x2382249)
#15 0x00007fca31b6554e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/../lib/libclang-cpp.so.12+0x231954e)
#16 0x00007fca31c4e929
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/../lib/libclang-cpp.so.12+0x2402929)
#17 0x000055e692e8e8de cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-12+0x128de)
#18 0x000055e692e8bee8 (/usr/bin/clang-12+0xfee8)
#19 0x000055e692e88505 main (/usr/bin/clang-12+0xc505)
#20 0x00007fca291f7b25 __libc_start_main (/usr/bin/../lib/libc.so.6+0x27b25)
#21 0x000055e692e8b86e _start (/usr/bin/clang-12+0xf86e)
poll-23377e.sh: line 4: 45430 Segmentation fault      (core dumped)
"/usr/bin/clang-12" "-cc1" "-triple" "x86_64-pc-linux-gnu" "-emit-obj"
"-mrelax-all" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier"
"-discard-value-names" "-main-file-name" "poll.c" "-mrelocation-model" "pic"
"-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=all"
"-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-munwind-tables"
"-target-cpu" "x86-64" "-tune-cpu" "generic" "-fno-split-dwarf-inlining"
"-debug-info-kind=limited" "-dwarf-version=4" "-debugger-tuning=gdb"
"-sys-header-deps" "-D" "_FILE_OFFSET_BITS=64" "-D" "LOG_HANDLER_DPRINTF=1"
"-D" "ENGINE_JIT=1" "-Wall" "-Winvalid-pch" "-Wextra" "-Wimplicit-fallthrough"
"-Wtautological-constant-in-range-compare" "-Wno-switch" "-std=gnu11"
"-ferror-limit" "19" "-stack-protector" "2" "-fgnuc-version=4.2.1"
"-fcolor-diagnostics" "-faddrsig" "-x" "c" "poll-23377e.c"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210614/6ba5342c/attachment-0001.html>


More information about the llvm-bugs mailing list