[LLVMbugs] [Bug 19299] New: recent regression: clang asserts building ITK: "Elements of a VectorType must be a primitive type"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 1 07:20:45 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19299

            Bug ID: 19299
           Summary: recent regression: clang asserts building ITK:
                    "Elements of a VectorType must be a primitive type"
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12314
  --> http://llvm.org/bugs/attachment.cgi?id=12314&action=edit
requested files

I have some buildbots that build open source projects with my own build of
clang.  Every once in a while I update my clang build, and when I updated from
r203163 to r204925 the other day, my ITK builds started failing in release
builds (but not debug).  The error persists in r205200.

The error is shown here:
http://open.cdash.org/viewBuildError.php?buildid=3275542

It outputs:

Assertion failed: (isValidElementType(ElementType) && "Elements of a VectorType
must be a primitive type"), function get, file
/Users/builder/llvm/llvm/lib/IR/Type.cpp, line 707.
0  clang-3.5         0x0000000102d81dd8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang-3.5         0x0000000102d822d4 SignalHandler(int) + 548
2  libsystem_c.dylib 0x00007fff8af2190a _sigtramp + 26
3  libsystem_c.dylib 0x00000000000001a0 _sigtramp + 1963845808
4  clang-3.5         0x0000000102d82096 abort + 22
5  clang-3.5         0x0000000102d82071 __assert_rtn + 81
6  clang-3.5         0x0000000102acffe7 llvm::VectorType::get(llvm::Type*,
unsigned int) + 295
7  clang-3.5         0x0000000102e21b3f (anonymous
namespace)::BoUpSLP::getTreeCost() + 2447
8  clang-3.5         0x0000000102e1d3c4 (anonymous
namespace)::SLPVectorizer::runOnFunction(llvm::Function&) + 10068
9  clang-3.5         0x0000000102aba4bb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 347
10 clang-3.5         0x0000000102ae931a (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1994
11 clang-3.5         0x0000000102abad29
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1081
12 clang-3.5         0x0000000102abb13d
llvm::legacy::PassManager::run(llvm::Module&) + 13
13 clang-3.5         0x00000001033596fa
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
5770
14 clang-3.5         0x000000010346daac
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 588
15 clang-3.5         0x0000000103726034 clang::ParseAST(clang::Sema&, bool,
bool) + 516
16 clang-3.5         0x000000010346c5da clang::CodeGenAction::ExecuteAction() +
122
17 clang-3.5         0x0000000102f56506 clang::FrontendAction::Execute() + 134
18 clang-3.5         0x0000000102f2ef0d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
19 clang-3.5         0x0000000102f8a444
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4372
20 clang-3.5         0x0000000102349df1 cc1_main(char const**, char const**,
char const*, void*) + 945
21 clang-3.5         0x0000000102346ace main + 1150
22 libdyld.dylib     0x00007fff8adf77e1 start + 0
Stack dump:
0.    Program arguments: /Users/builder/llvm/llvm-rel-install/bin/clang-3.5
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name
itkTransformFactoryBase.cxx -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -gdwarf-2
-coverage-file
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.o
-resource-dir /Users/builder/llvm/llvm-rel-install/bin/../lib/clang/3.5.0
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-D _FORTIFY_SOURCE=2 -D NDEBUG -I
/Users/builder/external/ITK/Modules/ThirdParty/DoubleConversion/src/double-conversion
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/KWSys/src
-I /Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I
/Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I
/Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/core -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/VNL/src/vxl/v3p/netlib
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/VNL/src/vxl/vcl
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/VNL/src/vxl/core
-I /Users/builder/external/ITK/Modules/ThirdParty/VNLInstantiation/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/Core/Common -I
/Users/builder/external/ITK/Modules/Core/Common/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageFilterBase/include -I
/Users/builder/external/ITK/Modules/Core/ImageAdaptors/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/Netlib
-I /Users/builder/external/ITK/Modules/Numerics/Statistics/include -I
/Users/builder/external/ITK/Modules/Core/Transform/include -I
/Users/builder/external/ITK/Modules/Core/ImageFunction/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageGrid/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageCompose/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/IO/ImageBase -I
/Users/builder/external/ITK/Modules/IO/ImageBase/include -I
/Users/builder/external/ITK/Modules/Core/Mesh/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/ZLIB/src
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/MetaIO/src/MetaIO
-I /Users/builder/external/ITK/Modules/ThirdParty/MetaIO/src/MetaIO -I
/Users/builder/external/ITK/Modules/Core/SpatialObjects/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageStatistics/include -I
/Users/builder/external/ITK/Modules/Filtering/Path/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageIntensity/include -I
/Users/builder/external/ITK/Modules/Filtering/DisplacementField/include -I
/Users/builder/external/ITK/Modules/IO/TransformBase/include -O3 -Weverything
-Wno-padded -Wno-missing-noreturn -Wno-unused-macros -Wno-missing-prototypes
-Wno-sign-conversion -Wno-conversion -Wno-unreachable-code-break
-Wno-extra-semi -Wno-weak-vtables -Wno-c++98-compat-pedantic
-Wno-global-constructors -Wno-unreachable-code -Wno-documentation
-Wno-float-equal -Wno-exit-time-destructors -Wno-implicit-fallthrough
-Wno-switch-enum -Wno-covered-switch-default -Wno-missing-variable-declarations
-Wno-undef -Wno-weak-template-vtables -Wno-conditional-uninitialized
-Wno-unused-member-function -Wno-old-style-cast -Wno-over-aligned -Wall
-Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch
-Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings
-Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual
-std=c++11 -fdebug-compilation-dir
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/IO/TransformBase/src
-ferror-limit 19 -fmessage-length 0 -stack-protector 3 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.8.0 -fencode-extended-block-signature -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.o -x c++
/Users/builder/external/ITK/Modules/IO/TransformBase/src/itkTransformFactoryBase.cxx 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module
'/Users/builder/external/ITK/Modules/IO/TransformBase/src/itkTransformFactoryBase.cxx'.
4.    Running pass 'SLP Vectorizer' on function
'@_ZN3itk20ImageTransformHelperILj3ELj1ELj2EddE32TransformPhysicalPointToIndexRowERKNS_6MatrixIdLj3ELj3EEERKNS_5PointIdLj3EEES9_RS7_RNS_5IndexILj3EEERKNS_7Concept6Detail15UniqueType_boolILb0EEE'
clang-3.5: error: unable to execute command: Illegal instruction: 4
clang-3.5: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (205200)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang-3.5: 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-3.5: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.5: note: diagnostic msg:
/var/folders/_j/yk9_m1js2jq67w2sbxfgrxkr0000gn/T/itkTransformFactoryBase-daf49c.cpp
clang-3.5: note: diagnostic msg:
/var/folders/_j/yk9_m1js2jq67w2sbxfgrxkr0000gn/T/itkTransformFactoryBase-daf49c.sh
clang-3.5: note: diagnostic msg: 

********************

-- 
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/20140401/c443dc53/attachment.html>


More information about the llvm-bugs mailing list