[llvm-bugs] [Bug 34175] New: test-suite/.../cjpeg & consumer-jpeg fail compilation after r310208

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 13 03:55:09 PDT 2017


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

            Bug ID: 34175
           Summary: test-suite/.../cjpeg & consumer-jpeg fail compilation
                    after r310208
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: elad2.cohen at intel.com
                CC: llvm-bugs at lists.llvm.org

The tests:
test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg
test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg

fail compilation in the buildbots:
http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux/builds/162
after r310782. (There are 3 commits in the change-list but this seems the only
one that could be related)

The failure seems to happen when compiling with "-O3 -march=broadwell". (I
tried locally and got failures also with AVX and AVX512).

test-suite reproducer and logs:
$ lnt runtest test-suite --sandbox SANDBOX --cc clang --test-suite test-suite
--only-test MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg
--use-lit lit.py --use-cmake cmake --cflags="-O3 -march=broadwell"
...
#0 0x00002b05e30ac994 PrintStackTraceSignalHandler(void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6994)
#1 0x00002b05e30acce6 SignalHandler(int)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6ce6)
#2 0x00002b05e397b100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#3 0x00002b05e57ea5f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#4 0x00002b05e57ebce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#5 0x00002b05e57e3566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#6 0x00002b05e57e3612 (/lib64/libc.so.6+0x2e612)
#7 0x00002b05e612f5db (anonymous
namespace)::DAGCombiner::visitBUILD_VECTOR(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x7b5db)
#8 0x00002b05e60ecc19 (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x38c19)
#9 0x00002b05e60e85ac (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x345ac)
#10 0x00002b05e60e72a8 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x332a8)
#11 0x00002b05e62b5f3c llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x201f3c)
#12 0x00002b05e62b446f
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x20046f)
#13 0x00002b05e62b0a06
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x1fca06)
#14 0x00002b05defbb521 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMX86CodeGen.so.6+0xb6521)
#15 0x00002b05e0d77244
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCodeGen.so.6+0x1cf244)
#16 0x00002b05e145531f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x19231f)
#17 0x00002b05e1455573 llvm::FPPassManager::runOnModule(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192573)
#18 0x00002b05e1455a75 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192a75)
#19 0x00002b05e40c78a2 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, 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> >)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x7b8a2)
#20 0x00002b05e42c96a3
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x27d6a3)
#21 0x00002b05e9bb7096 clang::ParseAST(clang::Sema&, bool, bool)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libclangParse.so.6+0x2c096)
#22 0x00002b05e4b03368 clang::FrontendAction::Execute()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0xc0368)
#23 0x00002b05e4abef41
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0x7bf41)
#24 0x00002b05e4d9165d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontendTool.so.6+0x365d)
#25 0x000000000040f017 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40f017)
#26 0x000000000040cd6d main
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40cd6d)
#27 0x00002b05e57d6b15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#28 0x000000000040a05d _start
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40a05d)
Stack dump:
0.      Program arguments:
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
jcdctmgr.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu broadwell -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-47-18/MultiSource/Benchmarks/MiBench/consumer-jpeg/CMakeFiles/consumer-jpeg.dir/jcdctmgr.c.gcno
-resource-dir
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0 -D
NDEBUG -I
/users/cohenela/test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg -I
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-47-18/MultiSource/Benchmarks/MiBench/consumer-jpeg
-internal-isystem /usr/local/include -internal-isystem
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Werror=date-time -w -fdebug-compilation-dir
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-47-18/MultiSource/Benchmarks/MiBench/consumer-jpeg
-ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o CMakeFiles/consumer-jpeg.dir/jcdctmgr.c.o -x c
/users/cohenela/test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg/jcdctmgr.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/users/cohenela/test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg/jcdctmgr.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@start_pass_fdctmgr'
...
NOEXE: test-suite ::
MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg.test (1 of 1)

$ lnt runtest test-suite --sandbox SANDBOX --cc clang --test-suite test-suite
--only-test MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg --use-lit
lit.py --use-cmake cmake --cflags="-O3 -march=broadwell"
...
#0 0x00002acb20a07994 PrintStackTraceSignalHandler(void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6994)
#1 0x00002acb20a07ce6 SignalHandler(int)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6ce6)
#2 0x00002acb212d6100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#3 0x00002acb231455f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#4 0x00002acb23146ce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#5 0x00002acb2313e566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#6 0x00002acb2313e612 (/lib64/libc.so.6+0x2e612)
#7 0x00002acb23a8a5db (anonymous
namespace)::DAGCombiner::visitBUILD_VECTOR(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x7b5db)
#8 0x00002acb23a47c19 (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x38c19)
#9 0x00002acb23a435ac (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x345ac)
#10 0x00002acb23a422a8 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x332a8)
#11 0x00002acb23c10f3c llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x201f3c)
#12 0x00002acb23c0f46f
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x20046f)
#13 0x00002acb23c0ba06
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x1fca06)
#14 0x00002acb1c916521 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMX86CodeGen.so.6+0xb6521)
#15 0x00002acb1e6d2244
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCodeGen.so.6+0x1cf244)
#16 0x00002acb1edb031f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x19231f)
#17 0x00002acb1edb0573 llvm::FPPassManager::runOnModule(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192573)
#18 0x00002acb1edb0a75 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192a75)
#19 0x00002acb21a228a2 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, 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> >)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x7b8a2)
#20 0x00002acb21c246a3
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x27d6a3)
#21 0x00002acb27512096 clang::ParseAST(clang::Sema&, bool, bool)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libclangParse.so.6+0x2c096)
#22 0x00002acb2245e368 clang::FrontendAction::Execute()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0xc0368)
#23 0x00002acb22419f41
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0x7bf41)
#24 0x00002acb226ec65d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontendTool.so.6+0x365d)
#25 0x000000000040f017 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40f017)
#26 0x000000000040cd6d main
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40cd6d)
#27 0x00002acb23131b15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#28 0x000000000040a05d _start
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40a05d)
Stack dump:
0.      Program arguments:
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
jcdctmgr.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu broadwell -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-51-13/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/CMakeFiles/cjpeg.dir/jcdctmgr.c.gcno
-resource-dir
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0 -D
NDEBUG -I
/users/cohenela/test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a -I
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-51-13/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a
-internal-isystem /usr/local/include -internal-isystem
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Werror=date-time -w -fdebug-compilation-dir
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-51-13/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a
-ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o CMakeFiles/cjpeg.dir/jcdctmgr.c.o -x c
/users/cohenela/test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/jcdctmgr.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/users/cohenela/test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/jcdctmgr.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@start_pass_fdctmgr'
...
NOEXE: test-suite :: MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg.test
(1 of 1)

-- 
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/20170813/614993fa/attachment-0001.html>


More information about the llvm-bugs mailing list