<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 - Crash during self-hosting llvm"
   href="https://bugs.llvm.org/show_bug.cgi?id=40993">40993</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash during self-hosting llvm
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dave@znu.io
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21575" name="attach_21575" title="The requested .sh file">attachment 21575</a> <a href="attachment.cgi?id=21575&action=edit" title="The requested .sh file">[details]</a></span>
The requested .sh file

In the last couple days, LLVM+clang stopped being able to build itself (Xeon
Phi 72xx series if it matters). The ".sh" file is attached, but I won't attach
the preprocessed X86RegisterBankInfo.cpp, since it comes from LLVM itself and
it is too big to upload to the bug server.

FAILED: lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o 
/p/llvm/bin/clang++  -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Target/X86
-I/home/dave/s/lc/llvm/lib/Target/X86 -I/usr/include/libxml2 -Iinclude
-I/home/dave/s/lc/llvm/include -Werror=switch -fvisibility-inlines-hidden
-Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O2
-DNDEBUG    -march=native -fno-vectorize -fno-slp-vectorize
-fno-tree-slp-vectorize -fno-exceptions -fno-rtti -MD -MT
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o -MF
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o.d -o
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o -c
/home/dave/s/lc/llvm/lib/Target/X86/X86RegisterBankInfo.cpp
Stack dump:
0.      Program arguments: /p/llvm/bin/clang-9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name X86RegisterBankInfo.cpp -mrelocation-model
static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu knl -target-feature +sse2
-target-feature +cx16 -target-feature +sahf -target-feature -tbm
-target-feature -avx512ifma -target-feature -sha -target-feature -gfni
-target-feature -fma4 -target-feature -vpclmulqdq -target-feature +prfchw
-target-feature +bmi2 -target-feature -cldemote -target-feature +fsgsbase
-target-feature -ptwrite -target-feature -xsavec -target-feature +popcnt
-target-feature -mpx -target-feature +aes -target-feature -avx512bitalg
-target-feature -movdiri -target-feature -xsaves -target-feature +avx512er
-target-feature -avx512vnni -target-feature -avx512vpopcntdq -target-feature
-pconfig -target-feature -clwb -target-feature +avx512f -target-feature -clzero
-target-feature -pku -target-feature +mmx -target-feature -lwp -target-feature
-rdpid -target-feature -xop -target-feature +rdseed -target-feature -waitpkg
-target-feature -movdir64b -target-feature -sse4a -target-feature -avx512bw
-target-feature -clflushopt -target-feature +xsave -target-feature -avx512vbmi2
-target-feature +64bit -target-feature -avx512vl -target-feature -invpcid
-target-feature +avx512cd -target-feature +avx -target-feature -vaes
-target-feature -rtm -target-feature +fma -target-feature +bmi -target-feature
+rdrnd -target-feature -mwaitx -target-feature +sse4.1 -target-feature +sse4.2
-target-feature +avx2 -target-feature +fxsr -target-feature -wbnoinvd
-target-feature +sse -target-feature +lzcnt -target-feature +pclmul
-target-feature +prefetchwt1 -target-feature +f16c -target-feature +ssse3
-target-feature -sgx -target-feature -shstk -target-feature +cmov
-target-feature -avx512vbmi -target-feature +movbe -target-feature +xsaveopt
-target-feature -avx512dq -target-feature +adx -target-feature +avx512pf
-target-feature +sse3 -dwarf-column-info -debugger-tuning=gdb
-momit-leaf-frame-pointer -ffunction-sections -fdata-sections
-coverage-notes-file
/tmp/_update_lc_r/lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.gcno
-resource-dir /p/llvm/lib/clang/9.0.0 -dependency-file
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o.d
-sys-header-deps -MT
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o -D
GTEST_HAS_RTTI=0 -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D
__STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I lib/Target/X86 -I
/home/dave/s/lc/llvm/lib/Target/X86 -I /usr/include/libxml2 -I include -I
/home/dave/s/lc/llvm/include -D NDEBUG -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8 -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/backward
-internal-isystem /usr/local/include -internal-isystem
/p/llvm/lib/clang/9.0.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -Werror=switch -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-long-long
-Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -pedantic
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc_r
-ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86RegisterBankInfo.cpp.o -x c++
/home/dave/s/lc/llvm/lib/Target/X86/X86RegisterBankInfo.cpp -faddrsig 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/home/dave/s/lc/llvm/lib/Target/X86/X86RegisterBankInfo.cpp'.
4.      Running pass 'Peephole Optimizations' on function
'@_ZN4llvm22X86GenRegisterBankInfo20getPartialMappingIdxERKNS_3LLTEb'
/p/llvm/bin/clang-9(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x18)[0x1d3d498]
/p/llvm/bin/clang-9(_ZN4llvm3sys17RunSignalHandlersEv+0x58)[0x1d3b9b8]
/p/llvm/bin/clang-9[0x1d3d9d8]
/lib64/libpthread.so.0(+0x13030)[0x15189f684030]
/p/llvm/bin/clang-9(_ZNK4llvm12MachineInstr25findRegisterDefOperandIdxEjbbPKNS_18TargetRegisterInfoE+0x81)[0x1632fa1]
/p/llvm/bin/clang-9(_ZNK4llvm12X86InstrInfo20optimizeCompareInstrERNS_12MachineInstrEjjiiPKNS_19MachineRegisterInfoE+0x499)[0x122f2a9]
/p/llvm/bin/clang-9[0x17c3419]
/p/llvm/bin/clang-9(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x10d)[0x162676d]
/p/llvm/bin/clang-9(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x2a7)[0x18fba47]
/p/llvm/bin/clang-9(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x33)[0x18fbcc3]
/p/llvm/bin/clang-9(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x2ec)[0x18fc09c]
/p/llvm/bin/clang-9(_ZN5clang17EmitBackendOutputERNS_17DiagnosticsEngineERKNS_19HeaderSearchOptionsERKNS_14CodeGenOptionsERKNS_13TargetOptionsERKNS_11LangOptionsERKN4llvm10DataLayoutEPNSE_6ModuleENS_13BackendActionESt10unique_ptrINSE_17raw_pwrite_streamESt14default_deleteISM_EE+0x33d4)[0x1ea2084]
/p/llvm/bin/clang-9[0x2459a50]
/p/llvm/bin/clang-9(_ZN5clang8ParseASTERNS_4SemaEbb+0x21b)[0x2e5315b]
/p/llvm/bin/clang-9(_ZN5clang14FrontendAction7ExecuteEv+0x45)[0x23ce695]
/p/llvm/bin/clang-9(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x64b)[0x235738b]
/p/llvm/bin/clang-9(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x786)[0x2455096]
/p/llvm/bin/clang-9(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x491)[0x12141f1]
/p/llvm/bin/clang-9(main+0x25c7)[0x12128a7]
/lib64/libc.so.6(__libc_start_main+0xf3)[0x15189d94a413]
/p/llvm/bin/clang-9(_start+0x2e)[0x121002e]
clang-9: error: unable to execute command: Segmentation fault
clang-9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 9.0.0 (<a href="https://git.llvm.org/git/clang.git">https://git.llvm.org/git/clang.git</a>
45032a803d969a57c2161bfd14a75da71862b84b) (<a href="https://git.llvm.org/git/llvm.git">https://git.llvm.org/git/llvm.git</a>
62fa6d90b1b60ca6fa7e5e90af1ce015655ac5c4)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /p/llvm/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-9: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg: /tmp/X86RegisterBankInfo-cee121.cpp
clang-9: note: diagnostic msg: /tmp/X86RegisterBankInfo-cee121.sh
clang-9: note: diagnostic msg: 

********************</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>