New issue
Advanced search Search tips

Issue 595786 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

clang assert on invalid

Project Member Reported by ellyjo...@chromium.org, Mar 17 2016

Issue description

llvm failed an assertion:

alara$ ninja -C out/Debug views_examples_with_content_exe
ninja: Entering directory `out/Debug'
[6/19] CXX obj/ui/views/controls/combobox/views.combobox.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/ui/views/controls/combobox/views.combobox.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=262839-1 -DCOMPONENT_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DVIEWS_IMPLEMENTATION -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_SUPPORT_GPU=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -Igen -I../.. -I../../skia/config -I../../third_party/khronos -I../../gpu -Igen/angle -I../../skia/ext -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../../third_party/skia/include/utils/mac -I../../third_party/icu/source/i18n -I../../third_party/icu/source/common -Igen/ui/resources -Igen/ui/views/resources -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -O0 -fvisibility=hidden -Werror -mmacosx-version-min=10.6 -arch x86_64 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wpartial-availability -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 -Wno-shift-negative-value -std=c++11 -stdlib=libc++ -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -Xclang -load -Xclang /Users/ellyjones/p/chromium2/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-templates -Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion -fcolor-diagnostics -fno-strict-aliasing -fstack-protector-all  -c ../../ui/views/controls/combobox/combobox.cc -o obj/ui/views/controls/combobox/views.combobox.o
In file included from ../../ui/views/controls/combobox/combobox.cc:5:
../../ui/views/controls/combobox/combobox.h:186:10: error: field has incomplete type 'SkPath'
  SkPath border_clip_path_;
         ^
../../third_party/skia/include/core/SkRegion.h:15:7: note: forward declaration of 'SkPath'
class SkPath;
      ^
../../ui/views/controls/combobox/combobox.cc:352:24: error: no matching constructor for initialization of 'views::(anonymous namespace)::TransparentButton'
      text_button_(new TransparentButton(this)),
                       ^                 ~~~~
../../ui/views/controls/combobox/combobox.cc:95:3: note: candidate constructor not viable: no known conversion from 'views::Combobox *' to 'views::ButtonListener *' for 1st argument
  TransparentButton(ButtonListener* listener)
  ^
../../ui/views/controls/combobox/combobox.cc:111:28: note: candidate constructor not viable: no known conversion from 'views::Combobox *' to 'const views::(anonymous namespace)::TransparentButton' for 1st argument
  DISALLOW_COPY_AND_ASSIGN(TransparentButton);
                           ^
../../base/macros.h:26:3: note: expanded from macro 'DISALLOW_COPY_AND_ASSIGN'
  TypeName(const TypeName&);               \
  ^
../../ui/views/controls/combobox/combobox.cc:353:25: error: no matching constructor for initialization of 'views::(anonymous namespace)::TransparentButton'
      arrow_button_(new TransparentButton(this)),
                        ^                 ~~~~
../../ui/views/controls/combobox/combobox.cc:95:3: note: candidate constructor not viable: no known conversion from 'views::Combobox *' to 'views::ButtonListener *' for 1st argument
  TransparentButton(ButtonListener* listener)
  ^
../../ui/views/controls/combobox/combobox.cc:111:28: note: candidate constructor not viable: no known conversion from 'views::Combobox *' to 'const views::(anonymous namespace)::TransparentButton' for 1st argument
  DISALLOW_COPY_AND_ASSIGN(TransparentButton);
                           ^
../../base/macros.h:26:3: note: expanded from macro 'DISALLOW_COPY_AND_ASSIGN'
  TypeName(const TypeName&);               \
  ^
../../ui/views/controls/combobox/combobox.cc:356:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  SetFocusable(true);
  ^~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:383:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  AddChildView(text_button_);
  ^~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:384:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  AddChildView(arrow_button_);
  ^~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:388:7: error: no matching member function for call to 'GetInputMethod'
  if (GetInputMethod() && selector_.get()) {
      ^~~~~~~~~~~~~~
../../ui/views/view.h:697:20: note: candidate function not viable: no known conversion from 'views::Combobox' to 'views::View' for object argument
  ui::InputMethod* GetInputMethod() {
                   ^
../../ui/views/view.h:701:26: note: candidate function not viable: no known conversion from 'views::Combobox' to 'const views::View' for object argument
  const ui::InputMethod* GetInputMethod() const;
                         ^
../../ui/views/controls/combobox/combobox.cc:390:31: error: no matching member function for call to 'GetInputMethod'
    DCHECK(selector_.get() != GetInputMethod()->GetTextInputClient());
                              ^~~~~~~~~~~~~~
../../base/logging.h:676:54: note: expanded from macro 'DCHECK'
  LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() ? !(condition) : false) \
                                                     ^~~~~~~~~
../../base/logging.h:360:5: note: expanded from macro 'LAZY_STREAM'
  !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
    ^~~~~~~~~
../../ui/views/view.h:697:20: note: candidate function not viable: no known conversion from 'views::Combobox' to 'views::View' for object argument
  ui::InputMethod* GetInputMethod() {
                   ^
../../ui/views/view.h:701:26: note: candidate function not viable: no known conversion from 'views::Combobox' to 'const views::View' for object argument
  const ui::InputMethod* GetInputMethod() const;
                         ^
../../ui/views/controls/combobox/combobox.cc:410:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  PreferredSizeChanged();
  ^~~~~~~~~~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:423:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  PreferredSizeChanged();
  ^~~~~~~~~~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:431:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  SchedulePaint();
  ^~~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:458:3: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  SchedulePaint();
  ^~~~~~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:462:19: error: cannot initialize object parameter of type 'views::View' with an expression of type 'views::Combobox'
  PrefixDelegate::Layout();
                  ^~~~~~
../../ui/views/controls/combobox/combobox.cc:464:24: error: cannot initialize object parameter of type 'const views::View' with an expression of type 'views::Combobox'
  gfx::Insets insets = GetInsets();
                       ^~~~~~~~~
../../ui/views/controls/combobox/combobox.cc:470:28: error: cannot initialize object parameter of type 'const views::View' with an expression of type 'views::Combobox'
      arrow_button_width = width();
                           ^~~~~
../../ui/views/controls/combobox/combobox.cc:477:27: error: cannot initialize object parameter of type 'const views::View' with an expression of type 'views::Combobox'
      text_button_width = width() - arrow_button_width;
                          ^~~~~
../../ui/views/controls/combobox/combobox.cc:483:65: error: cannot initialize object parameter of type 'const views::View' with an expression of type 'views::Combobox'
  text_button_->SetBounds(0, 0, std::max(0, text_button_width), height());
                                                                ^~~~~~
../../ui/views/controls/combobox/combobox.cc:484:67: error: cannot initialize object parameter of type 'const views::View' with an expression of type 'views::Combobox'
  arrow_button_->SetBounds(arrow_button_x, 0, arrow_button_width, height());
                                                                  ^~~~~~
../../ui/views/controls/combobox/combobox.cc:513:24: error: cannot initialize object parameter of type 'const views::View' with an expression of type 'const views::Combobox'
  gfx::Insets insets = GetInsets();
                       ^~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[6/19] CXX obj/ui/views/test/views_test_support.combobox_test_api.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/ui/views/test/views_test_support.combobox_test_api.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=262839-1 -DCOMPONENT_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=0 -DTOOLKIT_VIEWS=1 -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_SUPPORT_GPU=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DUNIT_TEST -DGTEST_HAS_RTTI=0 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -Igen -I../../ui -I../.. -I../../skia/config -I../../third_party/khronos -I../../gpu -Igen/angle -I../../third_party/WebKit/Source -I../../skia/ext -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../../third_party/skia/include/utils/mac -I../../testing/gtest/include -I../../third_party/icu/source/i18n -I../../third_party/icu/source/common -Igen/ui/views/resources -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -O0 -fvisibility=hidden -Werror -mmacosx-version-min=10.6 -arch x86_64 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wpartial-availability -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 -Wno-shift-negative-value -std=c++11 -stdlib=libc++ -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -Xclang -load -Xclang /Users/ellyjones/p/chromium2/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-templates -Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion -fcolor-diagnostics -fno-strict-aliasing -fstack-protector-all  -c ../../ui/views/test/combobox_test_api.cc -o obj/ui/views/test/views_test_support.combobox_test_api.o
In file included from ../../ui/views/test/combobox_test_api.cc:11:
../../ui/views/controls/combobox/combobox.h:186:10: error: field has incomplete type 'SkPath'
  SkPath border_clip_path_;
         ^
../../third_party/skia/include/core/SkRegion.h:15:7: note: forward declaration of 'SkPath'
class SkPath;
      ^
Assertion failed: (DD && "queried property of class with no definition"), function data, file /work/chromium/src/third_party/llvm/tools/clang/include/clang/AST/DeclCXX.h, line 600.
0  clang                      0x0000000109eb185b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  clang                      0x0000000109eb0a76 llvm::sys::RunSignalHandlers() + 70
2  clang                      0x0000000109eb20d4 abort + 916
3  libsystem_platform.dylib   0x00007fff8f7bbeaa _sigtramp + 26
4  clang                      0x000000010c52d159 clang::Stmt::StatisticsEnabled + 106264
5  clang                      0x0000000109eb1d4e abort + 14
6  clang                      0x0000000109eb1d31 __assert_rtn + 81
7  libFindBadConstructs.dylib 0x000000010cb9fc05 chrome_checker::FindBadConstructsConsumer::CountType(clang::Type const*, int*, int*, int*) + 549
8  libFindBadConstructs.dylib 0x000000010cb9dc69 chrome_checker::FindBadConstructsConsumer::CheckCtorDtorWeight(clang::SourceLocation, clang::CXXRecordDecl*) + 377
9  libFindBadConstructs.dylib 0x000000010cb9da51 chrome_checker::FindBadConstructsConsumer::CheckChromeClass(clang::SourceLocation, clang::CXXRecordDecl*) + 241
10 libFindBadConstructs.dylib 0x000000010cb99e0a ChromeClassTester::CheckTag(clang::TagDecl*) + 362
11 libFindBadConstructs.dylib 0x000000010cba2e41 clang::RecursiveASTVisitor<chrome_checker::FindBadConstructsConsumer>::TraverseCXXRecordDecl(clang::CXXRecordDecl*) + 49
12 libFindBadConstructs.dylib 0x000000010cb9d59d clang::RecursiveASTVisitor<chrome_checker::FindBadConstructsConsumer>::TraverseDecl(clang::Decl*) + 605
13 libFindBadConstructs.dylib 0x000000010cba4d0c clang::RecursiveASTVisitor<chrome_checker::FindBadConstructsConsumer>::TraverseDeclContextHelper(clang::DeclContext*) + 92
14 libFindBadConstructs.dylib 0x000000010cb9d3d3 clang::RecursiveASTVisitor<chrome_checker::FindBadConstructsConsumer>::TraverseDecl(clang::Decl*) + 147
15 libFindBadConstructs.dylib 0x000000010cba4d0c clang::RecursiveASTVisitor<chrome_checker::FindBadConstructsConsumer>::TraverseDeclContextHelper(clang::DeclContext*) + 92
16 libFindBadConstructs.dylib 0x000000010cb9d3d3 clang::RecursiveASTVisitor<chrome_checker::FindBadConstructsConsumer>::TraverseDecl(clang::Decl*) + 147
17 libFindBadConstructs.dylib 0x000000010cb9d318 chrome_checker::FindBadConstructsConsumer::Traverse(clang::ASTContext&) + 40
18 clang                      0x000000010a4969fc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44
19 clang                      0x000000010a9ffc95 clang::ParseAST(clang::Sema&, bool, bool) + 581
20 clang                      0x000000010a45d999 clang::FrontendAction::Execute() + 73
21 clang                      0x000000010a4219a1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1089
22 clang                      0x000000010a4b5a7c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4300
23 clang                      0x0000000108bab023 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1363
24 clang                      0x0000000108ba9a03 main + 11763
25 clang                      0x0000000108ba6ba4 start + 52
Stack dump:
0.	Program arguments: /Users/ellyjones/p/chromium2/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.6.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -main-file-name combobox_test_api.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 242 -dwarf-column-info -debugger-tuning=lldb -coverage-file /Users/ellyjones/p/chromium2/src/out/Debug/obj/ui/views/test/views_test_support.combobox_test_api.o -resource-dir /Users/ellyjones/p/chromium2/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.9.0 -dependency-file obj/ui/views/test/views_test_support.combobox_test_api.o.d -MT obj/ui/views/test/views_test_support.combobox_test_api.o -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -D V8_DEPRECATION_WARNINGS -D CLD_VERSION=2 -D __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D CHROMIUM_BUILD -D CR_CLANG_REVISION=262839-1 -D COMPONENT_BUILD -D USE_LIBJPEG_TURBO=1 -D ENABLE_WEBRTC=1 -D ENABLE_MEDIA_ROUTER=1 -D ENABLE_PEPPER_CDMS -D ENABLE_CONFIGURATION_POLICY -D ENABLE_NOTIFICATIONS -D ENABLE_TOPCHROME_MD=1 -D FIELDTRIAL_TESTING_ENABLED -D ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D ENABLE_PDF=1 -D ENABLE_PLUGIN_INSTALLATION=1 -D ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D ENABLE_AUTOFILL_DIALOG=1 -D ENABLE_PRINTING=1 -D ENABLE_BASIC_PRINTING=1 -D ENABLE_PRINT_PREVIEW=1 -D ENABLE_SPELLCHECK=1 -D USE_BROWSER_SPELLCHECKER=1 -D ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D ENABLE_APP_LIST=1 -D ENABLE_SETTINGS_APP=1 -D ENABLE_SUPERVISED_USERS=1 -D ENABLE_SERVICE_DISCOVERY=1 -D V8_USE_EXTERNAL_STARTUP_DATA -D FULL_SAFE_BROWSING -D SAFE_BROWSING_CSD -D SAFE_BROWSING_DB_LOCAL -D GTEST_HAS_POSIX_RE=0 -D GTEST_LANG_CXX11=0 -D TOOLKIT_VIEWS=1 -D SKIA_DLL -D GR_GL_IGNORE_ES3_MSAA=0 -D SK_SUPPORT_GPU=1 -D SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -D UNIT_TEST -D GTEST_HAS_RTTI=0 -D U_USING_ICU_NAMESPACE=0 -D U_ENABLE_DYLOAD=0 -D USE_LIBPCI=1 -D USE_OPENSSL=1 -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -I gen -I ../../ui -I ../.. -I ../../skia/config -I ../../third_party/khronos -I ../../gpu -I gen/angle -I ../../third_party/WebKit/Source -I ../../skia/ext -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 ../../third_party/skia/include/utils/mac -I ../../testing/gtest/include -I ../../third_party/icu/source/i18n -I ../../third_party/icu/source/common -I gen/ui/views/resources -stdlib=libc++ -O0 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wpartial-availability -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 -Wno-shift-negative-value -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/ellyjones/p/chromium2/src/out/Debug -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 3 -fblocks -fno-rtti -fno-threadsafe-statics -fobjc-runtime=macosx-10.6.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -load /Users/ellyjones/p/chromium2/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -add-plugin find-bad-constructs -plugin-arg-find-bad-constructs check-templates -plugin-arg-find-bad-constructs follow-macro-expansion -o obj/ui/views/test/views_test_support.combobox_test_api.o -x c++ ../../ui/views/test/combobox_test_api.cc 
1.	<eof> parser at end of file
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.9.0 (trunk 262839)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
InstalledDir: /Users/ellyjones/p/chromium2/src/out/Debug/../../third_party/llvm-build/Release+Asserts/bin
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: /var/folders/15/rkc17cps0w93g7w_hf1ktb1c003h8w/T/combobox_test_api-b9aab7.cpp
clang: note: diagnostic msg: /var/folders/15/rkc17cps0w93g7w_hf1ktb1c003h8w/T/combobox_test_api-b9aab7.sh
clang: note: diagnostic msg: 

 
llvm-crash.cpp
10.7 MB View Download
llvm-crash.sh
11.1 KB View Download

Comment 1 by thakis@chromium.org, Mar 17 2016

Cc: r...@chromium.org thakis@chromium.org p...@chromium.org h...@chromium.org
Labels: Build Clang OS-All
Owner: ----
Summary: clang assert on invalid (was: llvm assertion failure)
Need to check if this still repros on trunk, and if so file upstream. If nobody beats me to it, I'll try to get to this on monday.

Comment 2 by thakis@chromium.org, Mar 17 2016

Cc: dcheng@chromium.org
Actually, that's from FindBadConstructsConsumer, so it's not a clang bug but a plugin bug.

dcheng, blame says you touched CountType() a while ago -- wanna take a look?

Comment 3 by dcheng@chromium.org, Mar 17 2016

Cc: -dcheng@chromium.org
Owner: dcheng@chromium.org
Status: Started (was: Untriaged)
Pretty trivial fix, we just need to check that we have a definition before trying to test if it has a trivial destructor.
Project Member

Comment 4 by bugdroid1@chromium.org, Mar 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e264c3e8bdfc81c21ad0248624e5f2d67007450a

commit e264c3e8bdfc81c21ad0248624e5f2d67007450a
Author: dcheng <dcheng@chromium.org>
Date: Tue Mar 22 21:56:38 2016

chrome style plugin: Don't crash when checking class weight.

It's impossible to determine if an incomplete type has a trivial
destructor when counting the 'weight' of a class' fields, so check if
the type has a definition first.

BUG= 595786 

Review URL: https://codereview.chromium.org/1816283003

Cr-Commit-Position: refs/heads/master@{#382695}

[modify] https://crrev.com/e264c3e8bdfc81c21ad0248624e5f2d67007450a/tools/clang/plugins/FindBadConstructsConsumer.cpp
[add] https://crrev.com/e264c3e8bdfc81c21ad0248624e5f2d67007450a/tools/clang/plugins/tests/class_with_incomplete_type.cpp
[add] https://crrev.com/e264c3e8bdfc81c21ad0248624e5f2d67007450a/tools/clang/plugins/tests/class_with_incomplete_type.h
[add] https://crrev.com/e264c3e8bdfc81c21ad0248624e5f2d67007450a/tools/clang/plugins/tests/class_with_incomplete_type.txt

Comment 5 by dcheng@chromium.org, Mar 22 2016

Status: Fixed (was: Started)
Should be fixed the next time the clang plugin is revved.

Sign in to add a comment