[llvm-bugs] [Bug 30466] New: Spec failing to build with fdo (second phase)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 20 11:46:56 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30466
Bug ID: 30466
Summary: Spec failing to build with fdo (second phase)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: piotr.padlewski at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17318
--> https://llvm.org/bugs/attachment.cgi?id=17318&action=edit
.c file
I tried running spec with fdo enabled and get many assertions like:
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:899:
void (anonymous namespace)::setProfMetadata(llvm::Module *, llvm::
Instruction *, ArrayRef<uint64_t>, uint64_t): Assertion `MaxCount > 0 && "Bad
max count"' failed.
#0 0x00000000019c90e5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x19c90e5)
#1 0x00000000019c97b6 SignalHandler(int)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x19c97b6)
#2 0x00002b711085a330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00002b7111b0cc37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00002b7111b10028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00002b7111b05bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00002b7111b05ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x0000000001765113
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1765113)
#8 0x0000000001764933 llvm::InstVisitor<(anonymous
namespace)::SelectInstVisitor, void>::visit(llvm::Function&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+ 0x1764933)
#9 0x000000000175d25a annotateAllFunctions(llvm::Module&, llvm::StringRef,
llvm::function_ref<llvm::BranchProbabilityInfo* (llvm::Function&)>,
llvm::function_ref<llvm:: BlockFrequencyInfo* (llvm::Function&)>)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x175d25a)
#10 0x000000000175f330 (anonymous
namespace)::PGOInstrumentationUseLegacyPass::runOnModule(llvm::Module&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x175f330)
#11 0x00000000015d76d5 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x15d76d5)
#12 0x0000000001b4d077 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/local/google/home/prazek/llvm-build- release/bin/clang+0x1b4d077)
#13 0x0000000002236acc
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x2236acc)
#14 0x00000000026ae015 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x26ae015)
#15 0x0000000001f0cf25 clang::FrontendAction::Execute()
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1f0cf25)
#16 0x0000000001ed4fe1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1ed4fe1)
#17 0x0000000001fa1b3f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1fa1b3f)
#18 0x00000000007c94f9 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x7c94f9)
#19 0x00000000007c78ee main
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x7c78ee)
#20 0x00002b7111af7f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#21 0x00000000007c4e92 _start
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x7c4e92)
Stack dump:
0. Program arguments:
/usr/local/google/home/prazek/llvm-build-release/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-llvm-bc -flto=thin -disable-free -main-file-name
cabac.c -mrelocation-model static -mthread-model posix -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 - momit-leaf-frame-pointer
-dwarf-column-info -debugger-tuning=gdb
-fprofile-instrument-use-path=/usr/local/google/home/prazek/branch_expr/perflab-profiles/llvm_cold.fdo/spec/2006/
int/C/464.h264ref/fdoprof.llvm-grtev4-k8/default.profdata -coverage-notes-file
/usr/local/google/home/prazek/branch_expr/spec/cpu2006/benchspec/CPU2006/464.h264ref/run/
build_base_perflab.0000/cabac.gcno -resource-dir
/usr/local/google/home/prazek/llvm-build-release/bin/../lib/clang/4.0.0 -D
SPEC_CPU -D NDEBUG -I /usr/include -D SPEC_CPU_LP64 - isysroot /
-internal-isystem //usr/local/include -internal-isystem
/usr/local/google/home/prazek/llvm-build-release/bin/../lib/clang/4.0.0/include
-internal-externc-isystem //usr/ include/x86_64-linux-gnu
-internal-externc-isystem //include -internal-externc-isystem //usr/include -O2
-Wno-error -fdebug-compilation-dir /usr/local/google/home/prazek/
branch_expr/spec/cpu2006/benchspec/CPU2006/464.h264ref/run/build_base_perflab.0000
-ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize- loops -vectorize-slp -o cabac.o -x c
cabac.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'PGOInstrumentationUsePass' on module 'cabac.c'.
#0 0x00000000019c90e5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x19c90e5)
#1 0x00000000019c97b6 SignalHandler(int)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x19c97b6)
#2 0x00002b450613e330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00002b45073f0c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00002b45073f4028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00002b45073e9bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00002b45073e9ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x0000000001765113
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1765113)
#8 0x0000000001764933 llvm::InstVisitor<(anonymous
namespace)::SelectInstVisitor, void>::visit(llvm::Function&) (clang:
/usr/local/google/home/prazek/llvm/lib/Transforms/I+ 0x1764933)
#9 0x000000000175d25a annotateAllFunctions(llvm::Module&, llvm::StringRef,
llvm::function_ref<llvm::BranchProbabilityInfo* (llvm::Function&)>,
llvm::function_ref<llvm:: BlockFrequencyInfo* (llvm::Function&)>)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x175d25a)
#10 0x000000000175f330 (anonymous
namespace)::PGOInstrumentationUseLegacyPass::runOnModule(llvm::Module&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x175f330)
#11 0x00000000015d76d5 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x15d76d5)
#12 0x0000000001b4d077 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/local/google/home/prazek/llvm-build- release/bin/clang+0x1b4d077)
#13 0x0000000002236acc
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x2236acc)
#14 0x00000000026ae015 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x26ae015)
#15 0x0000000001f0cf25 clang::FrontendAction::Execute()
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1f0cf25)
#16 0x0000000001ed4fe1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1ed4fe1)
#17 0x0000000001fa1b3f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x1fa1b3f)
#18 0x00000000007c94f9 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x7c94f9)
#19 0x00000000007c78ee main
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x7c78ee)
#20 0x00002b45073dbf45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#21 0x00000000007c4e92 _start
(/usr/local/google/home/prazek/llvm-build-release/bin/clang+0x7c4e92)
I attach the diagnostic files
--
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/20160920/8eb486ef/attachment-0001.html>
More information about the llvm-bugs
mailing list