[llvm-bugs] [Bug 27090] New: SIGSEGV compiling LLVM IR with declared intrinsic

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 27 14:10:19 PDT 2016


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

            Bug ID: 27090
           Summary: SIGSEGV compiling LLVM IR with declared intrinsic
           Product: libraries
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Bitcode Reader
          Assignee: unassignedbugs at nondot.org
          Reporter: code at nuew.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16105
  --> https://llvm.org/bugs/attachment.cgi?id=16105&action=edit
clang's crash backtrace

The following LLVM IR, compiled with `clang crash.ll`, results in a
segmentation fault.

Steps to reproduce:
1) Place this code in 'crash.ll':
    declare i64 @llvm.read_register(metadata)
    define i32 @main() {
      call i64 @llvm.read_register(metadata !"rsp")
      ret i32 0
    }

2) Compile the code with `clang crash.ll`.
3) Clang segfaults, with the attached backtrace.

Clang should either fail compilation with an error or compilation should
succeed.

Clang and llvm-libs were built on Fri 15 Jan 2016 and were downloaded
precompiled from Arch Linux's repositories.

-- 
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/20160327/6ce11093/attachment.html>


More information about the llvm-bugs mailing list