[cfe-dev] ARCMT test failures

Jay Foad jay.foad at gmail.com
Wed Jun 22 01:51:52 PDT 2011


I'm seeing these failures from "make check-all" on Linux/x86_this morning:

Failing Tests (17):
    Clang :: ARCMT/alloc-with-zone.m
    Clang :: ARCMT/atautorelease-2.m
    Clang :: ARCMT/atautorelease-3.m
    Clang :: ARCMT/atautorelease.m
    Clang :: ARCMT/autoreleases.m
    Clang :: ARCMT/checking.m
    Clang :: ARCMT/cxx-checking.mm
    Clang :: ARCMT/init.m
    Clang :: ARCMT/nonobjc-to-objc-cast.m
    Clang :: ARCMT/releases-driver.m
    Clang :: ARCMT/releases.m
    Clang :: ARCMT/remove-dealloc-zerouts.m
    Clang :: ARCMT/remove-statements.m
    Clang :: ARCMT/retains.m
    Clang :: ARCMT/rewrite-block-var.m
    Clang :: ARCMT/safe-arc-assign.m
    Clang :: ARCMT/with-working-dir.m

  Expected Passes    : 8669
  Expected Failures  : 69
  Unsupported Tests  : 551
  Unexpected Failures: 17

The failures all seem to be segfaults or assertion failures in arcmt-test, e.g:

$ Release+Asserts/bin/arcmt-test --args -triple
x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fblocks -fsyntax-only
/home/jay/svn/llvm-project/cfe/trunk/test/ARCMT/rewrite-block-var.m
arcmt-test: /home/jay/svn/llvm-project/cfe/trunk/lib/ARCMigrate/../../include/clang/AST/StmtVisitor.h:45:
RetTy clang::StmtVisitorBase<Ptr, ImplClass, RetTy>::Visit(typename
Ptr<clang::Stmt>::type) [with Ptr = clang::make_ptr, ImplClass =
<unnamed>::EmptyChecker, RetTy = bool, typename Ptr<clang::Stmt>::type
= clang::Stmt*]: Assertion `0 && "Unknown binary operator!"' failed.
0  arcmt-test      0x0000000000b3702f
1  arcmt-test      0x0000000000b37b6a
2  libpthread.so.0 0x00007fa05de1fc60
3  libc.so.6       0x00007fa05d10ad05 gsignal + 53
4  libc.so.6       0x00007fa05d10eab6 abort + 390
5  libc.so.6       0x00007fa05d1037c5 __assert_fail + 245
6  arcmt-test      0x00000000004c2cf0
7  arcmt-test      0x00000000004c5382
8  arcmt-test      0x00000000004c4490
9  arcmt-test      0x00000000004d0fca
10 arcmt-test      0x00000000004ca012
11 arcmt-test      0x00000000004cbeb1
12 arcmt-test      0x00000000004c96e1
13 arcmt-test      0x00000000004cb816
14 arcmt-test      0x000000000040e25a
15 arcmt-test      0x0000000000407c98
16 arcmt-test      0x000000000040814e
17 libc.so.6       0x00007fa05d0f5eff __libc_start_main + 255
18 arcmt-test      0x00000000004057a9
Aborted

The GDB backtrace for this one is:

(gdb) bt
#0  0x00007ffff6eb8d05 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff6ebcab6 in abort () at abort.c:92
#2  0x00007ffff6eb17c5 in __assert_fail (assertion=0xbaa4d0 "0 &&
\"Unknown binary operator!\"", file=<value optimised out>, line=45,
function=<value optimised out>)
    at assert.c:81
#3  0x00000000004c2cf0 in clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::EmptyChecker, bool>::Visit(clang::Stmt*) ()
#4  0x00000000004c5382 in clang::RecursiveASTVisitor<(anonymous
namespace)::EmptyStatementsRemover>::TraverseCompoundStmt ()
#5  0x00000000004c4490 in clang::RecursiveASTVisitor<(anonymous
namespace)::EmptyStatementsRemover>::TraverseStmt(clang::Stmt*) ()
#6  0x00000000004d0fca in clang::RecursiveASTVisitor<(anonymous
namespace)::EmptyStatementsRemover>::TraverseFunctionHelper(clang::FunctionDecl*)
()
#7  0x00000000004ca012 in clang::RecursiveASTVisitor<(anonymous
namespace)::EmptyStatementsRemover>::TraverseDecl(clang::Decl*) ()
#8  0x00000000004cbeb1 in clang::RecursiveASTVisitor<(anonymous
namespace)::EmptyStatementsRemover>::TraverseDeclContextHelper(clang::DeclContext*)
()
#9  0x00000000004c96e1 in clang::RecursiveASTVisitor<(anonymous
namespace)::EmptyStatementsRemover>::TraverseDecl(clang::Decl*) ()
#10 0x00000000004cb816 in
clang::arcmt::trans::removeEmptyStatementsAndDealloc(clang::arcmt::MigrationPass&)
()
#11 0x000000000040e25a in
clang::arcmt::MigrationProcess::applyTransform(void
(*)(clang::arcmt::MigrationPass&),
clang::arcmt::MigrationProcess::RewriteListener*) ()
#12 0x0000000000407c98 in performTransformations ()
#13 0x000000000040814e in main ()

Jay.



More information about the cfe-dev mailing list