[llvm-bugs] [Bug 25186] New: ICE in llvm::BranchProbability::BranchProbability on several SPEC CPU2006 benchmarks (LTO+FDO)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 14 16:41:54 PDT 2015


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

            Bug ID: 25186
           Summary: ICE in llvm::BranchProbability::BranchProbability on
                    several SPEC CPU2006 benchmarks (LTO+FDO)
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: miyuki-llvm at miyuki.ru
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Hi!

Recent versions of Clang started to ICE on feedback stage when compiling SPEC
CPU2006 benchmarks.

This build is OK:
http://llvm.org/svn/llvm-project/compiler-rt/trunk : 249870
http://llvm.org/svn/llvm-project/cfe/trunk : 249872
http://llvm.org/svn/llvm-project/llvm/trunk : 249879

This build ICEs
http://llvm.org/svn/llvm-project/compiler-rt/trunk : 250063
http://llvm.org/svn/llvm-project/cfe/trunk : 250094
http://llvm.org/svn/llvm-project/llvm/trunk : 250089

on the following benchmarks
429.mcf
433.milc
445.gobmk
447.dealII
453.povray
456.hmmer
471.omnetpp
482.sphinx3

With similar errors (example for 445.gobmk):

1444702057.00: 0  clang-3.8       0x00000000017adbc5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1444702057.00: 1  clang-3.8       0x00000000017ace36
llvm::sys::RunSignalHandlers() + 54
1444702057.00: 2  clang-3.8       0x00000000017ad025
1444702057.00: 3  libpthread.so.0 0x00002ac6310d68d0
1444702057.00: 4  clang-3.8       0x0000000001756f8c
llvm::BranchProbability::BranchProbability(unsigned int, unsigned int) + 28
1444702057.00: 5  clang-3.8       0x000000000103e5ae
llvm::BranchProbabilityInfo::getEdgeProbability(llvm::BasicBlock const*,
llvm::BasicBlock const*) const + 46
1444702057.00: 6  clang-3.8       0x000000000167e2e8
1444702057.00: 7  clang-3.8       0x00000000016805bf
1444702057.00: 8  clang-3.8       0x00000000014840ba
llvm::FPPassManager::runOnFunction(llvm::Function&) + 634
1444702057.00: 9  clang-3.8       0x0000000001ebacdb
1444702057.00: 10 clang-3.8       0x0000000001484878
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1112
1444702057.00: 11 clang-3.8       0x00000000018ba8c1
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 3265
1444702057.00: 12 clang-3.8       0x0000000001db0f08
1444702057.00: 13 clang-3.8       0x000000000203750d
clang::ParseAST(clang::Sema&, bool, bool) + 845
1444702057.00: 14 clang-3.8       0x0000000001b4f4c6
clang::FrontendAction::Execute() + 262
1444702057.01: 15 clang-3.8       0x0000000001b2e069
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 297
1444702057.01: 16 clang-3.8       0x0000000001bcb433
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1939
1444702057.01: 17 clang-3.8       0x0000000000867a20
cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2576
1444702057.01: 18 clang-3.8       0x0000000000828744 main + 5844
1444702057.01: 19 libc.so.6       0x00002ac631d42b45 __libc_start_main + 245
1444702057.01: 20 clang-3.8       0x0000000000865674
1444702057.01: Stack dump:
1444702057.01: 0.    Program arguments: /opt/clang-trunk/bin/clang-3.8 -cc1
-triple x86_64-unknown-linux-gnu -flto -emit-llvm-bc -disable-free
-disable-llvm-verifier -main-file-name combination.c -mrelocation-model static
-mthread-model posix -menable-no-infs -menable-no-nans -menable-unsafe-fp-math
-fno-signed-zeros -freciprocal-math -ffp-contract=fast -ffast-math
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu haswell -target-feature -sse4a -target-feature -avx512bw
-target-feature +cx16 -target-feature -tbm -target-feature +xsave
-target-feature -fma4 -target-feature -avx512vl -target-feature -prfchw
-target-feature +bmi2 -target-feature -adx -target-feature -xsavec
-target-feature +fsgsbase -target-feature +avx -target-feature -avx512cd
-target-feature -avx512pf -target-feature -rtm -target-feature +popcnt
-target-feature +fma -target-feature +bmi -target-feature +aes -target-feature
+rdrnd -target-feature -xsaves -target-feature +sse4.1 -target-feature +sse4.2
-target-feature +avx2 -target-feature -avx512er -target-feature +sse
-target-feature +lzcnt -target-feature +pclmul -target-feature -avx512f
-target-feature +f16c -target-feature +ssse3 -target-feature +mmx
-target-feature +cmov -target-feature -xop -target-feature -rdseed
-target-feature +movbe -target-feature -hle -target-feature +xsaveopt
-target-feature -sha -target-feature +sse2 -target-feature +sse3
-target-feature -avx512dq -momit-leaf-frame-pointer -dwarf-column-info
-fprofile-instr-use=default.profdata -coverage-file
/home/jenkins/workspace/build-and-run-spec-clang/cpu2006/benchspec/CPU2006/445.gobmk/build/build_peak_clang-trunk-64bit.0000/engine/combination.o
-resource-dir /opt/clang-trunk/bin/../lib/clang/3.8.0 -D SPEC_CPU -D NDEBUG -D
HAVE_CONFIG_H -I . -I .. -I ../include -I ./include -internal-isystem
/usr/local/include -internal-isystem
/opt/clang-trunk/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 -w -fdebug-compilation-dir
/home/jenkins/workspace/build-and-run-spec-clang/cpu2006/benchspec/CPU2006/445.gobmk/build/build_peak_clang-trunk-64bit.0000
-ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
engine/combination.o -x c engine/combination.c 
1444702057.01: 1.    <eof> parser at end of file
1444702057.01: 2.    Per-module optimization passes
1444702057.01: 3.    Running pass 'CallGraph Pass Manager' on module
'engine/combination.c'.
1444702057.01: 4.    Running pass 'Jump Threading' on function
'@atari_atari_find_defense_moves'
1444702057.01: clang-3.8: error: unable to execute command: Floating point
exception
1444702057.01: clang-3.8: error: clang frontend command failed due to signal
(use -v to see invocation)
1444702057.01: clang version 3.8.0 (trunk 250094)
1444702057.01: Target: x86_64-unknown-linux-gnu
1444702057.01: Thread model: posix
1444702057.01: InstalledDir: /opt/clang-trunk/bin
1444702057.01: clang-3.8: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
1444702057.02: clang-3.8: note: diagnostic msg: 
1444702057.02: ********************

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

I'm not sure, if I can provide a complete reproducer (due to SPEC license
restrictions).

My next build was:
http://llvm.org/svn/llvm-project/compiler-rt/trunk : 250200
http://llvm.org/svn/llvm-project/cfe/trunk : 250203
http://llvm.org/svn/llvm-project/llvm/trunk : 250219

447.dealII and 471.omnetpp did not cause ICE any more, but the same problem
started to show up on 458.sjeng.

-- 
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/20151014/994cb92c/attachment-0001.html>


More information about the llvm-bugs mailing list