<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Clang crashes when assembling a simple conftest assembly file"
href="https://bugs.llvm.org/show_bug.cgi?id=40126">40126</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang crashes when assembling a simple conftest assembly file
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>manojgupta@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llozano@chromium.org, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk, srhines@google.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21260" name="attach_21260" title="conftest assembly file">attachment 21260</a> <a href="attachment.cgi?id=21260&action=edit" title="conftest assembly file">[details]</a></span>
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]</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>