<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - crash due to -value-tracking-dom-conditions" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24240&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=1TxwfjWUbEjagr0aBSrzukbO-oSsf_tLgACjPxVbSlk&s=WPMinSYndW8HnD7aVXjHcqsTYd5WBjMN_GH0DlWHVgQ&e=">24240</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>crash due to -value-tracking-dom-conditions
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>regehr@cs.utah.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>regehr@higgs:~/test/reduce_crash_164773$ clang -c -O3 small.c

regehr@higgs:~/test/reduce_crash_164773$ clang -c -O3 -mllvm
-value-tracking-dom-conditions=true small.c
clang-3.8: ../lib/IR/Constants.cpp:608: static llvm::Constant
*llvm::ConstantInt::get(llvm::Type *, const llvm::APInt &): Assertion
`C->getType() == Ty->getScalarType() && "ConstantInt type doesn't match the
type implied by its value!"' failed.
#0 0x15de86a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/regehr/llvm/build/../lib/Support/Unix/Signals.inc:404:15
#1 0x15ddd86 llvm::sys::RunSignalHandlers()
/home/regehr/llvm/build/../lib/Support/Signals.cpp:35:5
#2 0x15dffb3 SignalHandler(int)
/home/regehr/llvm/build/../lib/Support/Unix/Signals.inc:201:3
#3 0x7fc4555d5340 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x7fc454788cc9 gsignal
/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7fc45478c0d8 abort /build/buildd/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7fc454781b86 __assert_fail_base
/build/buildd/eglibc-2.19/assert/assert.c:92:0
#7 0x7fc454781c32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#8 0x1212e03 (/home/regehr/llvm-install/bin/clang-3.8+0x1212e03)
#9 0x13bb218 llvm::Twine::Twine(char const*)
/home/regehr/llvm/build/../include/llvm/ADT/Twine.h:269:9
#10 0x13bb218 llvm::InstCombiner::visitICmpInst(llvm::ICmpInst&)
/home/regehr/llvm/build/../lib/Transforms/InstCombine/InstCombineCompares.cpp:2857:0
#11 0x137ec5b llvm::InstCombiner::run()
/home/regehr/llvm/build/../lib/Transforms/InstCombine/InstructionCombining.cpp:2777:31
#12 0x13806d6 combineInstructionsOverFunction(llvm::Function&,
llvm::InstCombineWorklist&, llvm::AliasAnalysis*, llvm::AssumptionCache&,
llvm::TargetLibraryInfo&, llvm::DominatorTree&, llvm::LoopInfo*)
/home/regehr/llvm/build/../lib/Transforms/InstCombine/InstructionCombining.cpp:3024:9
#13 0x1383029 (anonymous
namespace)::InstructionCombiningPass::runOnFunction(llvm::Function&)
/home/regehr/llvm/build/../lib/Transforms/InstCombine/InstructionCombining.cpp:3098:1
#14 0x12db862 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/regehr/llvm/build/../lib/IR/LegacyPassManager.cpp:1520:23
#15 0x12dba9b llvm::FPPassManager::runOnModule(llvm::Module&)
/home/regehr/llvm/build/../lib/IR/LegacyPassManager.cpp:1540:5
#16 0x12dbea5 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&)
/home/regehr/llvm/build/../lib/IR/LegacyPassManager.cpp:1596:23
#17 0x12dbea5 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/regehr/llvm/build/../lib/IR/LegacyPassManager.cpp:1698:0
#18 0x16cc0c3 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_pwrite_stream*)
/home/regehr/llvm/build/../tools/clang/lib/CodeGen/BackendUtil.cpp:652:3
#19 0x16cc0c3 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*)
/home/regehr/llvm/build/../tools/clang/lib/CodeGen/BackendUtil.cpp:668:0
#20 0x1bf1785 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/home/regehr/llvm/build/../tools/clang/lib/CodeGen/CodeGenAction.cpp:186:7
#21 0x1ee95c3 void std::swap<bool>(bool&, bool&)
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/move.h:177:7
#22 0x1ee95c3 clang::ParseAST(clang::Sema&, bool, bool)
/home/regehr/llvm/build/../tools/clang/lib/Parse/ParseAST.cpp:153:0
#23 0x197a94e clang::FrontendAction::Execute()
/home/regehr/llvm/build/../tools/clang/lib/Frontend/FrontendAction.cpp:443:7
#24 0x194b02c clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/home/regehr/llvm/build/../tools/clang/lib/Frontend/CompilerInstance.cpp:820:7
#25 0x19ee5dd clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/home/regehr/llvm/build/../tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222:18
#26 0x715b44 cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
/home/regehr/llvm/build/../tools/clang/tools/driver/cc1_main.cpp:116:13
#27 0x7146f7 ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/home/regehr/llvm/build/../tools/clang/tools/driver/driver.cpp:367:12
#28 0x7146f7 main
/home/regehr/llvm/build/../tools/clang/tools/driver/driver.cpp:430:0
#29 0x7fc454773ec5 __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:321:0
#30 0x711836 _start (/home/regehr/llvm-install/bin/clang-3.8+0x711836)
Stack dump:
0.    Program arguments: /home/regehr/llvm-install/bin/clang-3.8 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c
-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -dwarf-column-info -coverage-file
/home/regehr/test/reduce_crash_164773/small.c -resource-dir
/home/regehr/llvm-install/bin/../lib/clang/3.8.0 -internal-isystem
/usr/local/include -internal-isystem
/home/regehr/llvm-install/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-fdebug-compilation-dir /home/regehr/test/reduce_crash_164773 -ferror-limit 19
-fmessage-length 109 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-mllvm -value-tracking-dom-conditions=true -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module 'small.c'.
4.    Running pass 'Combine redundant instructions' on function '@x2'
clang-3.8: error: unable to execute command: Aborted (core dumped)
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (trunk 243039)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.8: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_bugs_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=1TxwfjWUbEjagr0aBSrzukbO-oSsf_tLgACjPxVbSlk&s=VKk3Rb0qCEIBwQbqrg_3Cz05URAEaeKD_-xUqnHHSSE&e=">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/small-63404b.c
clang-3.8: note: diagnostic msg: /tmp/small-63404b.sh
clang-3.8: note: diagnostic msg: 

********************

regehr@higgs:~/test/reduce_crash_164773$ cat small.c
int *x0;
void x1()__attribute__((noreturn));
void x2(int *x3) {
  int **x4 = &x0;
  *x4 = x3;
  x0 == 0 ?: x1();
  x3 ?: x1();
}

regehr@higgs:~/test/reduce_crash_164773$ clang -v
clang version 3.8.0 (trunk 243039)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
regehr@higgs:~/test/reduce_crash_164773$</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>