[LLVMbugs] [Bug 18317] New: Assertion `!D->isInvalidDecl() && "Cannot get layout of invalid decl!"' failed on r193323

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 24 05:38:43 PST 2013


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

            Bug ID: 18317
           Summary: Assertion `!D->isInvalidDecl() && "Cannot get layout
                    of invalid decl!"' failed on r193323
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alph at chromium.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang:
/usr/local/google/work/chromium/src/third_party/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2720:
const clang::ASTRecordLayout &clang::ASTContext::getASTRecordLayout(const
clang::RecordDecl *) const: Assertion `!D->isInvalidDecl() && "Cannot get
layout of invalid decl!"' failed.
0  clang     0x00000000021304a5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1  clang     0x00000000021308e3
2  libc.so.6 0x00007f5826bf44a0
3  libc.so.6 0x00007f5826bf4425 gsignal + 53
4  libc.so.6 0x00007f5826bf7b8b abort + 379
5  libc.so.6 0x00007f5826bed0ee
6  libc.so.6 0x00007f5826bed192
7  clang     0x00000000012ca241
8  clang     0x00000000012c8cf7
clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const + 1815
9  clang     0x00000000012c8cf7
clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const + 1815
10 clang     0x0000000001181ae3 clang::ASTContext::getTypeInfoImpl(clang::Type
const*) const + 1747
11 clang     0x00000000011813ab clang::ASTContext::getTypeInfo(clang::Type
const*) const + 171
12 clang     0x00000000011819f9 clang::ASTContext::getTypeInfoImpl(clang::Type
const*) const + 1513
13 clang     0x00000000011813ab clang::ASTContext::getTypeInfo(clang::Type
const*) const + 171
14 clang     0x0000000001181888 clang::ASTContext::getTypeInfoImpl(clang::Type
const*) const + 1144
15 clang     0x00000000011813ab clang::ASTContext::getTypeInfo(clang::Type
const*) const + 171
16 clang     0x00000000011811bf
clang::ASTContext::getTypeInfoInChars(clang::Type const*) const + 95
17 clang     0x000000000126def5
18 clang     0x000000000126610a
19 clang     0x0000000001263b87
20 clang     0x0000000001267bb0
21 clang     0x0000000001264d89
22 clang     0x0000000001263b87
23 clang     0x000000000125a918
24 clang     0x000000000125c51d
clang::Expr::EvaluateForOverflow(clang::ASTContext const&,
llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >*) const + 349
25 clang     0x0000000000a6e02c clang::Sema::CheckForIntOverflow(clang::Expr*)
+ 92
26 clang     0x0000000000beda17 clang::Sema::ActOnFinishFullExpr(clang::Expr*,
clang::SourceLocation, bool, bool) + 231
27 clang     0x0000000000adcac0 clang::Sema::AddInitializerToDecl(clang::Decl*,
clang::Expr*, bool, bool) + 4176
28 clang     0x0000000000d549de
clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&) + 286
29 clang     0x0000000000d4897a
clang::Sema::BuildVariableInstantiation(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&,
llvm::SmallVector<clang::Sema::LateInstantiatedAttribute, 16u>*,
clang::DeclContext*, clang::LocalInstantiationScope*, bool) + 1434
30 clang     0x0000000000d48017
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*, bool) + 583
31 clang     0x0000000000d4f408 clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 136
32 clang     0x0000000000d40106
33 clang     0x0000000000d3c86c
34 clang     0x0000000000d29271 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 65
35 clang     0x0000000000d53195
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2389
36 clang     0x0000000000d5437f clang::Sema::PerformPendingInstantiations(bool)
+ 559
37 clang     0x0000000000d53388
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2888
38 clang     0x0000000000d5437f clang::Sema::PerformPendingInstantiations(bool)
+ 559
39 clang     0x0000000000d53388
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2888
40 clang     0x0000000000d5437f clang::Sema::PerformPendingInstantiations(bool)
+ 559
41 clang     0x0000000000d53388
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2888
42 clang     0x0000000000d5437f clang::Sema::PerformPendingInstantiations(bool)
+ 559
43 clang     0x0000000000d53388
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2888
44 clang     0x0000000000d5437f clang::Sema::PerformPendingInstantiations(bool)
+ 559
45 clang     0x0000000000d53388
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2888
46 clang     0x0000000000d5437f clang::Sema::PerformPendingInstantiations(bool)
+ 559
47 clang     0x0000000000a3e609 clang::Sema::ActOnEndOfTranslationUnit() + 441
48 clang     0x00000000009ab7b4
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 180
49 clang     0x00000000009a7d26 clang::ParseAST(clang::Sema&, bool, bool) + 454
50 clang     0x000000000083ec02 clang::CodeGenAction::ExecuteAction() + 514
51 clang     0x00000000006b6660 clang::FrontendAction::Execute() + 112
52 clang     0x0000000000693e4d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
53 clang     0x000000000067b364
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2836
54 clang     0x000000000067360f cc1_main(char const**, char const**, char
const*, void*) + 687
55 clang     0x00000000006795ee main + 9182
56 libc.so.6 0x00007f5826bdf76d __libc_start_main + 237
57 clang     0x0000000000673299
Stack dump:
0.    Program arguments:
/usr/local/google/home/alph/chromium2/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
InspectorTimelineAgent.cpp -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -relaxed-aliasing -mdisable-tail-calls -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -ffunction-sections
-fdata-sections -coverage-file
/usr/local/google/home/alph/chromium2/src/out/Release/obj/third_party/WebKit/Source/core/inspector/webcore_remaining.InspectorTimelineAgent.o
-resource-dir
/usr/local/google/home/alph/chromium2/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.4
-dependency-file
obj/third_party/WebKit/Source/core/inspector/webcore_remaining.InspectorTimelineAgent.o.d
-MT
obj/third_party/WebKit/Source/core/inspector/webcore_remaining.InspectorTimelineAgent.o
-D V8_DEPRECATION_WARNINGS -D _FILE_OFFSET_BITS=64 -D DISABLE_NACL -D
CHROMIUM_BUILD -D USE_CAIRO=1 -D USE_GLIB=1 -D USE_DEFAULT_RENDER_THEME=1 -D
USE_LIBJPEG_TURBO=1 -D USE_NSS=1 -D USE_X11=1 -D ENABLE_ONE_CLICK_SIGNIN -D
GTK_DISABLE_SINGLE_INCLUDES=1 -D USE_XI2_MT=2 -D ENABLE_PROFILING=1 -D
ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D ENABLE_PEPPER_CDMS -D
ENABLE_CONFIGURATION_POLICY -D ENABLE_INPUT_SPEECH -D ENABLE_NOTIFICATIONS -D
USE_UDEV -D ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -D ENABLE_EGLIMAGE=1 -D
ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D ENABLE_PLUGIN_INSTALLATION=1 -D
ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D
ENABLE_BACKGROUND=1 -D ENABLE_AUTOMATION=1 -D ENABLE_GOOGLE_NOW=1 -D
CLD_VERSION=2 -D ENABLE_FULL_PRINTING=1 -D ENABLE_PRINTING=1 -D
ENABLE_SPELLCHECK=1 -D ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D
ENABLE_MANAGED_USERS=1 -D ENABLE_MDNS=1 -D GL_GLEXT_PROTOTYPES -D
BLINK_IMPLEMENTATION=1 -D INSIDE_BLINK -D ENABLE_CUSTOM_SCHEME_HANDLER=0 -D
ENABLE_SVG_FONTS=1 -D ENABLE_GDI_FONTS_ON_WINDOWS=0 -D
ENABLE_HARFBUZZ_ON_WINDOWS=1 -D WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -D
ENABLE_INPUT_SPEECH=1 -D ENABLE_INPUT_MULTIPLE_FIELDS_UI=1 -D
ENABLE_LEGACY_NOTIFICATIONS=1 -D ENABLE_MEDIA_CAPTURE=0 -D
ENABLE_NAVIGATOR_CONTENT_UTILS=1 -D ENABLE_ORIENTATION_EVENTS=0 -D
ENABLE_WEB_AUDIO=1 -D WTF_USE_WEBAUDIO_FFMPEG=1 -D ENABLE_OPENTYPE_VERTICAL=1
-D WTF_USE_DEFAULT_RENDER_THEME=1 -D U_USING_ICU_NAMESPACE=0 -D
U_STATIC_IMPLEMENTATION -D SK_ENABLE_INST_COUNT=0 -D SK_SUPPORT_GPU=1 -D
GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D
SK_ENABLE_LEGACY_API_ALIASING=1 -D SK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -D
SK_SUPPORT_LEGACY_COLORTYPE=1 -D GR_GL_IGNORE_ES3_MSAA=0 -D
SK_SUPPORT_DEPRECATED_SCALARROUND -D SK_IGNORE_64BIT_OPENGL_CHANGES=1 -D
SK_USE_POSIX_THREADS -D SK_DEFERRED_CANVAS_USES_FACTORIES=1 -D
CHROME_PNG_WRITE_SUPPORT -D PNG_USER_CONFIG -D LIBXML_STATIC -D LIBXSLT_STATIC
-D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D NDEBUG -D NVALGRIND -D
DYNAMIC_ANNOTATIONS_ENABLED=0 -D _FORTIFY_SOURCE=2 -I
../../third_party/WebKit/Source -I ../.. -I ../../skia/config -I
../../third_party/khronos -I ../../gpu -I ../../third_party/WebKit -I gen/blink
-I gen/blink/bindings -I ../../third_party/angle/include -I
../../third_party/ffmpeg -I ../../third_party/icu/source/i18n -I
../../third_party/icu/source/common -I ../../third_party/skia/src/core -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/lazy -I ../../third_party/skia/include/pathops
-I ../../third_party/skia/include/pipe -I ../../third_party/skia/include/ports
-I ../../third_party/skia/include/utils -I ../../skia/ext -I
../../third_party/iccjpeg -I ../../third_party/libpng -I
../../third_party/libwebp -I ../../third_party/libxml/linux/include -I
../../third_party/libxml/src/include -I ../../third_party/libxslt -I
../../third_party/npapi -I ../../third_party/npapi/bindings -I
../../third_party/ots/include -I ../../third_party/qcms/src -I
../../third_party/sqlite -I ../../third_party/zlib -I ../../v8/include -I
/usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I
/usr/include/gtk-2.0 -I /usr/lib/x86_64-linux-gnu/gtk-2.0/include -I
/usr/include/atk-1.0 -I /usr/include/cairo -I /usr/include/gdk-pixbuf-2.0 -I
/usr/include/pango-1.0 -I /usr/include/gio-unix-2.0/ -I /usr/include/pixman-1
-I /usr/include/freetype2 -I /usr/include/libpng12 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/x86_64-linux-gnu/c++/4.6
-internal-isystem /usr/local/include -internal-isystem
/usr/local/google/home/alph/chromium2/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.4/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers
-Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing
-Wno-reserved-user-defined-literal -Wno-deprecated-register
-Wglobal-constructors -Wexit-time-destructors -Wsign-compare -std=gnu++11
-fdeprecated-macro -fdebug-compilation-dir
/usr/local/google/home/alph/chromium2/src/out/Release -ferror-limit 19
-fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread
-stack-protector 1 -stack-protector-buffer-size 4 -mstackrealign -fno-rtti
-fno-threadsafe-statics -fno-inline -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-load
/usr/local/google/home/alph/chromium2/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -o
obj/third_party/WebKit/Source/core/inspector/webcore_remaining.InspectorTimelineAgent.o
-x c++
../../third_party/WebKit/Source/core/inspector/InspectorTimelineAgent.cpp 
1.    <eof> parser at end of file
2.    ../../third_party/WebKit/Source/wtf/HashMap.h:131:19: instantiating
function definition 'add'
3.    ../../third_party/WebKit/Source/wtf/HashMap.h:164:19: instantiating
function definition 'inlineAdd'
4.    ../../third_party/WebKit/Source/wtf/HashTable.h:312:81: instantiating
function definition 'add'
5.    ../../third_party/WebKit/Source/wtf/HashTable.h:357:14: instantiating
function definition 'expand'
6.    ../../third_party/WebKit/Source/wtf/HashTable.h:360:14: instantiating
function definition 'rehash'
7.    ../../third_party/WebKit/Source/wtf/HashTable.h:342:27: instantiating
function definition 'allocateTable'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk 193323)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/InspectorTimelineAgent-134c89.cpp
clang: note: diagnostic msg: /tmp/InspectorTimelineAgent-134c89.sh
clang: note: diagnostic msg: 

.sh file:


"/usr/local/google/home/alph/chromium2/src/third_party/llvm-build/Release+Asserts/bin/clang"
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
InspectorTimelineAgent.cpp -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -relaxed-aliasing -mdisable-tail-calls -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -ffunction-sections
-fdata-sections -D "V8_DEPRECATION_WARNINGS" -D "_FILE_OFFSET_BITS=64" -D
"DISABLE_NACL" -D "CHROMIUM_BUILD" -D "USE_CAIRO=1" -D "USE_GLIB=1" -D
"USE_DEFAULT_RENDER_THEME=1" -D "USE_LIBJPEG_TURBO=1" -D "USE_NSS=1" -D
"USE_X11=1" -D "ENABLE_ONE_CLICK_SIGNIN" -D "GTK_DISABLE_SINGLE_INCLUDES=1" -D
"USE_XI2_MT=2" -D "ENABLE_PROFILING=1" -D "ENABLE_REMOTING=1" -D
"ENABLE_WEBRTC=1" -D "ENABLE_PEPPER_CDMS" -D "ENABLE_CONFIGURATION_POLICY" -D
"ENABLE_INPUT_SPEECH" -D "ENABLE_NOTIFICATIONS" -D "USE_UDEV" -D
"ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC" -D "ENABLE_EGLIMAGE=1" -D
"ENABLE_TASK_MANAGER=1" -D "ENABLE_EXTENSIONS=1" -D
"ENABLE_PLUGIN_INSTALLATION=1" -D "ENABLE_PLUGINS=1" -D
"ENABLE_SESSION_SERVICE=1" -D "ENABLE_THEMES=1" -D "ENABLE_BACKGROUND=1" -D
"ENABLE_AUTOMATION=1" -D "ENABLE_GOOGLE_NOW=1" -D "CLD_VERSION=2" -D
"ENABLE_FULL_PRINTING=1" -D "ENABLE_PRINTING=1" -D "ENABLE_SPELLCHECK=1" -D
"ENABLE_CAPTIVE_PORTAL_DETECTION=1" -D "ENABLE_MANAGED_USERS=1" -D
"ENABLE_MDNS=1" -D "GL_GLEXT_PROTOTYPES" -D "BLINK_IMPLEMENTATION=1" -D
"INSIDE_BLINK" -D "ENABLE_CUSTOM_SCHEME_HANDLER=0" -D "ENABLE_SVG_FONTS=1" -D
"ENABLE_GDI_FONTS_ON_WINDOWS=0" -D "ENABLE_HARFBUZZ_ON_WINDOWS=1" -D
"WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" -D "ENABLE_INPUT_SPEECH=1" -D
"ENABLE_INPUT_MULTIPLE_FIELDS_UI=1" -D "ENABLE_LEGACY_NOTIFICATIONS=1" -D
"ENABLE_MEDIA_CAPTURE=0" -D "ENABLE_NAVIGATOR_CONTENT_UTILS=1" -D
"ENABLE_ORIENTATION_EVENTS=0" -D "ENABLE_WEB_AUDIO=1" -D
"WTF_USE_WEBAUDIO_FFMPEG=1" -D "ENABLE_OPENTYPE_VERTICAL=1" -D
"WTF_USE_DEFAULT_RENDER_THEME=1" -D "U_USING_ICU_NAMESPACE=0" -D
"U_STATIC_IMPLEMENTATION" -D "SK_ENABLE_INST_COUNT=0" -D "SK_SUPPORT_GPU=1" -D
"GR_GL_CUSTOM_SETUP_HEADER=\"GrGLConfig_chrome.h\"" -D
"SK_ENABLE_LEGACY_API_ALIASING=1" -D "SK_ATTR_DEPRECATED=SK_NOTHING_ARG1" -D
"SK_SUPPORT_LEGACY_COLORTYPE=1" -D "GR_GL_IGNORE_ES3_MSAA=0" -D
"SK_SUPPORT_DEPRECATED_SCALARROUND" -D "SK_IGNORE_64BIT_OPENGL_CHANGES=1" -D
"SK_USE_POSIX_THREADS" -D "SK_DEFERRED_CANVAS_USES_FACTORIES=1" -D
"CHROME_PNG_WRITE_SUPPORT" -D "PNG_USER_CONFIG" -D "LIBXML_STATIC" -D
"LIBXSLT_STATIC" -D "__STDC_CONSTANT_MACROS" -D "__STDC_FORMAT_MACROS" -D
"NDEBUG" -D "NVALGRIND" -D "DYNAMIC_ANNOTATIONS_ENABLED=0" -D
"_FORTIFY_SOURCE=2" -O2 -Werror -Wall -Wno-unused-parameter
-Wno-missing-field-initializers -Wheader-hygiene -Wno-char-subscripts
-Wno-unneeded-internal-declaration -Wno-covered-switch-default
-Wstring-conversion -Wno-c++11-narrowing -Wno-reserved-user-defined-literal
-Wno-deprecated-register -Wglobal-constructors -Wexit-time-destructors
-Wsign-compare -std=gnu++11 -fdeprecated-macro -ferror-limit 19
-fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread
-stack-protector 1 -stack-protector-buffer-size 4 -mstackrealign -fno-rtti
-fno-threadsafe-statics -fno-inline -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-load
/usr/local/google/home/alph/chromium2/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -x c++ InspectorTimelineAgent-134c89.cpp

-- 
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/20131224/1659e2cf/attachment.html>


More information about the llvm-bugs mailing list