<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 - Integrated assembler crashes on unmatched .cfi_startproc"
href="https://bugs.llvm.org/show_bug.cgi?id=37655">37655</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Integrated assembler crashes on unmatched .cfi_startproc
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</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>andrey.vihrov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Assembling the following source:
.text
.cfi_startproc
with "clang -fintegrated-as -c x.s" crashes the assembler.
Output:
<unknown>:0: error: Unfinished frame!
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2b)[0x7f87c032d9cb]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm3sys17RunSignalHandlersEv+0x56)[0x7f87c032b886]
/usr/bin/../lib/libLLVM-6.0.so(+0x8739d3)[0x7f87c032b9d3]
/usr/bin/../lib/libc.so.6(+0x368f0)[0x7f87bdf718f0]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm11MCAssembler14registerSymbolERKNS_8MCSymbolEPb+0x14)[0x7f87c13d4d14]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm10MCStreamer13visitUsedExprERKNS_6MCExprE+0x51)[0x7f87c140c331]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm10MCStreamer13visitUsedExprERKNS_6MCExprE+0x51)[0x7f87c140c331]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm16MCObjectStreamer13EmitValueImplEPKNS_6MCExprEjNS_5SMLocE+0x33)[0x7f87c1403ef3]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm19MCDwarfFrameEmitter4EmitERNS_16MCObjectStreamerEPNS_12MCAsmBackendEb+0x6d4)[0x7f87c13eb944]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm16MCObjectStreamer10EmitFramesEPNS_12MCAsmBackendE+0x6b)[0x7f87c14026cb]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm13MCELFStreamer10FinishImplEv+0x41)[0x7f87c13f0f91]
/usr/bin/../lib/libLLVM-6.0.so(_ZN4llvm10MCStreamer6FinishEv+0x66)[0x7f87c140c256]
/usr/bin/../lib/libLLVM-6.0.so(+0x1990f23)[0x7f87c1448f23]
/usr/bin/clang-6.0(_Z10cc1as_mainN4llvm8ArrayRefIPKcEES2_Pv+0x2499)[0x55c954f46969]
/usr/bin/clang-6.0(main+0x2be2)[0x55c954f3d3b2]
/usr/bin/../lib/libc.so.6(__libc_start_main+0xeb)[0x7f87bdf5e06b]
/usr/bin/clang-6.0(_start+0x2a)[0x55c954f3df3a]
Stack dump:
0. Program arguments: /usr/bin/clang-6.0 -cc1as -triple
x86_64-pc-linux-gnu -filetype obj -main-file-name x.s -target-cpu x86-64
-fdebug-compilation-dir /home/andrey/download -dwarf-debug-producer clang
version 6.0.0 (tags/RELEASE_600/final) -dwarf-version=4 -mrelocation-model pic
-o x.o x.s
clang-6.0: error: unable to execute command: Segmentation fault (core dumped)
clang-6.0: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-6.0: note: diagnostic msg: PLEASE submit a bug report to and include the
crash backtrace, preprocessed source, and associated run script.
clang-6.0: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
clang --version:
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu</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>