<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - regression: clang trunk r178466 crashes building ITK ('itk::Math::FloatAlmostEqual')"
   href="http://llvm.org/bugs/show_bug.cgi?id=15639">15639</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>regression: clang trunk r178466 crashes building ITK ('itk::Math::FloatAlmostEqual')
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sean@rogue-research.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10263" name="attach_10263" title="requested files">attachment 10263</a> <a href="attachment.cgi?id=10263&action=edit" title="requested files">[details]</a></span>
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:
<<a href="http://open.cdash.org/viewBuildError.php?buildid=2862761">http://open.cdash.org/viewBuildError.php?buildid=2862761</a>>

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: 

********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>