Closed nico closed 13 years ago
Thanks for the fix!
Are you planning on merging it to the 3.0 branch?
Merged into the 3.0 branch as r142094.
Thanks for the fix!
Are you planning on merging it to the 3.0 branch?
Fixed in r142058. Bad assumption about SCEV expression types, which are currently unreliable.
assigned to @atrick
Extended Description
I'm using clang r142009 from earlier today.
__Distributed-CompileC ../../../../../xcodebuild/WebCore.build/Release/webcore_platform.build/Objects-normal/i386/ShadowBlur.o cd /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp setenv DISTCC_HOSTS goma,cpp,lzo setenv INCLUDE_SERVER_DIR /tmp/distcc-pump.tZs2MN setenv INCLUDE_SERVER_PID 1370 setenv INCLUDE_SERVER_PORT /tmp/distcc-pump.tZs2MN/socket setenv LANG en_US.US-ASCII setenv PATH "/usr/bin:/Developer/usr/bin:/b/build/../depot_tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" /b/build/goma/gomacc /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../third_party/llvm-build/Release+Asserts/bin/clang -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -O3 -Werror -Wnewline-eof -DCHROMIUM_BUILD -DENABLE_REMOTING=1 -DENABLE_P2P_APIS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DDCHECK_ALWAYS_ON=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DENABLE_REGISTER_PROTOCOL_HANDLER=1 "-DWEBCORE_NAVIGATOR_VENDOR=\"Google Inc.\"" -DWEBCORE_NAVIGATOR_PLATFORM="MacIntel" -DWebCascadeList=ChromiumWebCoreObjCWebCascadeList -DScrollbarPrefsObserver=ChromiumWebCoreObjCScrollbarPrefsObserver -DWebCoreRenderThemeNotificationObserver=ChromiumWebCoreObjCWebCoreRenderThemeNotificationObserver -DWebFontCache=ChromiumWebCoreObjCWebFontCache -DScrollAnimationHelperDelegate=ChromiumWebCoreObjCScrollAnimationHelperDelegate -DScrollbarPainterControllerDelegate=ChromiumWebCoreObjCScrollbarPainterControllerDelegate -DScrollbarPainterDelegate=ChromiumWebCoreObjCScrollbarPainterDelegate -DScrollbarPartAnimation=ChromiumWebCoreObjCScrollbarPartAnimation -DENABLE_3D_PLUGIN=1 -DENABLE_BLOB=1 -DENABLE_BLOB_SLICE=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_CLIENT_BASED_GEOLOCATION=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_DATA_TRANSFER_ITEMS=1 -DENABLE_DETAILS=1 -DENABLE_DEVICE_ORIENTATION=1 -DENABLE_DIRECTORY_UPLOAD=1 -DENABLE_DOM_STORAGE=1 -DENABLE_DOWNLOAD_ATTRIBUTE=1 -DENABLE_FILE_SYSTEM=1 -DENABLE_FILTERS=1 -DENABLE_FULLSCREEN_API=1 -DENABLE_GAMEPAD=1 -DENABLE_GEOLOCATION=1 -DENABLE_GESTURE_EVENTS=1 -DENABLE_GESTURE_RECOGNIZER=1 -DENABLE_ICONDATABASE=0 -DENABLE_INDEXED_DATABASE=1 -DENABLE_INPUT_SPEECH=1 -DENABLE_INPUT_TYPE_COLOR=0 -DENABLE_INPUT_TYPE_DATE=0 -DENABLE_INPUT_TYPE_DATETIME=0 -DENABLE_INPUT_TYPE_DATETIMELOCAL=0 -DENABLE_INPUT_TYPE_MONTH=0 -DENABLE_INPUT_TYPE_TIME=0 -DENABLE_INPUT_TYPE_WEEK=0 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_JAVASCRIPT_I18N_API=1 -DENABLE_LINK_PREFETCH=1 -DENABLE_MEDIA_STATISTICS=1 -DENABLE_MEDIA_STREAM=1 -DENABLE_METER_TAG=1 -DENABLE_MHTML=1 -DENABLE_MICRODATA=0 -DENABLE_MUTATION_OBSERVERS=0 -DENABLE_NOTIFICATIONS=1 -DENABLE_ORIENTATION_EVENTS=0 -DENABLE_PAGE_VISIBILITY_API=1 -DENABLE_PROGRESS_TAG=1 -DENABLE_QUOTA=1 -DENABLE_REQUEST_ANIMATION_FRAME=1 -DENABLE_RUBY=1 -DENABLE_SANDBOX=1 -DENABLE_SHARED_WORKERS=1 -DENABLE_SKIA_GPU=0 -DENABLE_SKIA_TEXT=0 -DENABLE_SMOOTH_SCROLLING=1 -DENABLE_SQL_DATABASE=1 -DENABLE_SVG=0 -DENABLE_SVG_FONTS=0 -DENABLE_TOUCH_EVENTS=1 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_V8_SCRIPT_DEBUG_SERVER=1 -DENABLE_VIDEO=1 -DENABLE_VIDEO_TRACK=1 -DENABLE_WEBGL=1 -DENABLE_WEB_SOCKETS=1 -DENABLE_WEB_TIMING=1 -DENABLE_WORKERS=1 -DENABLE_XHR_RESPONSE_BLOB=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DWTF_USE_LEVELDB=1 -DWTF_USE_BUILTIN_UTF8_CODEC=1 -DWTF_USE_OPENTYPE_SANITIZER=1 -DWTF_USE_WEBP=1 -DWTF_USE_WEBKIT_IMAGE_DECODERS=1 -DENABLE_WEB_AUDIO=1 -DWTF_USE_ACCELERATED_COMPOSITING=1 -DENABLE_3D_RENDERING=1 -DENABLE_RUBBER_BANDING=1 -DWTF_USE_SKIA_ON_MAC_CHROMIUM=0 -DBUILDING_CHROMIUM=1 -DUSE_SYSTEM_MALLOC=1 -DWTF_USE_NEW_THEME=1 -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DSK_BUILD_NO_IMAGE_ENCODE -DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -DGR_AGGRESSIVE_SHADER_OPTS=1 -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DLIBXML_STATIC -DLIBXSLT_STATIC -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -mmacosx-version-min=10.5 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-char-subscripts -Wno-unused-function -Wno-unnamed-type-template-args -Wno-c++0x-compat -fpch-preprocess -F/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/Release -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks -I/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/Release/include -I../../../../icu/public/common -I../../../../icu/public/i18n -I../../../WebKitLibraries -I../../../../../gpu -I../../../../.. -I/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/WebCore.build/DerivedSources/Release -I../platform/graphics/cocoa -I../platform/graphics/cg -I.. -I../.. -I../accessibility -I../accessibility/chromium -I../bindings -I../bindings/generic -I../bindings/v8 -I../bindings/v8/custom -I../bindings/v8/specialization -I../bridge -I../bridge/jni -I../bridge/jni/v8 -I../css -I../dom -I../dom/default -I../editing -I../fileapi -I../history -I../html -I../html/canvas -I../html/parser -I../html/shadow -I../html/track -I../inspector -I../loader -I../loader/appcache -I../loader/archive -I../loader/archive/cf -I../loader/archive/mhtml -I../loader/cache -I../loader/icon -I../mathml -I../notifications -I../p2p -I../page -I../page/animation -I../page/chromium -I../platform -I../platform/animation -I../platform/audio -I../platform/audio/chromium -I../platform/chromium -I../platform/graphics -I../platform/graphics/chromium -I../platform/graphics/filters -I../platform/graphics/filters/arm -I../platform/graphics/gpu -I../platform/graphics/opentype -I../platform/graphics/skia -I../platform/graphics/transforms -I../platform/image-decoders -I../platform/image-decoders/bmp -I../platform/image-decoders/gif -I../platform/image-decoders/ico -I../platform/image-decoders/jpeg -I../platform/image-decoders/png -I../platform/image-decoders/skia -I../platform/image-decoders/xbm -I../platform/image-decoders/webp -I../platform/image-encoders/skia -I../platform/leveldb -I../platform/mediastream -I../platform/mock -I../platform/network -I../platform/network/chromium -I../platform/sql -I../platform/text -I../platform/text/transcoder -I../plugins -I../plugins/chromium -I../rendering -I../rendering/style -I../rendering/svg -I../storage -I../storage/chromium -I../svg -I../svg/animation -I../svg/graphics -I../svg/graphics/filters -I../svg/properties -I../../ThirdParty/glu -I../webaudio -I../websockets -I../workers -I../xml -I../xml/parser -I../platform/audio/mac -I../platform/cocoa -I../platform/graphics/mac -I../platform/mac -I../platform/text/mac -I../../../../../third_party/angle/include/GLSLANG -I/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/DerivedSources/Release/webkit -I/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/DerivedSources/Release/webkit/bindings -I../../JavaScriptCore -I../../JavaScriptCore/wtf -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../../../../../skia/ext -I../../../../../third_party/skia/include/utils/mac -I../../../../iccjpeg -I../../../../libwebp -I../../../../libpng -I../../../../zlib -I../../../../libxml/mac/include -I../../../../libxml/src/include -I../../../../libxslt -I../../../../npapi -I../../../../npapi/bindings -I../../../../ots/include -I../../../../sqlite -I../../../../../v8/include -I../../../../libjpeg_turbo -I../../../../leveldatabase/src/include -I../../../../leveldatabase/src -I/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/WebCore.build/Release/webcore_platform.build/DerivedSources/i386 -I/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/WebCore.build/Release/webcore_platform.build/DerivedSources -fno-strict-aliasing -Xclang -load -Xclang /b/build/slave/mac/build/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -include /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../WebCorePrefix.h -c /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../platform/graphics/ShadowBlur.cpp -o /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../../../../../xcodebuild/WebCore.build/Release/webcore_platform.build/Objects-normal/i386/ShadowBlur.o Assertion failed: (isa(Val) && "cast() argument of incompatible type!"), function cast, file /Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/include/llvm/Support/Casting.h, line 194.
0 clang 0x00000001013bac82 PrintStackTrace(void) + 34
1 clang 0x00000001013bb269 SignalHandler(int) + 713
2 libSystem.B.dylib 0x00007fff8831f1ba _sigtramp + 26
3 clang 0x0000000101901a50 vtable for llvm::CallbackVH + 16
4 clang 0x000000010001d726 abort + 22
5 clang 0x000000010001d778 __assert_rtn + 56
6 clang 0x000000010124d8bd llvm::SCEVExpander::isExpandedAddRecExprPHI(llvm::PHINode, llvm::Instruction, llvm::Loop const, llvm::Type) + 569
7 clang 0x0000000101251e9e llvm::SCEVExpander::getAddRecExprPHILiterally(llvm::SCEVAddRecExpr const, llvm::Loop const, llvm::Type, llvm::Type) + 370
8 clang 0x0000000101252a82 llvm::SCEVExpander::expandAddRecExprLiterally(llvm::SCEVAddRecExpr const) + 618
9 clang 0x0000000101250d2b llvm::SCEVExpander::visitAddRecExpr(llvm::SCEVAddRecExpr const) + 47
10 clang 0x0000000101255288 llvm::SCEVVisitor<llvm::SCEVExpander, llvm::Value>::visit(llvm::SCEV const) + 382
11 clang 0x00000001012501be llvm::SCEVExpander::expand(llvm::SCEV const) + 554
12 clang 0x000000010124ff19 llvm::SCEVExpander::expandCodeFor(llvm::SCEV const, llvm::Type) + 37
13 clang 0x00000001010c9e97 (anonymous namespace)::LSRInstance::Expand((anonymous namespace)::LSRFixup const&, (anonymous namespace)::Formula const&, llvm::ilist_iterator, llvm::SCEVExpander&, llvm::SmallVectorImpl&) const + 1959
14 clang 0x00000001010d222f (anonymous namespace)::LSRInstance::LSRInstance(llvm::TargetLowering const, llvm::Loop, llvm::Pass) + 30361
15 clang 0x00000001010d2c01 (anonymous namespace)::LoopStrengthReduce::runOnLoop(llvm::Loop, llvm::LPPassManager&) + 45
16 clang 0x0000000101202fb1 llvm::LPPassManager::runOnFunction(llvm::Function&) + 835
17 clang 0x0000000101321d5d llvm::FPPassManager::runOnFunction(llvm::Function&) + 341
18 clang 0x000000010131d37b llvm::FPPassManager::runOnModule(llvm::Module&) + 61
19 clang 0x0000000101321a6a llvm::MPPassManager::runOnModule(llvm::Module&) + 318
20 clang 0x0000000101322e71 llvm::PassManagerImpl::run(llvm::Module&) + 303
21 clang 0x0000000101322ef1 llvm::PassManager::run(llvm::Module&) + 13
22 clang 0x00000001001589d5 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module, clang::BackendAction, llvm::raw_ostream) + 4661
23 clang 0x000000010022e7e2 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 278
24 clang 0x000000010006a8c4 clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 66
25 clang 0x000000010025074f clang::ParseAST(clang::Sema&, bool) + 431
26 clang 0x000000010022d7ce clang::CodeGenAction::ExecuteAction() + 852
27 clang 0x0000000100039e42 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 958
28 clang 0x00000001000253b1 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 2177
29 clang 0x000000010001f47b cc1_main(char const, char const, char const, void*) + 2923
30 clang 0x0000000100022430 main + 640
31 clang 0x000000010001e904 start + 52
Stack dump:
I'll try to come up with a reduced repro.