[llvm-bugs] [Bug 38740] New: clang -g -S | llvm-mc -g asserts with Assertion failed: (Header.MCDwarfFiles.empty())

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 28 09:57:31 PDT 2018


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

            Bug ID: 38740
           Summary: clang -g -S | llvm-mc -g asserts with Assertion
                    failed: (Header.MCDwarfFiles.empty())
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: francisvm at yahoo.com
                CC: llvm-bugs at lists.llvm.org

$ cat main.c
int main(void)
{
  return 0;
}

$ ./build/bin/clang --target=x86_64-apple-darwin main.c -S -g -o - |
./build/bin/llvm-mc -g -triple=x86_64-apple-darwin
        .section        __TEXT,__text,regular,pure_instructions
Ltmp0:
<stdin>:2:2: warning: .macosx_version_min used while targeting darwin
        .macosx_version_min 10, 14
        ^
        .macosx_version_min 10, 14
        .globl  _main
        .p2align        4, 0x90
_main:
        .file   1 "<stdin>"
Ltmp1:
Lfunc_begin0:
Assertion failed: (Header.MCDwarfFiles.empty()), function resetRootFile, file
../include/llvm/MC/MCDwarf.h, line 316.
Stack dump:
0.      Program arguments: ./build/bin/llvm-mc -g -triple=x86_64-apple-darwin
0  llvm-mc                  0x000000010e0fd35c
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1  llvm-mc                  0x000000010e0fd929
PrintStackTraceSignalHandler(void*) + 25
2  llvm-mc                  0x000000010e0fa01e llvm::sys::RunSignalHandlers() +
990
3  llvm-mc                  0x000000010e0fe965 SignalHandler(int) + 485
4  libsystem_platform.dylib 0x00007fff63d91d7a _sigtramp + 26
5  libsystem_platform.dylib 0x000000011b6b38c8 _sigtramp + 3079805800
6  libsystem_c.dylib        0x00007fff63c521c9 abort + 127
7  libsystem_c.dylib        0x00007fff63c1a868 basename_r + 0
8  llvm-mc                  0x000000010df0c96d
llvm::MCDwarfLineTable::resetRootFile() + 93
9  llvm-mc                  0x000000010deead96 (anonymous
namespace)::AsmParser::parseDirectiveFile(llvm::SMLoc) + 5334
10 llvm-mc                  0x000000010dedc1ae (anonymous
namespace)::AsmParser::parseStatement((anonymous
namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 10622
11 llvm-mc                  0x000000010decf820 (anonymous
namespace)::AsmParser::Run(bool, bool) + 656
12 llvm-mc                  0x000000010d418441 AssembleInput(char const*,
llvm::Target const*, llvm::SourceMgr&, llvm::MCContext&, llvm::MCStreamer&,
llvm::MCAsmInfo&, llvm::MCSubtargetInfo&, llvm::MCInstrInfo&,
llvm::MCTargetOptions&) + 1185
13 llvm-mc                  0x000000010d413b58 main + 26104
14 libdyld.dylib            0x00007fff63b95429 start + 1
[1]    15776 done       ./build/bin/clang --target=x86_64-apple-darwin main.c
-S -g -o - |
       15777 abort      ./build/bin/llvm-mc -g -triple=x86_64-apple-darwin

-- 
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/20180828/701fefd6/attachment.html>


More information about the llvm-bugs mailing list