[LLVMbugs] [Bug 9395] New: open source project ITK, when built with clang, has many failing unit tests

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 3 13:24:59 PST 2011


           Summary: open source project ITK, when built with clang, has
                    many failing unit tests
           Product: new-bugs
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu

The cross platform open source C++ project ITK is now buildable by clang--
after recent changes to both clang and ITK. Everything now builds and links. 
But about half of the unit tests crash when run.

I suspect a clang bug because ITK has very rigorous testing and this problem
occurs nowhere else (gcc, icc, Visual Studio, etc.) It is compiled nightly by
many OS/compiler combinations, and results are gathered on a dashboard:


The backtrace always shows one or more threads in _Unwind_Resume_or_Rethrow,
and one of those threads is the one that's crashed. ex:

Thread 3 Crashed:
0   libSystem.B.dylib                 0x00007fff84fab35a unwind_phase2_forced +
1   libSystem.B.dylib                 0x00007fff84edec4d _Unwind_Resume + 61
2   libSystem.B.dylib                 0x00007fff84ee2aab
_Unwind_Resume_or_Rethrow + 27
3   IOCxxTests                        0x000000010015ae59
itk::ImageSource<itk::Image<unsigned char, 3u> >::ThreaderCallback(void*) + 345
4   IOCxxTests                        0x0000000100f5ed14
itk::MultiThreader::SingleMethodProxy(void*) + 36
5   libSystem.B.dylib                 0x00007fff84ea94f6 _pthread_start + 331
6   libSystem.B.dylib                 0x00007fff84ea93a9 thread_start + 13

I brought this up on cfe-dev, and John McCall says 'it is probably at least
related to PR8098, if not necessarily a dupe.'

To repro, you need to build ITK. For which you need git and CMake.  Basically:

git clone git://itk.org/ITK.git
cd ITK
git submodule update --init
cd ..
mkdir ITK-bin
cd ITK-bin
cmake ../ITK
ctest -R .

Then it will start running tests and soon enough one will crash.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list