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

           Summary: NULL pointer dereference in
                    clang::CodeGen::CodeGenFunction::destroyCXXObject
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=6880)
 --> (http://llvm.org/bugs/attachment.cgi?id=6880)
Failing input

Start of the backtrace:

0  clang           0x000000000285ccd9
1  clang           0x000000000285cad5
2  libpthread.so.0 0x00007f4a44006c60
3  clang           0x00000000012a474c clang::FunctionDecl::isTrivial() const +
12
4  clang           0x000000000130de12 
clang::CodeGen::CodeGenFunction::destroyCXXObject(clang::CodeGen::CodeGenFunction&,
llvm::Value*, clang::QualType) + 104
5  clang           0x000000000133786a
clang::CodeGen::CodeGenFunction::emitArrayDestroy(llvm::Value*, llvm::Value*,
clang::QualType, void (&)(clang::CodeGen::CodeGenFunction&, llvm::Value*,
clang::QualType), bool, bool) + 668
6  clang           0x0000000001337b13
7  clang           0x0000000001337bc8
8  clang           0x0000000001316aed
9  clang           0x0000000001318178
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 5390
10 clang           0x0000000001316682
clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator)
+ 164
11 clang           0x0000000001313993
clang::CodeGen::CodeGenFunction::RunCleanupsScope::~RunCleanupsScope() + 71
1

The dtor variable in destroyCXXObject is NULL.

Preprocessed source is attached.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to