New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bitcode tests crash in Function Pass Manager #44108
Comments
Output from debug build of clang 10.0.0rc1: Starting program: /home/dim/llvm/10.0.0/build-clang/bin/clang -cc1 -triple x86_64-unknown-freebsd11.3 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name x86_halide_runtime.bc -mrelocation-model static -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -fno-use-init-array -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /home/dim/llvm/10.0.0/dist/clang+llvm-10.0.0-rc1-amd64-unknown-freebsd11/lib/clang/10.0.0 -O3 -Werror=date-time -w -std=c++11 -fdebug-compilation-dir /home/dim/llvm/10.0.0/build/Bitcode/Benchmarks/Halide/local_laplacian -ferror-limit 19 -fmessage-length 203 -fgnuc-version=4.2.1 -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o CMakeFiles/halide_local_laplacian.dir/__/common/x86_halide_runtime.bc.o -x ir /home/dim/llvm/10.0.0/llvm-test-suite/Bitcode/Benchmarks/Halide/common/x86_halide_runtime.bc Program received signal SIGABRT, Aborted. |
I think this is Bug 44896 *** This bug has been marked as a duplicate of bug llvm/llvm-bugzilla-archive#44896 *** |
mentioned in issue llvm/llvm-bugzilla-archive#44896 |
Extended Description
During test runs of 10.0.0 rc1, I could not compile the test-suite at all, as the 10.0.0 rc1 clang executable consistently crashes on all of the Bitcode source:
$ gmake
Scanning dependencies of target timeit-target
[ 0%] Building C object tools/CMakeFiles/timeit-target.dir/timeit.c.o
[ 0%] Linking C executable timeit-target
[ 0%] Built target timeit-target
Scanning dependencies of target fpcmp-target
[ 0%] Building C object tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o
[ 0%] Linking C executable fpcmp-target
[ 0%] Built target fpcmp-target
Scanning dependencies of target build-timeit
[ 0%] [TEST_SUITE_HOST_CC] Compiling host source timeit.c
[ 0%] [TEST_SUITE_HOST_CC] Linking host executable timeit
[ 0%] Built target build-timeit
Scanning dependencies of target build-HashProgramOutput.sh
[ 0%] Generating HashProgramOutput.sh
[ 0%] Built target build-HashProgramOutput.sh
Scanning dependencies of target build-fpcmp
[ 0%] [TEST_SUITE_HOST_CC] Compiling host source fpcmp.c
[ 0%] [TEST_SUITE_HOST_CC] Linking host executable fpcmp
[ 0%] Built target build-fpcmp
Scanning dependencies of target halide_local_laplacian
[ 0%] Building CXX object Bitcode/Benchmarks/Halide/local_laplacian/CMakeFiles/halide_local_laplacian.dir/driver.cpp.o
[ 0%] Building CXX object Bitcode/Benchmarks/Halide/local_laplacian/CMakeFiles/halide_local_laplacian.dir//common/x86_halide_runtime.bc.o
Stack dump:
0. Program arguments: /home/dim/llvm/10.0.0/dist/clang+llvm-10.0.0-rc1-amd64-unknown-freebsd11/bin/clang++ -cc1 -triple x86_64-unknown-freebsd11.3 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name x86_halide_runtime.bc -mrelocation-model static -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -fno-use-init-array -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /home/dim/llvm/10.0.0/dist/clang+llvm-10.0.0-rc1-amd64-unknown-freebsd11/lib/clang/10.0.0 -O3 -Werror=date-time -w -std=c++11 -fdebug-compilation-dir /home/dim/llvm/10.0.0/build/Bitcode/Benchmarks/Halide/local_laplacian -ferror-limit 19 -fmessage-length 200 -fgnuc-version=4.2.1 -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o CMakeFiles/halide_local_laplacian.dir//common/x86_halide_runtime.bc.o -x ir /home/dim/llvm/10.0.0/llvm-test-suite/Bitcode/Benchmarks/Halide/common/x86_halide_runtime.bc
#0 0x0000000003454b78 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (+0x3454b78)
#1 0x0000000003452bc8 llvm::sys::RunSignalHandlers() (clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 10.0.0 (dim@tensor.andric.com:git/home-dim.git 7fbc6358ad2b7eb9bac5260ed8e4e206929b7e7b)
Target: x86_64-unknown-freebsd11.3
Thread model: posix
InstalledDir: /home/dim/llvm/10.0.0/dist/clang+llvm-10.0.0-rc1-amd64-unknown-freebsd11/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
gmake[2]: *** [Bitcode/Benchmarks/Halide/local_laplacian/CMakeFiles/halide_local_laplacian.dir/build.make:87: Bitcode/Benchmarks/Halide/local_laplacian/CMakeFiles/halide_local_laplacian.dir/__/common/x86_halide_runtime.bc.o] Error 254
gmake[1]: *** [CMakeFiles/Makefile2:2781: Bitcode/Benchmarks/Halide/local_laplacian/CMakeFiles/halide_local_laplacian.dir/all] Error 2
gmake: *** [Makefile:130: all] Error 2
Gdb backtrace (unforunately no symbols are available in the test-release.sh builds):
Starting program: /home/dim/llvm/10.0.0/dist/clang+llvm-10.0.0-rc1-amd64-unknown-freebsd11/bin/clang++ -cc1 -triple x86_64-unknown-freebsd11.3 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name x86_halide_runtime.bc -mrelocation-model static -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -fno-use-init-array -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /home/dim/llvm/10.0.0/dist/clang+llvm-10.0.0-rc1-amd64-unknown-freebsd11/lib/clang/10.0.0 -O3 -Werror=date-time -w -std=c++11 -fdebug-compilation-dir /home/dim/llvm/10.0.0/build/Bitcode/Benchmarks/Halide/local_laplacian -ferror-limit 19 -fmessage-length 200 -fgnuc-version=4.2.1 -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o CMakeFiles/halide_local_laplacian.dir/__/common/x86_halide_runtime.bc.o -x ir /home/dim/llvm/10.0.0/llvm-test-suite/Bitcode/Benchmarks/Halide/common/x86_halide_runtime.bc
Program received signal SIGSEGV, Segmentation fault.
0x000000010000000f in ?? ()
(gdb) bt
#0 0x000000010000000f in ?? ()
#1 0x00000000028ca9c0 in llvm::AAResultsWrapperPass::runOnFunction(llvm::Function&) ()
#2 0x0000000002e8edc0 in llvm::FPPassManager::runOnFunction(llvm::Function&) ()
#3 0x0000000002e8f1d3 in llvm::FPPassManager::runOnModule(llvm::Module&) ()
#4 0x0000000002e8f6a9 in llvm::legacy::PassManagerImpl::run(llvm::Module&) ()
#5 0x00000000035de7dc in clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_deletellvm::raw_pwrite_stream >) ()
#6 0x0000000003c17e67 in clang::CodeGenAction::ExecuteAction() ()
#7 0x0000000003b7abca in clang::FrontendAction::Execute() ()
#8 0x0000000003aea761 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ()
#9 0x0000000003c12905 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) ()
#10 0x0000000001cbaf0e in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) ()
#11 0x0000000001cb8f65 in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) ()
#12 0x0000000001cb8cf4 in main ()
The text was updated successfully, but these errors were encountered: