[LLVMbugs] [Bug 14474] New: Assertion failed: (CGM.getCodeGenOpts().getDebugInfo() >= CodeGenOptions::LimitedDebugInfo) with -gline-tables-only

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 30 17:51:21 PST 2012


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

             Bug #: 14474
           Summary: Assertion failed: (CGM.getCodeGenOpts().getDebugInfo()
                    >= CodeGenOptions::LimitedDebugInfo) with
                    -gline-tables-only
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: glider at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat mcam.ii
typedef signed char BOOL;
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
@protocol NSObject - (BOOL)isEqual:(id)object;
@end
@protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
@end 
@interface NSObject <NSObject> {
}
@end    
@interface NSResponder : NSObject <NSCoding> { }
@end
@protocol NSValidatedUserInterfaceItem - (SEL)action;
@end
@protocol NSUserInterfaceValidations - (BOOL)validateUserInterfaceItem:(id
<NSValidatedUserInterfaceItem>)anItem;
@end
@interface NSRunningApplication : NSObject { }
@end
@interface NSApplication : NSResponder <NSUserInterfaceValidations> { }
@end
@implementation MockCrApp + (NSApplication*)sharedApplication { }
@end
=========================================================================
$ clang -cc1 -triple i386-apple-macosx10.6.0 -emit-obj -mdisable-fp-elim
-gline-tables-only -w -fblocks -fno-threadsafe-statics -x objective-c++ mcam.ii 
Assertion failed: (CGM.getCodeGenOpts().getDebugInfo() >=
CodeGenOptions::LimitedDebugInfo), function getOrCreateInterfaceType, file
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp,
line 1218.
0  clang             0x00000001016d4b45 PrintStackTrace(void*) + 37
1  clang             0x00000001016d4f54 SignalHandler(int) + 564
2  libsystem_c.dylib 0x00007fff8c3d68ea _sigtramp + 26
3  clang             0x0000000100044013 llvm::StringMap<llvm::Value*,
llvm::MallocAllocator>::insert(llvm::StringMapEntry<llvm::Value*>*) + 83
4  clang             0x000000010004faf6 abort + 22
5  clang             0x000000010004fad1 __assert_rtn + 81
6  clang             0x0000000100219bb0
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 0
7  clang             0x00000001002d58dc
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 668
8  clang             0x00000001002f263f (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 95
9  clang             0x00000001002c3a05
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 165
10 clang             0x0000000100300e73 clang::ParseAST(clang::Sema&, bool,
bool) + 419
11 clang             0x00000001002c29ea clang::CodeGenAction::ExecuteAction() +
458
12 clang             0x00000001000b2938 clang::FrontendAction::Execute() + 104
13 clang             0x000000010009446d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 941
14 clang             0x000000010005a61a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3450
15 clang             0x0000000100052c48 cc1_main(char const**, char const**,
char const*, void*) + 840
16 clang             0x0000000100056e75 main + 3077
17 clang             0x00000001000528d4 start + 52
Stack dump:
0.      Program arguments:
/Users/glider/src/chrome-commit/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple i386-apple-macosx10.6.0 -emit-obj -mdisable-fp-elim
-gline-tables-only -w -fblocks -fno-threadsafe-statics -x objective-c++ mcam.ii 

Everything is fine if I replace -gline-tables-only with -g.

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