[LLVMbugs] [Bug 15639] New: regression: clang trunk r178466 crashes building ITK ('itk::Math::FloatAlmostEqual')

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 1 13:47:23 PDT 2013


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

            Bug ID: 15639
           Summary: regression: clang trunk r178466 crashes building ITK
                    ('itk::Math::FloatAlmostEqual')
           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 10263
  --> http://llvm.org/bugs/attachment.cgi?id=10263&action=edit
requested files

I have a buildbot that builds nightly ITK with a recent build of clang (that I
rebuild every few weeks).

I updated clang from r177175 to r178252 and then it started crashing.  Updated
to r178466 and it's still crashing.

My ITK nightly build log:
<http://open.cdash.org/viewBuildError.php?buildid=2862761>

Basically:

0  clang-3.3         0x0000000106b0c258 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang-3.3         0x0000000106b0c744 SignalHandler(int) + 436
2  libsystem_c.dylib 0x00007fff8327894a _sigtramp + 26
3  libsystem_c.dylib 0x00007fff59af7350 _sigtramp + 3599231520
4  clang-3.3         0x0000000106a52572
llvm::MDNode::replaceOperand(llvm::MDNodeOperand*, llvm::Value*) + 274
5  clang-3.3         0x00000001069f442a
llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 122
6  clang-3.3         0x0000000106d03626
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 1302
7  clang-3.3         0x0000000106d05994
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
740
8  clang-3.3         0x0000000106cfdd96
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
118
9  clang-3.3         0x0000000106cfda72
clang::CodeGen::CGDebugInfo::getContextDescriptor(clang::Decl const*) + 338
10 clang-3.3         0x0000000106d00e75
clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*,
llvm::DIFile) + 197
11 clang-3.3         0x0000000106d05984
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
724
12 clang-3.3         0x0000000106cfdd96
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
118
13 clang-3.3         0x0000000106d00fd2
clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*,
llvm::DIFile) + 242
14 clang-3.3         0x0000000106d05817
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
359
15 clang-3.3         0x0000000106cfdd96
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
118
16 clang-3.3         0x0000000106d0622d
clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*,
clang::QualType, llvm::DIFile) + 93
17 clang-3.3         0x0000000106d067c9
clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl,
clang::QualType, llvm::Function*, llvm::IRBuilder<false, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<false> >&) + 713
18 clang-3.3         0x0000000106d9d8a4
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 1060
19 clang-3.3         0x0000000106d9e423
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 563
20 clang-3.3         0x0000000106da7379
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 585
21 clang-3.3         0x0000000106da499c
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 220
22 clang-3.3         0x0000000106da19db
clang::CodeGen::CodeGenModule::EmitDeferred() + 27
23 clang-3.3         0x0000000106da18a1
clang::CodeGen::CodeGenModule::Release() + 17
24 clang-3.3         0x0000000106d9af2d
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 93
25 clang-3.3         0x0000000106ef6a54 clang::ParseAST(clang::Sema&, bool,
bool) + 516
26 clang-3.3         0x0000000106d9a21b clang::CodeGenAction::ExecuteAction() +
91
27 clang-3.3         0x0000000106e7d518 clang::FrontendAction::Execute() + 88
28 clang-3.3         0x0000000106e5b8cd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 861
29 clang-3.3         0x0000000106b0f127
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3623
30 clang-3.3         0x0000000106107815 cc1_main(char const**, char const**,
char const*, void*) + 773
31 clang-3.3         0x00000001061059c6 main + 6518
32 libdyld.dylib     0x00007fff8adf77e1 start + 0
Stack dump:
0.    Program arguments: /Users/builder/llvm/llvm-rel-install/bin/clang-3.3
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name itkMathTest.cxx -mrelocation-model pic
-pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-g -coverage-file
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common/test/CMakeFiles/itkMathTest.dir/itkMathTest.cxx.o
-resource-dir /Users/builder/llvm/llvm-rel-install/bin/../lib/clang/3.3
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-D _FORTIFY_SOURCE=2 -I
/Users/builder/external/ITK/Modules/ThirdParty/DoubleConversion/src/double-conversion
-I
/Users/builder/external/ITK-clang-dbg-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-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/v3p/netlib
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/vcl
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/core
-I /Users/builder/external/ITK/Modules/ThirdParty/VNLInstantiation/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common -I
/Users/builder/external/ITK/Modules/Core/Common/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/IO/ImageBase -I
/Users/builder/external/ITK/Modules/IO/ImageBase/include -I
/Users/builder/external/ITK/Modules/Core/ImageAdaptors/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageFilterBase/include -I
/Users/builder/external/ITK-clang-dbg-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/Modules/Core/Mesh/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/ZLIB/src
-I
/Users/builder/external/ITK-clang-dbg-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/IO/BMP/include -I
/Users/builder/external/ITK/Modules/IO/BioRad/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/Expat/src/expat
-I /Users/builder/external/ITK/Modules/ThirdParty/Expat/src/expat -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/OpenJPEG/src/openjpeg
-I /Users/builder/external/ITK/Modules/ThirdParty/OpenJPEG/src/openjpeg -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/GDCM -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/GDCM/src/gdcm/Source/Common
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataDictionary
-I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/Common
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/InformationObjectDefinition
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition
-I /Users/builder/external/ITK/Modules/IO/GDCM/include -I
/Users/builder/external/ITK/Modules/IO/GIPL/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/JPEG/src
-I /Users/builder/external/ITK/Modules/ThirdParty/JPEG/src -I
/Users/builder/external/ITK/Modules/IO/JPEG/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/TIFF/src
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/TIFF/src/itktiff
-I /Users/builder/external/ITK/Modules/ThirdParty/TIFF/src -I
/Users/builder/external/ITK/Modules/IO/TIFF/include -I
/Users/builder/external/ITK/Modules/IO/LSM/include -I
/Users/builder/external/ITK/Modules/IO/Meta/include -I
/Users/builder/external/ITK/Modules/ThirdParty/NIFTI/src/nifti/niftilib -I
/Users/builder/external/ITK/Modules/ThirdParty/NIFTI/src/nifti/znzlib -I
/Users/builder/external/ITK/Modules/IO/NIFTI/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/NrrdIO/src/NrrdIO
-I /Users/builder/external/ITK/Modules/ThirdParty/NrrdIO/src/NrrdIO -I
/Users/builder/external/ITK/Modules/IO/NRRD/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/PNG/src
-I /Users/builder/external/ITK/Modules/ThirdParty/PNG/src -I
/Users/builder/external/ITK/Modules/IO/PNG/include -I
/Users/builder/external/ITK/Modules/IO/Stimulate/include -I
/Users/builder/external/ITK/Modules/IO/VTK/include -I
/Users/builder/external/ITK/Modules/Core/TestKernel/include -Wall -Wextra
-Wno-unused-parameter -Wc++11-compat -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 -fconst-strings
-fdebug-compilation-dir
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common/test
-ferror-limit 19 -fmessage-length 0
-fsanitize=integer-divide-by-zero,null,object-size,return,unreachable,vla-bound
-stack-protector 2 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -backend-option -vectorize-loops -o
CMakeFiles/itkMathTest.dir/itkMathTest.cxx.o -x c++
/Users/builder/external/ITK/Modules/Core/Common/test/itkMathTest.cxx 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    /Users/builder/external/ITK/Modules/Core/Common/include/itkMath.h:258:1:
Generating code for declaration 'itk::Math::FloatAlmostEqual'
clang-3.3: error: unable to execute command: Segmentation fault: 11
clang-3.3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (178466)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
clang-3.3: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-3.3: 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.3: note: diagnostic msg:
/var/folders/fk/hnnmm2h91xl6zvz8dl4y6b8r0000gn/T/itkMathTest-9Ljx8h.cpp
clang-3.3: note: diagnostic msg:
/var/folders/fk/hnnmm2h91xl6zvz8dl4y6b8r0000gn/T/itkMathTest-9Ljx8h.sh
clang-3.3: 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/20130401/f9af2d40/attachment.html>


More information about the llvm-bugs mailing list