[llvm-bugs] [Bug 27319] New: "operator delete missing - EnterDtorCleanups" assert fails

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 11 11:49:05 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27319

            Bug ID: 27319
           Summary: "operator delete missing - EnterDtorCleanups" assert
                    fails
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16203
  --> https://llvm.org/bugs/attachment.cgi?id=16203&action=edit
reduced repro

With the attached a.ii file:

$ clang -cc1 -triple x86_64-pc-windows-msvc19.0.0 -emit-obj  -O2
-fms-extensions -fms-compatibility -std=c++14 a.ii -w

clang: ../tools/clang/lib/CodeGen/CGClass.cpp:1816: void
clang::CodeGen::CodeGenFunction::EnterDtorCleanups(const
clang::CXXDestructorDecl*, clang::CXXDtorType): Assertion
`DD->getOperatorDelete() && "operator delete missing - EnterDtorCleanups"'
failed.
#0 0x0000000001bbfa25 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bbfa25)
#1 0x0000000001bbd7d6 llvm::sys::RunSignalHandlers()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bbd7d6)
#2 0x0000000001bbda01 SignalHandler(int)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bbda01)
#3 0x00007f31bf37b340 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x00007f31be59ccc9 gsignal
/build/eglibc-3GlaMS/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f31be5a00d8 abort
/build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f31be595b86 __assert_fail_base
/build/eglibc-3GlaMS/eglibc-2.19/assert/assert.c:92:0
#7 0x00007f31be595c32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#8 0x0000000001e34723
clang::CodeGen::CodeGenFunction::EnterDtorCleanups(clang::CXXDestructorDecl
const*, clang::CXXDtorType)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e34723)
#9 0x0000000001e386d5
clang::CodeGen::CodeGenFunction::EmitDestructorBody(clang::CodeGen::FunctionArgList&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e386d5)
#10 0x0000000001d54315
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d54315)
#11 0x0000000001e0bb0d
clang::CodeGen::CodeGenModule::codegenCXXStructor(clang::CXXMethodDecl const*,
clang::CodeGen::StructorType)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e0bb0d)
#12 0x0000000001dc4baf (anonymous
namespace)::MicrosoftCXXABI::emitCXXStructor(clang::CXXMethodDecl const*,
clang::CodeGen::StructorType)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1dc4baf)
#13 0x0000000001d83aea
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83aea)
#14 0x0000000001d83cfe clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83cfe)
#15 0x0000000001d83d16 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83d16)
#16 0x0000000001d83d16 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83d16)
#17 0x0000000001d83e14 clang::CodeGen::CodeGenModule::Release()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83e14)
#18 0x00000000022e92e7 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x22e92e7)
#19 0x00000000022e4314
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x22e4314)
#20 0x00000000026056bb clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x26056bb)
#21 0x00000000022e486e clang::CodeGenAction::ExecuteAction()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x22e486e)
#22 0x0000000001fda486 clang::FrontendAction::Execute()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1fda486)
#23 0x0000000001fb75ee
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1fb75ee)
#24 0x000000000205ee3c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x205ee3c)
#25 0x00000000009e97d8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9e97d8)
#26 0x00000000009a42a5 main
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9a42a5)
#27 0x00007f31be587ec5 __libc_start_main
/build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c:321:0
#28 0x00000000009e57a4 _start
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9e57a4)

-- 
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/20160411/54d952f1/attachment-0001.html>


More information about the llvm-bugs mailing list