[llvm-bugs] [Bug 25479] New: Polly in trunk r 252441: crash compiling ffmpeg - Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file .../lib/IR/Instructions.cpp, line 2660.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 10 13:53:31 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25479
Bug ID: 25479
Summary: Polly in trunk r 252441: crash compiling ffmpeg -
Assertion failed: (castIsValid(op, S, Ty) && "Invalid
cast!"), function Create, file
.../lib/IR/Instructions.cpp, line 2660.
Product: Projects
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Polly
Assignee: polly-dev at googlegroups.com
Reporter: jeremyhu at apple.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15260
--> https://llvm.org/bugs/attachment.cgi?id=15260&action=edit
iirfilter-cd1452.c.bz2
recent llvm trunk crashes when building recent ffmpeg trunk using polly (i386
only).
Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create,
file
/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_llvm-3.8/llvm-3.8/work/trunk/lib/IR/Instructions.cpp,
line 2660.
0 libLLVM-3.8svn.dylib 0x0000000106adc9b8
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1 libLLVM-3.8svn.dylib 0x0000000106adc32f llvm::sys::RunSignalHandlers() +
44
2 libLLVM-3.8svn.dylib 0x0000000106adcec1 SignalHandler(int) + 164
3 libsystem_platform.dylib 0x00007fff912985aa _sigtramp + 26
4 libsystem_platform.dylib 000000000000000000 _sigtramp + 1859549808
5 libLLVM-3.8svn.dylib 0x0000000106adcd7c abort + 22
6 libLLVM-3.8svn.dylib 0x0000000106adcd66 abort + 0
7 libLLVM-3.8svn.dylib 0x00000001062d4920
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&, llvm::Instruction*) + 696
8 LLVMPolly.dylib 0x00000001088eb4c8 llvm::IRBuilder<true,
llvm::ConstantFolder, polly::PollyBuilderInserter<true>
>::CreateCast(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&) + 88
9 LLVMPolly.dylib 0x00000001088fdbb7
IslNodeBuilder::preloadUnconditionally(isl_set*, isl_ast_build*, llvm::Type*) +
121
10 LLVMPolly.dylib 0x00000001088fdf65
IslNodeBuilder::preloadInvariantLoad(polly::MemoryAccess const&, isl_set*) +
929
11 LLVMPolly.dylib 0x00000001088fd45b
IslNodeBuilder::preloadInvariantEquivClass(std::__1::tuple<llvm::SCEV const*,
std::__1::forward_list<polly::MemoryAccess*,
std::__1::allocator<polly::MemoryAccess*> >, isl_set*> const&) + 383
12 LLVMPolly.dylib 0x00000001088fe1e8
IslNodeBuilder::preloadInvariantLoads() + 168
13 LLVMPolly.dylib 0x00000001088f0db5 (anonymous
namespace)::CodeGeneration::runOnScop(polly::Scop&) + 513
14 LLVMPolly.dylib 0x00000001088e40cd
polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 47
15 libLLVM-3.8svn.dylib 0x0000000105f139c3
llvm::RGPassManager::runOnFunction(llvm::Function&) + 749
16 libLLVM-3.8svn.dylib 0x00000001062ea99e
llvm::FPPassManager::runOnFunction(llvm::Function&) + 286
17 libLLVM-3.8svn.dylib 0x00000001062eab3b
llvm::FPPassManager::runOnModule(llvm::Module&) + 41
18 libLLVM-3.8svn.dylib 0x00000001062eae80
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 630
19 clang 0x00000001042823bf
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 6731
20 clang 0x00000001043b4f0d
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 571
21 clang 0x000000010444516f clang::ParseAST(clang::Sema&,
bool, bool) + 490
22 clang 0x00000001043b41da
clang::CodeGenAction::ExecuteAction() + 566
23 clang 0x0000000104119787 clang::FrontendAction::Execute()
+ 75
24 clang 0x00000001040eca6b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 757
25 clang 0x00000001040c00a4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3804
26 clang 0x00000001040b7ce8 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1320
27 clang 0x00000001040be75c main + 8651
28 libdyld.dylib 0x00007fff990b85fd start + 1
29 libdyld.dylib 0x000000000000006b start + 1727298159
Stack dump:
0. Program arguments: /opt/local/libexec/llvm-3.8/bin/clang -cc1 -triple
i386-apple-macosx10.9.0 -emit-obj -disable-free -main-file-name iirfilter.c
-mrelocation-model dynamic-no-pic -mthread-model posix -fno-signed-zeros
-masm-verbose -target-cpu yonah -target-linker-version 253.3 -dwarf-column-info
-debug-info-kind=standalone -dwarf-version=2 -coverage-file
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/build/libavcodec/iirfilter.o
-resource-dir /opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0
-dependency-file libavcodec/iirfilter.d -MT libavcodec/iirfilter.o -I . -I
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/src/ -D
_ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D ZLIB_CONST -D
HAVE_AV_CONFIG_H -D _GNU_SOURCE=1 -D _THREAD_SAFE -I /opt/local/include/SDL -I
/opt/local/include -I /opt/local/include -I /opt/local/include -I
/opt/local/include -O3 -Wno-deprecated -Wno-unused
-Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith
-Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes
-Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses
-Wno-switch -Wno-format-zero-length -Wno-pointer-sign
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -std=c99 -fconst-strings -fdebug-compilation-dir
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/build -ferror-limit
19 -fmessage-length 0 -pthread -stack-protector 1 -fblocks
-fobjc-runtime=macosx-fragile-10.9.0 -fobjc-subscripting-legacy-runtime
-fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -load
/opt/local/libexec/llvm-3.8/lib/LLVMPolly.dylib -mllvm -polly -o
libavcodec/iirfilter.o -x c
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/src/libavcodec/iirfilter.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Function Pass Manager' on module
'/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/src/libavcodec/iirfilter.c'.
4. Running pass 'Region Pass Manager' on function '@butterworth_init_coeffs'
5. Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block
'%for.cond.32.preheader'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (trunk 252441)
Target: i386-apple-darwin13.4.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
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:
/var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T/iirfilter-cd1452.c
clang: note: diagnostic msg:
/var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T/iirfilter-cd1452.sh
clang: note: diagnostic msg:
********************
make: *** [libavcodec/iirfilter.o] Error 254
--
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/20151110/49e95cba/attachment.html>
More information about the llvm-bugs
mailing list