[LLVMbugs] [Bug 13357] New: Clang crashes with coverage and Objective-C++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 13 10:24:29 PDT 2012


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

             Bug #: 13357
           Summary: Clang crashes with coverage and Objective-C++
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Pidgeot18 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat min.mm
Test case:
#include <Foundation/NSObject.h>
@interface NoOp : NSObject
+ (void)noOp;
@end
@implementation NoOp
+ (void)noOp {}
@end
$ /usr/local/bin/clang++ -fprofile-arcs -ftest-coverage min.mm
Assertion failed: (CGM.getCodeGenOpts().DebugInfo >=
CodeGenOptions::LimitedDebugInfo), function getOrCreateInterfaceType, file
/Users/jcranmer/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp, line 1192.
0  clang             0x000000010a1333a2
llvm::SmallVectorImpl<char>::swap(llvm::SmallVectorImpl<char>&) + 14466
1  clang             0x000000010a133884
llvm::SmallVectorImpl<char>::swap(llvm::SmallVectorImpl<char>&) + 15716
2  libsystem_c.dylib 0x00007fff8e59dcfa _sigtramp + 26
3  libsystem_c.dylib 0x0000000000000019 _sigtramp + 18446603338127909689
4  clang             0x000000010a1335e6
llvm::SmallVectorImpl<char>::swap(llvm::SmallVectorImpl<char>&) + 15046
5  clang             0x000000010a1335c1
llvm::SmallVectorImpl<char>::swap(llvm::SmallVectorImpl<char>&) + 15009
6  clang             0x0000000108d408fb
std::vector<clang::serialization::ModuleFile*,
std::allocator<clang::serialization::ModuleFile*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::serialization::ModuleFile**,
std::vector<clang::serialization::ModuleFile*,
std::allocator<clang::serialization::ModuleFile*> > >,
clang::serialization::ModuleFile* const&) + 242171
7  clang             0x0000000108dface3 std::vector<std::pair<unsigned int,
unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> >
>::operator=(std::vector<std::pair<unsigned int, unsigned int>,
std::allocator<std::pair<unsigned int, unsigned int> > > const&) + 68947
8  clang             0x0000000108e1533f std::vector<std::pair<llvm::WeakVH,
llvm::Constant*>, std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> >
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::WeakVH,
llvm::Constant*>*, std::vector<std::pair<llvm::WeakVH, llvm::Constant*>,
std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> > > >,
std::pair<llvm::WeakVH, llvm::Constant*> const&) + 7039
9  clang             0x0000000108de9a0a llvm::ParseIR(llvm::MemoryBuffer*,
llvm::SMDiagnostic&, llvm::LLVMContext&) + 1322
10 clang             0x0000000108e20813 std::vector<std::pair<llvm::WeakVH,
llvm::Constant*>, std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> >
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::WeakVH,
llvm::Constant*>*, std::vector<std::pair<llvm::WeakVH, llvm::Constant*>,
std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> > > >,
std::pair<llvm::WeakVH, llvm::Constant*> const&) + 53331
11 clang             0x0000000108de89e1 std::vector<clang::CXXRecordDecl
const*, std::allocator<clang::CXXRecordDecl const*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CXXRecordDecl const**,
std::vector<clang::CXXRecordDecl const*, std::allocator<clang::CXXRecordDecl
const*> > >, clang::CXXRecordDecl const* const&) + 6529
12 clang             0x0000000108bf4078 llvm::SmallVectorImpl<clang::FileEntry
const*>::operator=(llvm::SmallVectorImpl<clang::FileEntry const*> const&) +
10184
13 clang             0x0000000108bc9dcf std::vector<clang::CompilerInstance*,
std::allocator<clang::CompilerInstance*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CompilerInstance**,
std::vector<clang::CompilerInstance*, std::allocator<clang::CompilerInstance*>
> >, clang::CompilerInstance* const&) + 16623
14 clang             0x0000000108bb04fa std::_Rb_tree<std::string, std::string,
std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::_M_insert_unique(std::string const&) + 3978
15 clang             0x0000000108ba5f1a
16 clang             0x0000000108bacf1c std::vector<std::string,
std::allocator<std::string>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >, std::string const&) +
4124
17 clang             0x0000000108ba5c34
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free -main-file-name
min.mm -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu
core2 -target-linker-version 128.2 -femit-coverage-notes -femit-coverage-data
-resource-dir /usr/local/bin/../lib/clang/3.2 -fmodule-cache-path
/var/folders/3m/06rlx70d1l58q6lwc6x98hl40000gq/T/clang-module-cache
-fdeprecated-macro -fdebug-compilation-dir /tmp -ferror-limit 19
-fmessage-length 82 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.7.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fobjc-exceptions -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/3m/06rlx70d1l58q6lwc6x98hl40000gq/T/min-Akhi4y.o -x objective-c++
min.mm 
1.    <eof> parser at end of file
2.    min.mm:13:1: LLVM IR generation of declaration 'NoOp::noOp'


clang version 3.2 (trunk 160174)
Target: x86_64-apple-darwin11.3.0
Thread model: posix

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