| Issue |
76591
|
| Summary |
Clang frontend crash with Polly on webrtc-audio-processing
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
ms178
|
```
[301/308] Compiling C object webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o
FAILED: webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o
clang -Iwebrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p -Iwebrtc/modules/audio_coding -I../webrtc-audio-processing/webrtc/modules/audio_coding -Iwebrtc -I../webrtc-audio-processing/webrtc -flto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu2x -O3 -O3 -march=native -mtune=native -maes -mbmi2 -mpclmul -mllvm -inline-threshold=1000 -mllvm -polly -mllvm -polly-position=early -mllvm -polly-dependences-computeout=900000000 -mllvm -polly-detect-profitability-min-per-loop-insts=40 -mllvm -polly-tiling=true -mllvm -polly-prevect-width=256 -mllvm -polly-vectorizer=stripmine -mllvm -polly-invariant-load-hoisting -mllvm -polly-loopfusion-greedy -mllvm -polly-run-inliner -mllvm -polly-run-dce -mllvm -polly-enable-delicm=true -mllvm -polly -fmerge-all-constants -mllvm -polly-parallel -fopenmp -fopenmp-version=52 -mllvm -polly-omp-backend=LLVM -mllvm -polly-num-threads=36 -mllvm -polly-scheduling=dynamic -mllvm -polly-scheduling-chunksize=1 -mllvm -extra-vectorizer-passes -mllvm -enable-cond-stores-vec -mllvm -slp-vectorize-hor-store -mllvm -enable-loopinterchange -mllvm -enable-loop-distribute -mllvm -enable-unroll-and-jam -mllvm -enable-loop-flatten -mllvm -interleave-small-loop-scalar-reduction -mllvm -unroll-runtime-multi-exit -mllvm -aggressive-ext-opt -fno-math-errno -fno-trapping-math -falign-functions=32 -funroll-loops -fno-semantic-interposition -fcf-protection=none -mharden-sls=none -fomit-frame-pointer -mprefer-vector-width=256 -flto -fwhole-program-vtables -fsplit-lto-unit -mllvm -adce-remove-loops -mllvm -enable-ext-tsp-block-placement -mllvm -enable-gvn-hoist -mllvm -enable-dfa-jump-thread -Wno-error -fprofile-use=/home/marcus/Downloads/all.profdata -fgnuc-version=6.5.0 -ffp-contract=fast -fdata-sections -ffunction-sections -fno-unique-section-names -fsplit-machine-functions -freroll-loops -D_FORTIFY_SOURCE=0 -fPIC -DNOMINMAX -pthread -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_SYMBOL_EXPORT -DNDEBUG -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_THREAD_RR -DWEBRTC_ENABLE_AVX2 -MD -MQ webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o -MF webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o.d -o webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o -c ../webrtc-audio-processing/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Iwebrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p -Iwebrtc/modules/audio_coding -I../webrtc-audio-processing/webrtc/modules/audio_coding -Iwebrtc -I../webrtc-audio-processing/webrtc -flto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu2x -O3 -O3 -march=native -mtune=native -maes -mbmi2 -mpclmul -mllvm -inline-threshold=1000 -mllvm -polly -mllvm -polly-position=early -mllvm -polly-dependences-computeout=900000000 -mllvm -polly-detect-profitability-min-per-loop-insts=40 -mllvm -polly-tiling=true -mllvm -polly-prevect-width=256 -mllvm -polly-vectorizer=stripmine -mllvm -polly-invariant-load-hoisting -mllvm -polly-loopfusion-greedy -mllvm -polly-run-inliner -mllvm -polly-run-dce -mllvm -polly-enable-delicm=true -mllvm -polly -fmerge-all-constants -mllvm -polly-parallel -fopenmp -fopenmp-version=52 -mllvm -polly-omp-backend=LLVM -mllvm -polly-num-threads=36 -mllvm -polly-scheduling=dynamic -mllvm -polly-scheduling-chunksize=1 -mllvm -extra-vectorizer-passes -mllvm -enable-cond-stores-vec -mllvm -slp-vectorize-hor-store -mllvm -enable-loopinterchange -mllvm -enable-loop-distribute -mllvm -enable-unroll-and-jam -mllvm -enable-loop-flatten -mllvm -interleave-small-loop-scalar-reduction -mllvm -unroll-runtime-multi-exit -mllvm -aggressive-ext-opt -fno-math-errno -fno-trapping-math -falign-functions=32 -funroll-loops -fno-semantic-interposition -fcf-protection=none -mharden-sls=none -fomit-frame-pointer -mprefer-vector-width=256 -flto -fwhole-program-vtables -fsplit-lto-unit -mllvm -adce-remove-loops -mllvm -enable-ext-tsp-block-placement -mllvm -enable-gvn-hoist -mllvm -enable-dfa-jump-thread -Wno-error -fprofile-use=/home/marcus/Downloads/all.profdata -fgnuc-version=6.5.0 -ffp-contract=fast -fdata-sections -ffunction-sections -fno-unique-section-names -fsplit-machine-functions -freroll-loops -D_FORTIFY_SOURCE=0 -fPIC -DNOMINMAX -pthread -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_SYMBOL_EXPORT -DNDEBUG -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_THREAD_RR -DWEBRTC_ENABLE_AVX2 -MD -MQ webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o -MF webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o.d -o webrtc/modules/audio_coding/libwebrtc-audio-coding-1.so.3.p/codecs_isac_main_source_entropy_coding.c.o -c ../webrtc-audio-processing/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c
1. <eof> parser at end of file
2. Optimizer
#0 0x00007fdfc3464987 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/../lib/libLLVM-18git.so+0x2c64987)
#1 0x00007fdfc3464138 llvm::sys::CleanupOnSignal(unsigned long) (/usr/bin/../lib/libLLVM-18git.so+0x2c64138)
#2 0x00007fdfc33dc44b (/usr/bin/../lib/libLLVM-18git.so+0x2bdc44b)
#3 0x00007fdfc008c7d0 (/usr/bin/../lib/libc.so.6+0x28c7d0)
#4 0x00007fdfc5d84b43 polly::createLoop(llvm::Value*, llvm::Value*, llvm::Value*, llvm::IRBuilder<llvm::ConstantFolder, polly::IRInserter>&, llvm::LoopInfo&, llvm::DominatorTree&, llvm::BasicBlock*&, llvm::CmpInst::Predicate, polly::ScopAnnotator*, bool, bool, bool) (/usr/bin/../lib/libLLVM-18git.so+0x5584b43)
#5 0x00007fdfc5d633d4 polly::IslNodeBuilder::createForSequential(isl::ast_node_for, bool) (/usr/bin/../lib/libLLVM-18git.so+0x55633d4)
#6 0x00007fdfc5d668b9 polly::IslNodeBuilder::createFor(isl_ast_node*) (/usr/bin/../lib/libLLVM-18git.so+0x55668b9)
#7 0x00007fdfc5d68c99 polly::IslNodeBuilder::createBlock(isl_ast_node*) (/usr/bin/../lib/libLLVM-18git.so+0x5568c99)
#8 0x00007fdfc5d64992 polly::IslNodeBuilder::createForParallel(isl_ast_node*) (/usr/bin/../lib/libLLVM-18git.so+0x5564992)
#9 0x00007fdfc5d68c99 polly::IslNodeBuilder::createBlock(isl_ast_node*) (/usr/bin/../lib/libLLVM-18git.so+0x5568c99)
#10 0x00007fdfc5cd3351 (/usr/bin/../lib/libLLVM-18git.so+0x54d3351)
#11 0x00007fdfc5cd23ca polly::CodeGenerationPass::run(polly::Scop&, llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>&, polly::ScopStandardAnalysisResults&, polly::SPMUpdater&) (/usr/bin/../lib/libLLVM-18git.so+0x54d23ca)
#12 0x00007fdfc5cbf809 (/usr/bin/../lib/libLLVM-18git.so+0x54bf809)
#13 0x00007fdfc5d34842 llvm::PassManager<polly::Scop, llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>, polly::ScopStandardAnalysisResults&, polly::SPMUpdater&>::run(polly::Scop&, llvm::AnalysisManager<polly::Scop, polly::ScopStandardAnalysisResults&>&, polly::ScopStandardAnalysisResults&, polly::SPMUpdater&) (/usr/bin/../lib/libLLVM-18git.so+0x5534842)
#14 0x00007fdfc5cc6462 (/usr/bin/../lib/libLLVM-18git.so+0x54c6462)
#15 0x00007fdfc2c5f413 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/usr/bin/../lib/libLLVM-18git.so+0x245f413)
#16 0x00007fdfc2c5ef6d (/usr/bin/../lib/libLLVM-18git.so+0x245ef6d)
#17 0x00007fdfc2e30902 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/usr/bin/../lib/libLLVM-18git.so+0x2630902)
#18 0x00007fdfc2e305ed (/usr/bin/../lib/libLLVM-18git.so+0x26305ed)
#19 0x00007fdfc2fc4bc9 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/usr/bin/../lib/libLLVM-18git.so+0x27c4bc9)
#20 0x00007fdfc84bc39a (/usr/bin/../lib/libclang-cpp.so.18git+0x1abc39a)
#21 0x00007fdfc9dfa052 (/usr/bin/../lib/libclang-cpp.so.18git+0x33fa052)
#22 0x00007fdfca1d6e02 (/usr/bin/../lib/libclang-cpp.so.18git+0x37d6e02)
#23 0x00007fdfc7dfdad0 clang::ParseAST(clang::Sema&, bool, bool) (/usr/bin/../lib/libclang-cpp.so.18git+0x13fdad0)
#24 0x00007fdfc833a1d0 clang::FrontendAction::Execute() (/usr/bin/../lib/libclang-cpp.so.18git+0x193a1d0)
#25 0x00007fdfc833a0da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/bin/../lib/libclang-cpp.so.18git+0x193a0da)
#26 0x00007fdfcac57a12 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/bin/../lib/libclang-cpp.so.18git+0x4257a12)
#27 0x0000555f5ac0af61 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang-18+0x20af61)
#28 0x0000555f5ac0c5df (/usr/bin/clang-18+0x20c5df)
#29 0x00007fdfca890899 (/usr/bin/../lib/libclang-cpp.so.18git+0x3e90899)
#30 0x00007fdfc33dc730 (/usr/bin/../lib/libLLVM-18git.so+0x2bdc730)
#31 0x00007fdfca89070f (/usr/bin/../lib/libclang-cpp.so.18git+0x3e9070f)
#32 0x00007fdfc839f2f7 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/usr/bin/../lib/libclang-cpp.so.18git+0x199f2f7)
#33 0x00007fdfca88d2d6 (/usr/bin/../lib/libclang-cpp.so.18git+0x3e8d2d6)
#34 0x0000555f5ac0bd67 clang_main(int, char**, llvm::ToolContext const&) (/usr/bin/clang-18+0x20bd67)
#35 0x0000555f5ac0b1be main (/usr/bin/clang-18+0x20b1be)
#36 0x00007fdfc0076e3a (/usr/bin/../lib/libc.so.6+0x276e3a)
#37 0x00007fdfc0076d6c __libc_start_main (/usr/bin/../lib/libc.so.6+0x276d6c)
#38 0x0000555f5ac11121 _start (/usr/bin/clang-18+0x211121)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 18.0.0git (b6daac023a72235108bddc17a5245a9371cd6147)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/entropy_coding-26213c.c
clang: note: diagnostic msg: /tmp/entropy_coding-26213c.sh
clang: note: diagnostic msg:
********************
```
[entropy_coding-26213c.c.txt](https://github.com/llvm/llvm-project/files/13796470/entropy_coding-26213c.c.txt)
[entropy_coding-26213c.sh.txt](https://github.com/llvm/llvm-project/files/13796471/entropy_coding-26213c.sh.txt)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs