[cfe-dev] ARCMT test failures

Argyrios Kyrtzidis kyrtzidis at apple.com
Thu Jun 23 12:38:42 PDT 2011


I see the crashes on linux x86_64 with gcc 4.5.0. I'll see if I can find the problem.

On Jun 23, 2011, at 12:39 AM, Jay Foad wrote:

>> Valgrinding, maybe?  Could be undefined behavior.
> 
> I've attached the valgrind log. The first complaint is:
> 
> ==3607== Conditional jump or move depends on uninitialised value(s)
> ==3607==    at 0x4C5353:
> _ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_122EmptyStatementsRemoverEE20TraverseCompoundStmtEPNS_12CompoundStmtE.clone.2086
> (in /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4C448F: clang::RecursiveASTVisitor<(anonymous
> namespace)::EmptyStatementsRemover>::TraverseStmt(clang::Stmt*) (in
> /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4D0FC9: clang::RecursiveASTVisitor<(anonymous
> namespace)::EmptyStatementsRemover>::TraverseFunctionHelper(clang::FunctionDecl*)
> (in /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4CA011: clang::RecursiveASTVisitor<(anonymous
> namespace)::EmptyStatementsRemover>::TraverseDecl(clang::Decl*) (in
> /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4CBEB0: clang::RecursiveASTVisitor<(anonymous
> namespace)::EmptyStatementsRemover>::TraverseDeclContextHelper(clang::DeclContext*)
> (in /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4C96E0: clang::RecursiveASTVisitor<(anonymous
> namespace)::EmptyStatementsRemover>::TraverseDecl(clang::Decl*) (in
> /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4CB815:
> clang::arcmt::trans::removeEmptyStatementsAndDealloc(clang::arcmt::MigrationPass&)
> (in /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x40DC0E:
> clang::arcmt::checkForManualIssues(clang::CompilerInvocation&,
> llvm::StringRef, clang::InputKind, clang::DiagnosticClient*) (in
> /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x4068C7:
> _ZL17checkForMigrationN4llvm9StringRefENS_8ArrayRefIPKcEE.clone.180
> (in /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x407227:
> _ZL22performTransformationsN4llvm9StringRefENS_8ArrayRefIPKcEE.clone.252
> (in /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> ==3607==    by 0x40814D: main (in
> /home/jay/llvm/objdir/Release+Asserts/bin/arcmt-test)
> 
> The function it's complaining about, up to the point of the complaint, is:
> 
> 00000000004c5330
> <_ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_122EmptyStatementsRemoverEE20TraverseCompoundStmtEPNS_12CompoundStmtE.clone.2086>:
>  4c5330:       41 57                   push   %r15
>  4c5332:       49 89 d7                mov    %rdx,%r15
>  4c5335:       41 56                   push   %r14
>  4c5337:       41 55                   push   %r13
>  4c5339:       41 54                   push   %r12
>  4c533b:       55                      push   %rbp
>  4c533c:       48 89 f5                mov    %rsi,%rbp
>  4c533f:       53                      push   %rbx
>  4c5340:       48 89 fb                mov    %rdi,%rbx
>  4c5343:       48 83 ec 68             sub    $0x68,%rsp
>  4c5347:       8b 06                   mov    (%rsi),%eax
>  4c5349:       4c 8b 22                mov    (%rdx),%r12
>  4c534c:       4d 8d 34 c4             lea    (%r12,%rax,8),%r14
>  4c5350:       4d 39 f4                cmp    %r14,%r12
>  4c5353:       74 70                   je     4c53c5
> 
> Jay.
> <valgrind.log>_______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list