[llvm-bugs] [Bug 25983] New: DEBUG output in InstructionCombining.cpp causing seg fault

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 31 06:17:07 PST 2015


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

            Bug ID: 25983
           Summary: DEBUG output in InstructionCombining.cpp causing seg
                    fault
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15539
  --> https://llvm.org/bugs/attachment.cgi?id=15539&action=edit
clang input

InstructionCombining is outputting a new instruction to dbgs(), without the new
instruction having been insterted into BB. The result is that an AssemblyWriter
is created with a null TheModule pointer.

A seg fault is caused by the supplied test case.

run:

clang -cc1 -triple s390x-ibm-linux-gnu -S -disable-free -main-file-name
ckd_alloc.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu z13
-target-linker-version 2.25 -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -O3 -ferror-limit 19 -fmessage-length 0 -funroll-loops
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp
-mllvm -debug -o ckd_alloc.s -x ir ckd_alloc.bc

-- 
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/20151231/10e4cddc/attachment.html>


More information about the llvm-bugs mailing list