Page MenuHomePhabricator

asan report for test/Analysis/inlining/eager-reclamation-path-notes.c
ActivePublic

Authored by matthewbg on Nov 15 2012, 11:46 AM.
==23840== ERROR: AddressSanitizer: heap-use-after-free on address 0x7f8222b826e8 at pc 0x2413a2f bp 0x7fff5ca23a50 sp 0x7fff5ca23a48
READ of size 1 at 0x7f8222b826e8 thread T0
#0 0x2413a2e llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:225 clang::ento::BugReporter::RemoveUneededCalls()
#1 0x24138a4 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:236 clang::ento::BugReporter::RemoveUneededCalls()
#2 0x2417195 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2101 clang::ento::GRBugReporter::generatePathDiagnostic()
#3 0x241ecc6 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2281 clang::ento::BugReporter::FlushReport()
#4 0x24167f3 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2256 clang::ento::BugReporter::FlushReport()
#5 0x2416347 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:1731 clang::ento::BugReporter::FlushReports()
#6 0x1af31e3 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:624 (anonymous namespace)::AnalysisConsumer::ActionExprEngine()
#7 0x1af256e llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:581 (anonymous namespace)::AnalysisConsumer::HandleCode()
#8 0x1af1ef3 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:434 (anonymous namespace)::AnalysisConsumer::HandleDeclsCallGraph()
#9 0x1af11a4 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:481 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit()
#10 0x24fa800 llvm/tools/clang/lib/Parse/ParseAST.cpp:110 clang::ParseAST()
#11 0x2190bd8 llvm/tools/clang/lib/Frontend/FrontendAction.cpp:381 clang::FrontendAction::Execute()
#12 0x1ffcaa9 llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:698 clang::CompilerInstance::ExecuteAction()
#13 0x173e8d1 llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:192 clang::ExecuteCompilerInvocation()
#14 0x1724727 llvm/tools/clang/tools/driver/cc1_main.cpp:98 cc1_main()
#15 0x1734781 llvm/tools/clang/tools/driver/driver.cpp:357 main
#16 0x7f8222f42d5c __libc_start_main
0x7f8222b826e8 is located 168 bytes inside of 376-byte region [0x7f8222b82640,0x7f8222b827b8)
freed by thread T0 here:
#0 0x459e100 llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:54 operator delete()
#1 0x24138de llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:262 clang::ento::BugReporter::RemoveUneededCalls()
#2 0x24138a4 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:236 clang::ento::BugReporter::RemoveUneededCalls()
#3 0x2417195 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2101 clang::ento::GRBugReporter::generatePathDiagnostic()
#4 0x241ecc6 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2281 clang::ento::BugReporter::FlushReport()
#5 0x24167f3 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2256 clang::ento::BugReporter::FlushReport()
#6 0x2416347 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:1731 clang::ento::BugReporter::FlushReports()
#7 0x1af31e3 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:624 (anonymous namespace)::AnalysisConsumer::ActionExprEngine()
#8 0x1af256e llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:581 (anonymous namespace)::AnalysisConsumer::HandleCode()
#9 0x1af1ef3 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:434 (anonymous namespace)::AnalysisConsumer::HandleDeclsCallGraph()
#10 0x1af11a4 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:481 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit()
#11 0x24fa800 llvm/tools/clang/lib/Parse/ParseAST.cpp:110 clang::ParseAST()
#12 0x2190bd8 llvm/tools/clang/lib/Frontend/FrontendAction.cpp:381 clang::FrontendAction::Execute()
#13 0x1ffcaa9 llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:698 clang::CompilerInstance::ExecuteAction()
#14 0x173e8d1 llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:192 clang::ExecuteCompilerInvocation()
#15 0x1724727 llvm/tools/clang/tools/driver/cc1_main.cpp:98 cc1_main()
previously allocated by thread T0 here:
#0 0x459df80 llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:39 operator new()
#1 0x23e9594 llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:759 clang::ento::PathDiagnosticCallPiece::construct()
#2 0x241cac9 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:563 GenerateMinimalPathDiagnostic()
#3 0x2417002 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2073 clang::ento::GRBugReporter::generatePathDiagnostic()
#4 0x241ecc6 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2281 clang::ento::BugReporter::FlushReport()
#5 0x24167f3 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2256 clang::ento::BugReporter::FlushReport()
#6 0x2416347 llvm/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp:1731 clang::ento::BugReporter::FlushReports()
#7 0x1af31e3 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:624 (anonymous namespace)::AnalysisConsumer::ActionExprEngine()
#8 0x1af256e llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:581 (anonymous namespace)::AnalysisConsumer::HandleCode()
#9 0x1af1ef3 llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:434 (anonymous namespace)::AnalysisConsumer::HandleDeclsCallGraph()

Event Timeline

matthewbg edited the content of this paste. (Show Details)Nov 15 2012, 11:46 AM