Skip to content

[X86] [MinGW] [SelectionDAG] clang crashes when compiling libvmaf with -march=tigerlake #119158

Closed
@Andarwinux

Description

@Andarwinux

llvm-mingw nightly

export CC=x86_64-w64-mingw32-clang
export CXX=x86_64-w64-mingw32-clang++
export CFLAGS="-O3 -march=tigerlake"
export CXXFLAGS="-O3 -march=tigerlake"
git clone https://github.com/Netflix/vmaf.git && cd vmaf
meson setup build ./libvmaf --buildtype=release -Denable_tests=false -Denable_docs=false -Denable_avx512=true -Denable_float=true -Dbuilt_in_models=true --default-library=static
ninja -C build
ninja: Entering directory `build/'
[1/8] Generating include/vcs_version.h with a custom command
[2/7] Compiling C object src/liblibvmaf_feature.a.p/feature_integer_motion.c.o
FAILED: src/liblibvmaf_feature.a.p/feature_integer_motion.c.o 
x86_64-w64-mingw32-clang -Isrc/liblibvmaf_feature.a.p -Isrc -I../libvmaf/src -Iinclude -I../libvmaf/include -I../libvmaf/src/feature -I../libvmaf/src/feature/common -I../libvmaf/src/cuda -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_GNU_SOURCE -O3 -march=tigerlake -fPIC -MD -MQ src/liblibvmaf_feature.a.p/feature_integer_motion.c.o -MF src/liblibvmaf_feature.a.p/feature_integer_motion.c.o.d -o src/liblibvmaf_feature.a.p/feature_integer_motion.c.o -c ../libvmaf/src/feature/integer_motion.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: /home/arch/workspace/toolchain/llvm-mingw/bin/clang --start-no-unused-arguments -target x86_64-w64-mingw32 --end-no-unused-arguments -Isrc/liblibvmaf_feature.a.p -Isrc -I../libvmaf/src -Iinclude -I../libvmaf/include -I../libvmaf/src/feature -I../libvmaf/src/feature/common -I../libvmaf/src/cuda -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_GNU_SOURCE -O3 -march=tigerlake -fPIC -MD -MQ src/liblibvmaf_feature.a.p/feature_integer_motion.c.o -MF src/liblibvmaf_feature.a.p/feature_integer_motion.c.o.d -o src/liblibvmaf_feature.a.p/feature_integer_motion.c.o -c ../libvmaf/src/feature/integer_motion.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../libvmaf/src/feature/integer_motion.c'.
4.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@y_convolution_8'
 #0 0x00007c84b859df1f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x99df1f)
 #1 0x00007c84b859bf4c llvm::sys::CleanupOnSignal(unsigned long) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x99bf4c)
 #2 0x00007c84b8499d08 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x899d08)
 #3 0x00007c84b7650150 (/usr/lib/libc.so.6+0x42150)
 #4 0x00007c84b909dab0 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x149dab0)
 #5 0x00007c84b90acf16 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x14acf16)
 #6 0x00007c84b9054111 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x1454111)
 #7 0x00007c84b90547e1 llvm::SelectionDAG::LegalizeTypes() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x14547e1)
 #8 0x00007c84b91ba476 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15ba476)
 #9 0x00007c84b91bd174 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15bd174)
#10 0x00007c84b91bed86 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15bed86)
#11 0x00007c84b91aab41 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15aab41)
#12 0x00007c84b8b13355 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xf13355)
#13 0x00007c84b87546e2 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb546e2)
#14 0x00007c84b8754979 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb54979)
#15 0x00007c84b8755b49 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb55b49)
#16 0x00007c84bfd93825 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x2393825)
#17 0x00007c84c02e2054 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x28e2054)
#18 0x00007c84be74848c clang::ParseAST(clang::Sema&, bool, bool) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0xd4848c)
#19 0x00007c84c02e27b5 clang::CodeGenAction::ExecuteAction() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x28e27b5)
#20 0x00007c84c0f18501 clang::FrontendAction::Execute() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3518501)
#21 0x00007c84c0e9022b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x349022b)
#22 0x00007c84c0fbce2b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x35bce2b)
#23 0x000056fc14b7feda cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0x13eda)
#24 0x000056fc14b787ad (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc7ad)
#25 0x00007c84c0a54e0d (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3054e0d)
#26 0x00007c84b849a187 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x89a187)
#27 0x00007c84c0a552ac (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x30552ac)
#28 0x00007c84c0a19304 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3019304)
#29 0x00007c84c0a1a31d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x301a31d)
#30 0x00007c84c0a25f0c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3025f0c)
#31 0x000056fc14b7cc21 clang_main(int, char**, llvm::ToolContext const&) (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0x10c21)
#32 0x000056fc14b781cb main (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc1cb)
#33 0x00007c84b763418e __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#34 0x00007c84b763424a call_init /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:128:20
#35 0x00007c84b763424a __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:347:5
#36 0x000056fc14b7822e _start (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc22e)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 20.0.0git (https://github.com/llvm/llvm-project.git cb61a5e4209beef64b0a3b621c16010c53ed323a)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: /home/arch/workspace/toolchain/llvm-mingw/bin
Configuration file: /home/arch/workspace/toolchain/llvm-mingw/bin/x86_64-w64-windows-gnu.cfg
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/integer_motion-a9a512.c
clang: note: diagnostic msg: /tmp/integer_motion-a9a512.sh
clang: note: diagnostic msg: 

********************
[3/7] Compiling C object tools/vmaf.p/y4m_input.c.o
FAILED: tools/vmaf.p/y4m_input.c.o 
x86_64-w64-mingw32-clang -Itools/vmaf.p -Itools -I../libvmaf/tools -Iinclude -I../libvmaf/include -Isrc -I../libvmaf/src -I../libvmaf/src/feature -I../libvmaf/src/feature/common -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_GNU_SOURCE -O3 -march=tigerlake -pedantic -DOC_NEW_STYLE_INCLUDES -MD -MQ tools/vmaf.p/y4m_input.c.o -MF tools/vmaf.p/y4m_input.c.o.d -o tools/vmaf.p/y4m_input.c.o -c ../libvmaf/tools/y4m_input.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: /home/arch/workspace/toolchain/llvm-mingw/bin/clang --start-no-unused-arguments -target x86_64-w64-mingw32 --end-no-unused-arguments -Itools/vmaf.p -Itools -I../libvmaf/tools -Iinclude -I../libvmaf/include -Isrc -I../libvmaf/src -I../libvmaf/src/feature -I../libvmaf/src/feature/common -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_GNU_SOURCE -O3 -march=tigerlake -pedantic -DOC_NEW_STYLE_INCLUDES -MD -MQ tools/vmaf.p/y4m_input.c.o -MF tools/vmaf.p/y4m_input.c.o.d -o tools/vmaf.p/y4m_input.c.o -c ../libvmaf/tools/y4m_input.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../libvmaf/tools/y4m_input.c'.
4.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@y4m_convert_411_422jpeg'
 #0 0x00007b6b90d9df1f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x99df1f)
 #1 0x00007b6b90d9bf4c llvm::sys::CleanupOnSignal(unsigned long) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x99bf4c)
 #2 0x00007b6b90c99d08 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x899d08)
 #3 0x00007b6b8fe50150 (/usr/lib/libc.so.6+0x42150)
 #4 0x00007b6b9189dab0 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x149dab0)
 #5 0x00007b6b918acf16 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x14acf16)
 #6 0x00007b6b91854111 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x1454111)
 #7 0x00007b6b918547e1 llvm::SelectionDAG::LegalizeTypes() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x14547e1)
 #8 0x00007b6b919ba476 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15ba476)
 #9 0x00007b6b919bd174 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15bd174)
#10 0x00007b6b919bed86 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15bed86)
#11 0x00007b6b919aab41 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15aab41)
#12 0x00007b6b91313355 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xf13355)
#13 0x00007b6b90f546e2 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb546e2)
#14 0x00007b6b90f54979 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb54979)
#15 0x00007b6b90f55b49 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb55b49)
#16 0x00007b6b98593825 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x2393825)
#17 0x00007b6b98ae2054 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x28e2054)
#18 0x00007b6b96f4848c clang::ParseAST(clang::Sema&, bool, bool) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0xd4848c)
#19 0x00007b6b98ae27b5 clang::CodeGenAction::ExecuteAction() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x28e27b5)
#20 0x00007b6b99718501 clang::FrontendAction::Execute() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3518501)
#21 0x00007b6b9969022b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x349022b)
#22 0x00007b6b997bce2b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x35bce2b)
#23 0x00005756a2d37eda cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0x13eda)
#24 0x00005756a2d307ad (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc7ad)
#25 0x00007b6b99254e0d (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3054e0d)
#26 0x00007b6b90c9a187 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x89a187)
#27 0x00007b6b992552ac (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x30552ac)
#28 0x00007b6b99219304 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3019304)
#29 0x00007b6b9921a31d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x301a31d)
#30 0x00007b6b99225f0c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3025f0c)
#31 0x00005756a2d34c21 clang_main(int, char**, llvm::ToolContext const&) (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0x10c21)
#32 0x00005756a2d301cb main (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc1cb)
#33 0x00007b6b8fe3418e __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#34 0x00007b6b8fe3424a call_init /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:128:20
#35 0x00007b6b8fe3424a __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:347:5
#36 0x00005756a2d3022e _start (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc22e)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 20.0.0git (https://github.com/llvm/llvm-project.git cb61a5e4209beef64b0a3b621c16010c53ed323a)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: /home/arch/workspace/toolchain/llvm-mingw/bin
Configuration file: /home/arch/workspace/toolchain/llvm-mingw/bin/x86_64-w64-windows-gnu.cfg
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/y4m_input-c073b5.c
clang: note: diagnostic msg: /tmp/y4m_input-c073b5.sh
clang: note: diagnostic msg: 

********************
[4/7] Compiling C object src/liblibvmaf_feature.a.p/feature_integer_adm.c.o
FAILED: src/liblibvmaf_feature.a.p/feature_integer_adm.c.o 
x86_64-w64-mingw32-clang -Isrc/liblibvmaf_feature.a.p -Isrc -I../libvmaf/src -Iinclude -I../libvmaf/include -I../libvmaf/src/feature -I../libvmaf/src/feature/common -I../libvmaf/src/cuda -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_GNU_SOURCE -O3 -march=tigerlake -fPIC -MD -MQ src/liblibvmaf_feature.a.p/feature_integer_adm.c.o -MF src/liblibvmaf_feature.a.p/feature_integer_adm.c.o.d -o src/liblibvmaf_feature.a.p/feature_integer_adm.c.o -c ../libvmaf/src/feature/integer_adm.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: /home/arch/workspace/toolchain/llvm-mingw/bin/clang --start-no-unused-arguments -target x86_64-w64-mingw32 --end-no-unused-arguments -Isrc/liblibvmaf_feature.a.p -Isrc -I../libvmaf/src -Iinclude -I../libvmaf/include -I../libvmaf/src/feature -I../libvmaf/src/feature/common -I../libvmaf/src/cuda -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_GNU_SOURCE -O3 -march=tigerlake -fPIC -MD -MQ src/liblibvmaf_feature.a.p/feature_integer_adm.c.o -MF src/liblibvmaf_feature.a.p/feature_integer_adm.c.o.d -o src/liblibvmaf_feature.a.p/feature_integer_adm.c.o -c ../libvmaf/src/feature/integer_adm.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../libvmaf/src/feature/integer_adm.c'.
4.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@integer_compute_adm'
 #0 0x00007c9c5959df1f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x99df1f)
 #1 0x00007c9c5959bf4c llvm::sys::CleanupOnSignal(unsigned long) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x99bf4c)
 #2 0x00007c9c59499d08 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x899d08)
 #3 0x00007c9c58650150 (/usr/lib/libc.so.6+0x42150)
 #4 0x00007c9c5a09dab0 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x149dab0)
 #5 0x00007c9c5a0acf16 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x14acf16)
 #6 0x00007c9c5a054111 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x1454111)
 #7 0x00007c9c5a0547e1 llvm::SelectionDAG::LegalizeTypes() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x14547e1)
 #8 0x00007c9c5a1ba476 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15ba476)
 #9 0x00007c9c5a1bd174 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15bd174)
#10 0x00007c9c5a1bed86 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15bed86)
#11 0x00007c9c5a1aab41 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x15aab41)
#12 0x00007c9c59b13355 (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xf13355)
#13 0x00007c9c597546e2 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb546e2)
#14 0x00007c9c59754979 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb54979)
#15 0x00007c9c59755b49 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0xb55b49)
#16 0x00007c9c60d93825 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x2393825)
#17 0x00007c9c612e2054 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x28e2054)
#18 0x00007c9c5f74848c clang::ParseAST(clang::Sema&, bool, bool) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0xd4848c)
#19 0x00007c9c612e27b5 clang::CodeGenAction::ExecuteAction() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x28e27b5)
#20 0x00007c9c61f18501 clang::FrontendAction::Execute() (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3518501)
#21 0x00007c9c61e9022b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x349022b)
#22 0x00007c9c61fbce2b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x35bce2b)
#23 0x00006386ed323eda cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0x13eda)
#24 0x00006386ed31c7ad (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc7ad)
#25 0x00007c9c61a54e0d (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3054e0d)
#26 0x00007c9c5949a187 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libLLVM.so.20.0git+0x89a187)
#27 0x00007c9c61a552ac (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x30552ac)
#28 0x00007c9c61a19304 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3019304)
#29 0x00007c9c61a1a31d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x301a31d)
#30 0x00007c9c61a25f0c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/arch/workspace/toolchain/llvm-mingw/bin/../lib/libclang-cpp.so.20.0git+0x3025f0c)
#31 0x00006386ed320c21 clang_main(int, char**, llvm::ToolContext const&) (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0x10c21)
#32 0x00006386ed31c1cb main (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc1cb)
#33 0x00007c9c5863418e __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#34 0x00007c9c5863424a call_init /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:128:20
#35 0x00007c9c5863424a __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:347:5
#36 0x00006386ed31c22e _start (/home/arch/workspace/toolchain/llvm-mingw/bin/clang+0xc22e)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 20.0.0git (https://github.com/llvm/llvm-project.git cb61a5e4209beef64b0a3b621c16010c53ed323a)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: /home/arch/workspace/toolchain/llvm-mingw/bin
Configuration file: /home/arch/workspace/toolchain/llvm-mingw/bin/x86_64-w64-windows-gnu.cfg
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/integer_adm-9cfbdb.c
clang: note: diagnostic msg: /tmp/integer_adm-9cfbdb.sh
clang: note: diagnostic msg: 

********************
ninja: build stopped: subcommand failed.

report.zip

Metadata

Metadata

Assignees

Labels

backend:X86crashPrefer [crash-on-valid] or [crash-on-invalid]

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions