[llvm-bugs] [Bug 40126] New: Clang crashes when assembling a simple conftest assembly file

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 20 16:04:50 PST 2018


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

            Bug ID: 40126
           Summary: Clang crashes when assembling a simple conftest
                    assembly file
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: manojgupta at google.com
                CC: htmldeveloper at gmail.com, llozano at chromium.org,
                    llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk, srhines at google.com

Created attachment 21260
  --> https://bugs.llvm.org/attachment.cgi?id=21260&action=edit
conftest assembly file

Clang is crashing (hitting an assert) when processing the attached conftest
file.

$ clang -target armv7a-cros-linux-gnueabihf -O2 -pipe -march=armv7-a
-mfpu=vfpv3-d16 -mfloat-abi=hard -g -fno-exceptions -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack -c -o conftest.o conftest.s"
run.sh
bin/clang -target armv7a-cros-linux-gnueabihf -O2 -pipe -march=armv7-a
-mfpu=vfpv3-d16 -mfloat-abi=hard -g -fno-exceptions -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack -c -o conftest.o conftest.s

llvm/include/llvm/MC/MCDwarf.h:316: void
llvm::MCDwarfLineTable::resetRootFile(): Assertion
`Header.MCDwarfFiles.empty()' failed.
Stack dump:
0.      Program arguments: clang-8 -cc1as -triple armv7-cros-linux-gnueabihf
-filetype obj -main-file-name conftest.s -target-cpu generic -target-feature
-fp-only-sp -target-feature +d16 -target-feature +vfp3 -target-feature -fp16
-target-feature -vfp4 -target-feature -fp-armv8 -target-feature -neon
-target-feature -crypto -fdebug-compilation-dir build -dwarf-debug-producer
clang version 8.0.0  -debug-info-kind=limited -dwarf-version=4
-mrelocation-model static -mllvm -arm-add-build-attributes -mnoexecstack -o
conftest.o conftest.s 
clang-8(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x33)[0x55cb223d0c7e]
clang-8(+0x495fd11)[0x55cb223d0d11]
clang-8(_ZN4llvm3sys17RunSignalHandlersEv+0x7f)[0x55cb223ced29]
clang-8(+0x495f740)[0x55cb223d0740]

-- 
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/20181221/af195d68/attachment-0001.html>


More information about the llvm-bugs mailing list