[LLVMbugs] [Bug 9929] New: Regression: Assertion failure in getObjCEncodingForStructureImpl

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 16 07:57:41 PDT 2011


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

           Summary: Regression: Assertion failure in
                    getObjCEncodingForStructureImpl
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


I see several crashes when I try to update clang on the chrome bots from 
r130990 to r131395. They look like this:

clang: warning: argument unused during compilation: '-fobjc-exceptions'
CompileC
../../xcodebuild/webkit_support.build/Debug/glue.build/Objects-normal/i386/webmenurunner_mac.o
../glue/webmenurunner_mac.mm normal i386 objective-c++
com.apple.compilers.gcc.4_2
    cd /b/build/slave/mac_clang/build/src/webkit/support
    setenv LANG en_US.US-ASCII
   
/b/build/slave/mac_clang/build/src/third_party/llvm-build/Release+Asserts/bin/clang++
-x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs
-fno-exceptions -fno-rtti -O0 -Werror -Wnewline-eof -DCHROMIUM_BUILD
-DENABLE_REMOTING=1 -DENABLE_P2P_APIS=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1
-DSK_BUILD_NO_IMAGE_ENCODE -DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"
-DGR_AGGRESSIVE_SHADER_OPTS=1 -DU_USING_ICU_NAMESPACE=0
-DU_STATIC_IMPLEMENTATION -D__STDC_FORMAT_MACROS
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -isysroot
/Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -fvisibility-inlines-hidden
-fno-threadsafe-statics -mmacosx-version-min=10.5 -gdwarf-2 -Wall
-Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-Wheader-hygiene -Wno-char-subscripts -Wno-unused-function
-Wno-unnamed-type-template-args
-F/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/Debug
-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-I/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/Debug/include
-I../../third_party/icu/public/common -I../../third_party/icu/public/i18n
-I/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/DerivedSources/Debug
-I/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/DerivedSources/Debug/webkit
-I../../gpu -I../.. -I../../skia/config -I../../third_party/skia/include/config
-I../../third_party/skia/include/core -I../../third_party/skia/include/effects
-I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu
-I../../third_party/skia/include/ports -I../../third_party/skia/gpu/include
-I../../skia/ext -I../../third_party/npapi -I../../third_party/npapi/bindings
-I/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/DerivedSources/i386
-I/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/DerivedSources
-fno-strict-aliasing -fobjc-exceptions -Xclang -load -Xclang
/b/build/slave/mac_clang/build/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib
-Xclang -add-plugin -Xclang find-bad-constructs -g1 -c
/b/build/slave/mac_clang/build/src/webkit/support/../glue/webmenurunner_mac.mm
-o
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/Objects-normal/i386/webmenurunner_mac.o

Assertion failed: (CurOffs <= CurLayObj->first), function
getObjCEncodingForStructureImpl, file
/b/build/slave/mac_clang/build/src/third_party/llvm/tools/clang/lib/AST/ASTContext.cpp,
line 4520.
0  clang             0x00000001016ec662 PrintStackTrace(void*) + 34
1  clang             0x00000001016ed4b3 SignalHandler(int) + 707
2  libSystem.B.dylib 0x00007fff8341f66a _sigtramp + 26
3  libSystem.B.dylib 0x00000001060fc080 _sigtramp + 2194524720
4  clang             0x00000001000197d2 __assert_rtn + 66
5  clang             0x00000001008838d1
clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*,
std::string&, clang::FieldDecl const*, bool) const + 3777
6  clang             0x0000000100882810
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, clang::FieldDecl const*, bool, bool, bool) const + 7328
7  clang             0x000000010088340e
clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*,
std::string&, clang::FieldDecl const*, bool) const + 2558
8  clang             0x00000001008831b7
clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*,
std::string&, clang::FieldDecl const*, bool) const + 1959
9  clang             0x0000000100882810
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, clang::FieldDecl const*, bool, bool, bool) const + 7328
10 clang             0x0000000100881440
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, clang::FieldDecl const*, bool, bool, bool) const + 2256
11 clang             0x0000000100884dde
clang::ASTContext::getObjCEncodingForMethodDecl(clang::ObjCMethodDecl const*,
std::string&) const + 1278
12 clang             0x00000001002740c6 (anonymous
namespace)::CGObjCCommonMac::GetMethodVarType(clang::ObjCMethodDecl const*) +
70
13 clang             0x000000010027f29c (anonymous
namespace)::CGObjCMac::GetMethodConstant(clang::ObjCMethodDecl const*) + 204
14 clang             0x0000000100292299 (anonymous
namespace)::CGObjCMac::GenerateClass(clang::ObjCImplementationDecl const*) +
969
15 clang             0x00000001002e5019
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1657
16 clang             0x00000001002f840f (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 63
17 clang             0x00000001002d320b
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 155
18 clang             0x0000000100089ce1
clang::MultiplexConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 65
19 clang             0x00000001003050f2 clang::ParseAST(clang::Sema&, bool) +
322
20 clang             0x00000001002d178c clang::CodeGenAction::ExecuteAction() +
60
21 clang             0x00000001000577a1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 433
22 clang             0x00000001000238b5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1493
23 clang             0x000000010001ab08 cc1_main(char const**, char const**,
char const*, void*) + 568
24 clang             0x0000000100022a72 main + 4946
25 clang             0x0000000100019f24 start + 52
26 clang             0x0000000000000080 start + 4294861200
Stack dump:
0.    Program arguments:
/b/build/slave/mac_clang/build/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple i386-apple-macosx10.5.0 -emit-obj -mrelax-all -disable-free
-main-file-name webmenurunner_mac.mm -pic-level 1 -mdisable-fp-elim
-relaxed-aliasing -masm-verbose -target-cpu yonah -target-linker-version 97.2
-g -coverage-file
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/Objects-normal/i386/webmenurunner_mac.o
-resource-dir
/b/build/slave/mac_clang/build/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0
-isysroot /Developer/SDKs/MacOSX10.5.sdk -D CHROMIUM_BUILD -D ENABLE_REMOTING=1
-D ENABLE_P2P_APIS=1 -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D
SK_BUILD_NO_IMAGE_ENCODE -D GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D
GR_AGGRESSIVE_SHADER_OPTS=1 -D U_USING_ICU_NAMESPACE=0 -D
U_STATIC_IMPLEMENTATION -D __STDC_FORMAT_MACROS -D
DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1
-F/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/Debug
-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-I
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/Debug/include
-I ../../third_party/icu/public/common -I ../../third_party/icu/public/i18n -I
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/DerivedSources/Debug
-I
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/DerivedSources/Debug/webkit
-I ../../gpu -I ../.. -I ../../skia/config -I
../../third_party/skia/include/config -I ../../third_party/skia/include/core -I
../../third_party/skia/include/effects -I ../../third_party/skia/include/pdf -I
../../third_party/skia/include/gpu -I ../../third_party/skia/include/ports -I
../../third_party/skia/gpu/include -I ../../skia/ext -I ../../third_party/npapi
-I ../../third_party/npapi/bindings -I
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/DerivedSources/i386
-I
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/DerivedSources
-O0 -Wno-trigraphs -Werror -Wnewline-eof -Wall -Wendif-labels -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene
-Wno-char-subscripts -Wno-unused-function -Wno-unnamed-type-template-args
-fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fvisibility hidden
-fvisibility-inlines-hidden -fblocks -fobjc-exceptions -fno-rtti
-fno-threadsafe-statics -fdiagnostics-show-option -load
/b/build/slave/mac_clang/build/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib
-add-plugin find-bad-constructs -o
/b/build/slave/mac_clang/build/src/webkit/support/../../xcodebuild/webkit_support.build/Debug/glue.build/Objects-normal/i386/webmenurunner_mac.o
-x objective-c++
/b/build/slave/mac_clang/build/src/webkit/support/../glue/webmenurunner_mac.mm 
1.   
/b/build/slave/mac_clang/build/src/webkit/support/../glue/webmenurunner_mac.mm:159:1:
current parser token 'namespace'
2.   
/b/build/slave/mac_clang/build/src/webkit/support/../glue/webmenurunner_mac.mm:42:1:
LLVM IR generation of declaration 'WebMenuRunner'
clang:error: unable to execute command: Illegal instruction
clang:error: clang frontend command failed due to signal 1 (use -v to see
invocation)

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