[llvm-bugs] [Bug 38190] New: -fdebug-types-section unusable on macos

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 17 05:29:15 PDT 2018


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

            Bug ID: 38190
           Summary: -fdebug-types-section unusable on macos
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: jdevlieghere at apple.com
          Reporter: labath at google.com
                CC: llvm-bugs at lists.llvm.org

labath4 ~/ll/build/opt $ bin/clang -fdebug-types-section -target
x86_64-pc-linux -x c++ - -o /dev/null -c -g <<<"struct A{}; void f(A a) { }"

labath4 ~/ll/build/opt $ bin/clang -target x86_64-apple-macosx -x c++ - -o
/dev/null -c -g <<<"struct A{}; void f(A a) { }"
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on
the command line to use the
      libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.

labath4 ~/ll/build/opt $ bin/clang -fdebug-types-section -target
x86_64-apple-macosx -x c++ - -o /dev/null -c -g <<<"struct A{}; void f(A a) {
}"
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on
the command line to use the
      libc++ standard library instead [-Wstdlibcxx-not-found]
Stack dump:
0.      Program arguments:
/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0 -cc1 -triple
x86_64-apple-macosx10.4.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name -
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -faligned-alloc-unavailable -target-cpu core2
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2
-debugger-tuning=lldb -mllvm -generate-type-units -coverage-notes-file
/dev/null.gcno -resource-dir
/usr/local/google/home/labath/ll/build/opt/lib/clang/7.0.0 -fdeprecated-macro
-fdebug-compilation-dir /usr/local/google/home/labath/ll/build/opt
-ferror-limit 19 -fmessage-length 105 -fblocks -fblocks-runtime-optional
-fencode-extended-block-signature -fregister-global-dtors-with-atexit
-fobjc-runtime=macosx-10.4.0 -fobjc-dispatch-method=non-legacy -fcxx-exceptions
-fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics
-o /dev/null -x c++ - 
1.      <eof> parser at end of file
2.      Code generation
#0 0x000000000166a994 PrintStackTraceSignalHandler(void*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x166a994)
#1 0x0000000001668ab0 llvm::sys::RunSignalHandlers()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1668ab0)
#2 0x000000000166ab42 SignalHandler(int)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x166ab42)
#3 0x00007fb27f9a50c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x0000000001438860 llvm::MCExpr::findAssociatedFragment() const
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1438860)
#5 0x0000000001c75674 llvm::AsmPrinter::emitDwarfSymbolReference(llvm::MCSymbol
const*, bool) const
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c75674)
#6 0x0000000001c99af2 llvm::DwarfUnit::emitCommonHeader(bool,
llvm::dwarf::UnitType)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c99af2)
#7 0x0000000001c99b7b llvm::DwarfTypeUnit::emitHeader(bool)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c99b7b)
#8 0x0000000001c90baa llvm::DwarfFile::emitUnit(llvm::DwarfUnit*, bool)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c90baa)
#9 0x0000000001c85410
llvm::DwarfDebug::addDwarfTypeUnitType(llvm::DwarfCompileUnit&,
llvm::StringRef, llvm::DIE&, llvm::DICompositeType const*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c85410)
#10 0x0000000001c94ef1 llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c94ef1)
#11 0x0000000001c94c2c llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType
const*, llvm::dwarf::Attribute)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c94c2c)
#12 0x0000000001cc397f
llvm::DwarfCompileUnit::applyVariableAttributes(llvm::DbgVariable const&,
llvm::DIE&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1cc397f)
#13 0x0000000001c7e33a llvm::DwarfDebug::finalizeModuleInfo()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c7e33a)
#14 0x0000000001c7e778 llvm::DwarfDebug::endModule()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c7e778)
#15 0x0000000001c6d518 llvm::AsmPrinter::doFinalization(llvm::Module&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c6d518)
#16 0x00000000012a5353 llvm::FPPassManager::doFinalization(llvm::Module&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x12a5353)
#17 0x00000000012a5774 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x12a5774)
#18 0x00000000017ddb55 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/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x17ddb55)
#19 0x0000000001ea2180
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1ea2180)
#20 0x00000000025c5e04 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x25c5e04)
#21 0x0000000001bafeaf clang::FrontendAction::Execute()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1bafeaf)
#22 0x0000000001b729f8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1b729f8)
#23 0x0000000001c3d62d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c3d62d)
#24 0x000000000087c436 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x87c436)
#25 0x000000000087ac84 main
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x87ac84)
#26 0x00007fb27e5242b1 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x202b1)
#27 0x000000000087812a _start
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x87812a)
clang-5.0: error: unable to execute command: Segmentation fault
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0 (trunk 337260) (llvm/trunk 337262)
Target: x86_64-apple-macosx
Thread model: posix
InstalledDir: /usr/local/google/home/labath/ll/build/opt/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: Error generating preprocessed source(s) -
ignoring input from stdin.
clang-5.0: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
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/20180717/1e83920d/attachment-0001.html>


More information about the llvm-bugs mailing list