[LLVMbugs] [Bug 19524] New: leaks in clang/lib/StaticAnalyzer/Core/BugReporter.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 23 04:02:40 PDT 2014


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

            Bug ID: 19524
           Summary: leaks in clang/lib/StaticAnalyzer/Core/BugReporter.cpp
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kcc at google.com
                CC: ganna at apple.com, kremenek at apple.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

reproduce under valgrind or lsan, see bug 19521:

clang -cc1  -DTEST_64 -triple x86_64-apple-darwin10 -analyze
-analyzer-checker=core,osx.cocoa.NilArg,osx.cocoa.RetainCount,alpha.core
-analyzer-store=region -analyzer-constraints=range -verify -Wno-objc-root-class
~/llvm/tools/clang/test/Analysis/NSString.m

Direct leak of 2880 byte(s) in 18 object(s) allocated from:
    #0 0x7bb200 in operator new(unsigned long)
llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
    #1 0x56aa16e in (anonymous namespace)::CFRefLeakReportVisitor::getEndPath
llvm/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp:2312
    #2 0x57a6bfb in clang::ento::GRBugReporter::generatePathDiagnostic
llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:3155
    #3 0x57c256b in clang::ento::BugReporter::FlushReport
llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:3435
    #4 0x57a2319 in clang::ento::BugReporter::FlushReport
llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:3406
    #5 0x57a0dbe in clang::ento::BugReporter::FlushReports()
llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2796
    #6 0x430ee5f in (anonymous namespace)::AnalysisConsumer::ActionExprEngine
llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:663
    #7 0x430c9ca in RunPathSensitiveChecks
llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:681
    #8 0x430c9ca in (anonymous namespace)::AnalysisConsumer::HandleCode
llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:619
    #9 0x4304ede in HandleDeclsCallGraph
llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:491
    #10 0x4304ede in (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit
llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:537
    #11 0x43d3502 in clang::ParseAST
llvm/tools/clang/lib/Parse/ParseAST.cpp:154
    #12 0x290b44a in clang::FrontendAction::Execute()
llvm/tools/clang/lib/Frontend/FrontendAction.cpp:388
    #13 0x288fea7 in clang::CompilerInstance::ExecuteAction
llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:727
    #14 0x2a5fe6f in clang::ExecuteCompilerInvocation
llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:239
    #15 0x7e2648 in cc1_main(char const**, char const**, char const*, void*)
llvm/tools/clang/tools/driver/cc1_main.cpp:112
    #16 0x7ddc30 in main llvm/tools/clang/tools/driver/driver.cpp:318

-- 
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/20140423/9f97bfc8/attachment.html>


More information about the llvm-bugs mailing list