[LLVMbugs] [Bug 9380] New: crash on AnalysisBasedWarnings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 2 14:53:03 PST 2011


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

           Summary: crash on AnalysisBasedWarnings
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The test:
------------
struct nsCString {
  ~nsCString();
};
struct nsPromiseFlatCString : public nsCString {
  nsPromiseFlatCString( const nsCString& str );
};
int SetStringProperty(const nsCString& aKey) {
  const nsCString& flatKey = nsPromiseFlatCString(aKey);
}
------------

produces a segmentation fault:

$ clang -cc1 -Werror=return-type nsPersistentProperties.ii

0  clang             0x0000000101092ed2 PrintStackTrace(void*) + 34
1  clang             0x0000000101093479 SignalHandler(int) + 857
2  libSystem.B.dylib 0x00007fff81dbd67a _sigtramp + 26
3  clang             0x0000000100595dc3 (anonymous
namespace)::CFGBuilder::Visit(clang::Stmt*, (anonymous
namespace)::AddStmtChoice) + 14835
4  clang             0x000000010058ccc1
clang::CFGImplicitDtor::getDestructorDecl() const + 113
5  clang             0x000000010058cd59 clang::CFGImplicitDtor::isNoReturn()
const + 9
6  clang             0x0000000100279fa4
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::BlockExpr const*) +
2548
...

-- 
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