[llvm-bugs] [Bug 37655] New: Integrated assembler crashes on unmatched .cfi_startproc

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 1 12:58:09 PDT 2018


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

            Bug ID: 37655
           Summary: Integrated assembler crashes on unmatched
                    .cfi_startproc
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andrey.vihrov at gmail.com
                CC: llvm-bugs at lists.llvm.org

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

-- 
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/20180601/09a9bd90/attachment.html>


More information about the llvm-bugs mailing list