[LLVMbugs] [Bug 22804] New: Crash in clang::MemberExpr::MemberExpr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 5 05:49:57 PST 2015


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

            Bug ID: 22804
           Summary: Crash in clang::MemberExpr::MemberExpr
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yurys at chromium.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13987
  --> http://llvm.org/bugs/attachment.cgi?id=13987&action=edit
header

On attempt to build Chromium I'm getting the following crash.

$ ninja -C out/Release chrome blink_tests -j500 
ninja: Entering directory `out/Release'
[1/15] CXX
obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o
FAILED: /usr/local/google/home/yurys/goma/gomacc
/sources/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD
-MF
obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o.d
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD
-DCR_CLANG_REVISION=223108 -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT
-DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1
-DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1
-DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP
-DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS
-DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV
-DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1
-DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1
-DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1
-DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1
-DV8_USE_EXTERNAL_STARTUP_DATA -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK
-DENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0
-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_INPUT_MULTIPLE_FIELDS_UI=1
-DENABLE_WEB_AUDIO=1 -DWTF_USE_WEBAUDIO_FFMPEG=1
-DWTF_USE_DEFAULT_RENDER_THEME=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0
-DU_STATIC_IMPLEMENTATION -DSK_SUPPORT_GPU=1 -DSK_LEGACY_DRAWPICTURECALLBACK
-DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DLIBXML_STATIC -DLIBXSLT_STATIC
-DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0
-Igen -I../../third_party/WebKit/Source -I../.. -I../../skia/config
-I../../third_party/khronos -I../../gpu -Igen/blink
-I../../third_party/angle/include -I../../third_party/ffmpeg
-I../../third_party/icu/source/i18n -I../../third_party/icu/source/common
-I../../third_party/WebKit -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
-fstack-protector --param=ssp-buffer-size=4 -Werror -pthread
-fno-strict-aliasing -Wall -Wno-unused-parameter
-Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC
-Wno-reserved-user-defined-literal -Xclang -load -Xclang
/sources/chromium/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-Xclang -add-plugin -Xclang find-bad-constructs -Xclang
-plugin-arg-find-bad-constructs -Xclang check-weak-ptr-factory-order -Xclang
-plugin-arg-find-bad-constructs -Xclang strict-virtual-specifiers
-fcolor-diagnostics
-B/sources/chromium/src/third_party/binutils/Linux_x64/Release/bin
-Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing
-Wno-deprecated-register -Wno-inconsistent-missing-override
-Wglobal-constructors -Wexit-time-destructors -fno-strict-aliasing -Xclang
-load -Xclang
/sources/chromium/src/third_party/llvm-build/Release+Asserts/lib/libBlinkGCPlugin_14.so
-Xclang -add-plugin -Xclang blink-gc-plugin -I/usr/include/freetype2 -m64
-march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections
-funwind-tables -fno-exceptions -fno-rtti -fno-threadsafe-statics
-fvisibility-inlines-hidden -Wsign-compare -std=gnu++11  -c
../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp -o
obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o
../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:293:5: error:
use of undeclared identifier 'm_sourceMapUrl'; did you mean 'm_sourceMapURL'?
    m_sourceMapUrl = response.httpHeaderField("SourceMap");
    ^~~~~~~~~~~~~~
    m_sourceMapURL
../../third_party/WebKit/Source/core/css/StyleSheetContents.h:196:12: note:
'm_sourceMapURL' declared here
    String m_sourceMapURL;
           ^
../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:294:9: error:
use of undeclared identifier 'm_sourceMapUrl'
    if (m_sourceMapUrl.isEmpty()) {
        ^
../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:296:9: error:
use of undeclared identifier 'm_sourceMapUrl'; did you mean 'm_sourceMapURL'?
        m_sourceMapUrl = response.httpHeaderField("X-SourceMap");
        ^~~~~~~~~~~~~~
        m_sourceMapURL
../../third_party/WebKit/Source/core/css/StyleSheetContents.h:196:12: note:
'm_sourceMapURL' declared here
    String m_sourceMapURL;
           ^
clang:
/work/chromium/src/third_party/llvm/tools/clang/include/clang/AST/Expr.h:2378:
clang::MemberExpr::MemberExpr(clang::Expr *, bool, clang::ValueDecl *, const
clang::DeclarationNameInfo &, clang::QualType, clang::ExprValueKind,
clang::ExprObjectKind): Assertion `memberdecl->getDeclName() ==
NameInfo.getName()' failed.
0  clang     0x000000000141c848 llvm::sys::PrintStackTrace(_IO_FILE*) + 40
1  clang     0x000000000141de0b
2  libc.so.6 0x00007f3969c6dd40
3  libc.so.6 0x00007f3969c6dcc9 gsignal + 57
4  libc.so.6 0x00007f3969c710d8 abort + 328
5  libc.so.6 0x00007f3969c66b86
6  libc.so.6 0x00007f3969c66c32
7  clang     0x000000000274d47a clang::MemberExpr::Create(clang::ASTContext
const&, clang::Expr*, bool, clang::NestedNameSpecifierLoc,
clang::SourceLocation, clang::ValueDecl*, clang::DeclAccessPair,
clang::DeclarationNameInfo, clang::TemplateArgumentListInfo const*,
clang::QualType, clang::ExprValueKind, clang::ExprObjectKind) + 634
8  clang     0x00000000021f9ab5
9  clang     0x00000000021f89ba
clang::Sema::BuildMemberReferenceExpr(clang::Expr*, clang::QualType,
clang::SourceLocation, bool, clang::CXXScopeSpec const&, clang::SourceLocation,
clang::NamedDecl*, clang::LookupResult&, clang::TemplateArgumentListInfo
const*, bool, clang::Sema::ActOnMemberAccessExtraArgs*) + 3146
10 clang     0x00000000021f2a1a
clang::Sema::BuildImplicitMemberExpr(clang::CXXScopeSpec const&,
clang::SourceLocation, clang::LookupResult&, clang::TemplateArgumentListInfo
const*, bool) + 346
11 clang     0x00000000021f2619
clang::Sema::BuildPossibleImplicitMemberExpr(clang::CXXScopeSpec const&,
clang::SourceLocation, clang::LookupResult&, clang::TemplateArgumentListInfo
const*) + 1369
12 clang     0x00000000021d2d7f
13 clang     0x00000000021d5f3d
14 clang     0x00000000021d7bac
15 clang     0x00000000021d5f3d
16 clang     0x00000000021d7bac
17 clang     0x00000000021eebbb
18 clang     0x00000000021d7c0c
19 clang     0x00000000021bbbbd
clang::Sema::CorrectDelayedTyposInExpr(clang::Expr*,
llvm::function_ref<clang::ActionResult<clang::Expr*, true> (clang::Expr*)>) +
621
20 clang     0x00000000021bc5b4 clang::Sema::ActOnFinishFullExpr(clang::Expr*,
clang::SourceLocation, bool, bool, bool) + 260
21 clang     0x00000000022c938a
clang::Sema::ActOnExprStmt(clang::ActionResult<clang::Expr*, true>) + 58
22 clang     0x0000000001e4e96b
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 3531
23 clang     0x0000000001e4db0f
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 143
24 clang     0x0000000001e551ef clang::Parser::ParseCompoundStatementBody(bool)
+ 1839
25 clang     0x0000000001e55b03
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 195
26 clang     0x0000000001dd7b7b
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
1867
27 clang     0x0000000001de9973
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2515
28 clang     0x0000000001dd71ac
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 796
29 clang     0x0000000001dd6b8c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 412
30 clang     0x0000000001dd5e42
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 2930
31 clang     0x0000000001dfd6d9
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 313
32 clang     0x0000000001dfcef0 clang::Parser::ParseNamespace(unsigned int,
clang::SourceLocation&, clang::SourceLocation) + 6080
33 clang     0x0000000001de4ea6 clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 422
34 clang     0x0000000001dd5983
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1715
35 clang     0x0000000001dd519f
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 463
36 clang     0x0000000001dd0f16 clang::ParseAST(clang::Sema&, bool, bool) + 422
37 clang     0x00000000015bb91e clang::FrontendAction::Execute() + 62
38 clang     0x000000000158d35c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 892
39 clang     0x000000000163e7ea
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3114
40 clang     0x00000000006d1b5c cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 684
41 clang     0x00000000006d0589 main + 12089
42 libc.so.6 0x00007f3969c58ec5 __libc_start_main + 245
43 clang     0x00000000006cd52d
Stack dump:
0.    Program arguments:
/sources/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
StyleSheetContents.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -ffunction-sections -fdata-sections -coverage-file
/sources/chromium/src/out/Release/obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o
-resource-dir
/sources/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.6.0
-dependency-file
obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o.d
-MT
obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o
-D V8_DEPRECATION_WARNINGS -D _FILE_OFFSET_BITS=64 -D CHROMIUM_BUILD -D
CR_CLANG_REVISION=223108 -D TOOLKIT_VIEWS=1 -D UI_COMPOSITOR_IMAGE_TRANSPORT -D
USE_AURA=1 -D USE_ASH=1 -D USE_PANGO=1 -D USE_CAIRO=1 -D
USE_DEFAULT_RENDER_THEME=1 -D USE_LIBJPEG_TURBO=1 -D USE_X11=1 -D
USE_CLIPBOARD_AURAX11=1 -D ENABLE_ONE_CLICK_SIGNIN -D ENABLE_PRE_SYNC_BACKUP -D
ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D ENABLE_PEPPER_CDMS -D
ENABLE_CONFIGURATION_POLICY -D ENABLE_NOTIFICATIONS -D USE_UDEV -D
DONT_EMBED_BUILD_METADATA -D ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D
ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D
ENABLE_AUTOFILL_DIALOG=1 -D ENABLE_BACKGROUND=1 -D ENABLE_GOOGLE_NOW=1 -D
CLD_VERSION=2 -D ENABLE_PRINTING=1 -D ENABLE_BASIC_PRINTING=1 -D
ENABLE_PRINT_PREVIEW=1 -D ENABLE_SPELLCHECK=1 -D
ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D ENABLE_APP_LIST=1 -D ENABLE_SETTINGS_APP=1
-D ENABLE_SUPERVISED_USERS=1 -D ENABLE_MDNS=1 -D ENABLE_SERVICE_DISCOVERY=1 -D
V8_USE_EXTERNAL_STARTUP_DATA -D BLINK_IMPLEMENTATION=1 -D INSIDE_BLINK -D
ENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0 -D
WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -D ENABLE_INPUT_MULTIPLE_FIELDS_UI=1
-D ENABLE_WEB_AUDIO=1 -D WTF_USE_WEBAUDIO_FFMPEG=1 -D
WTF_USE_DEFAULT_RENDER_THEME=1 -D U_USING_ICU_NAMESPACE=0 -D U_ENABLE_DYLOAD=0
-D U_STATIC_IMPLEMENTATION -D SK_SUPPORT_GPU=1 -D SK_LEGACY_DRAWPICTURECALLBACK
-D CHROME_PNG_WRITE_SUPPORT -D PNG_USER_CONFIG -D LIBXML_STATIC -D
LIBXSLT_STATIC -D USE_LIBPCI=1 -D USE_GLIB=1 -D USE_NSS=1 -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D NDEBUG -D NVALGRIND -D
DYNAMIC_ANNOTATIONS_ENABLED=0 -I gen -I ../../third_party/WebKit/Source -I
../.. -I ../../skia/config -I ../../third_party/khronos -I ../../gpu -I
gen/blink -I ../../third_party/angle/include -I ../../third_party/ffmpeg -I
../../third_party/icu/source/i18n -I ../../third_party/icu/source/common -I
../../third_party/WebKit -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/freetype2 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem /usr/local/include -internal-isystem
/sources/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.6.0/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
-Wno-reserved-user-defined-literal -Wheader-hygiene -Wno-char-subscripts
-Wno-unneeded-internal-declaration -Wno-covered-switch-default
-Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register
-Wno-inconsistent-missing-override -Wglobal-constructors
-Wexit-time-destructors -Wsign-compare -std=gnu++11 -fdeprecated-macro
-fdebug-compilation-dir /sources/chromium/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 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -load
/sources/chromium/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -plugin-arg-find-bad-constructs
check-weak-ptr-factory-order -plugin-arg-find-bad-constructs
strict-virtual-specifiers -load
/sources/chromium/src/third_party/llvm-build/Release+Asserts/lib/libBlinkGCPlugin_14.so
-add-plugin blink-gc-plugin -o
obj/third_party/WebKit/Source/core/css/webcore_remaining.StyleSheetContents.o
-x c++ ../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp 
1.    ../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:301:5:
current parser token 'CSSParserContext'
2.    ../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:40:1:
parsing namespace 'blink'
3.    ../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:282:1:
parsing function body 'parseAuthorStyleSheet'
4.    ../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp:282:1: in
compound statement ('{}')
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.6.0 (trunk 223108)
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/StyleSheetContents-9deaf6.cpp
clang: note: diagnostic msg: /tmp/StyleSheetContents-9deaf6.sh
clang: note: diagnostic msg: 

********************
ninja: build stopped: subcommand failed.

-- 
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/20150305/73847d9c/attachment.html>


More information about the llvm-bugs mailing list