LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 11138 - Regression(141895?): clang crashes when compiling webkit
Summary: Regression(141895?): clang crashes when compiling webkit
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: LLVM Codegen (show other bugs)
Version: unspecified
Hardware: PC All
: P normal
Assignee: Andrew Trick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 22:56 PDT by Nico Weber
Modified: 2011-10-15 21:10 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments
repro (289.81 KB, application/x-bzip2)
2011-10-14 23:27 PDT, Nico Weber
Details
reduced repro (1.87 KB, application/octet-stream)
2011-10-15 00:31 PDT, Nico Weber
Details
even smaller repro (362 bytes, application/octet-stream)
2011-10-15 00:49 PDT, Nico Weber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Weber 2011-10-14 22:56:41 PDT
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<X>(Val) && "cast<Ty>() 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::Instruction>, llvm::SCEVExpander&, llvm::SmallVectorImpl<llvm::WeakVH>&) 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:
0.	Program arguments: /b/build/slave/mac/build/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple i386-apple-macosx10.5.0 -emit-obj -disable-free -main-file-name ShadowBlur.cpp -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu yonah -target-linker-version 97.17 -coverage-file /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 -resource-dir /b/build/slave/mac/build/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0 -isysroot /Developer/SDKs/MacOSX10.5.sdk -include /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../WebCorePrefix.h -D CHROMIUM_BUILD -D ENABLE_REMOTING=1 -D ENABLE_P2P_APIS=1 -D ENABLE_CONFIGURATION_POLICY -D ENABLE_INPUT_SPEECH -D DCHECK_ALWAYS_ON=1 -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D ENABLE_REGISTER_PROTOCOL_HANDLER=1 -D WEBCORE_NAVIGATOR_VENDOR="Google Inc." -D WEBCORE_NAVIGATOR_PLATFORM="MacIntel" -D WebCascadeList=ChromiumWebCoreObjCWebCascadeList -D ScrollbarPrefsObserver=ChromiumWebCoreObjCScrollbarPrefsObserver -D WebCoreRenderThemeNotificationObserver=ChromiumWebCoreObjCWebCoreRenderThemeNotificationObserver -D WebFontCache=ChromiumWebCoreObjCWebFontCache -D ScrollAnimationHelperDelegate=ChromiumWebCoreObjCScrollAnimationHelperDelegate -D ScrollbarPainterControllerDelegate=ChromiumWebCoreObjCScrollbarPainterControllerDelegate -D ScrollbarPainterDelegate=ChromiumWebCoreObjCScrollbarPainterDelegate -D ScrollbarPartAnimation=ChromiumWebCoreObjCScrollbarPartAnimation -D ENABLE_3D_PLUGIN=1 -D ENABLE_BLOB=1 -D ENABLE_BLOB_SLICE=1 -D ENABLE_CHANNEL_MESSAGING=1 -D ENABLE_CLIENT_BASED_GEOLOCATION=1 -D ENABLE_DASHBOARD_SUPPORT=0 -D ENABLE_DATA_TRANSFER_ITEMS=1 -D ENABLE_DETAILS=1 -D ENABLE_DEVICE_ORIENTATION=1 -D ENABLE_DIRECTORY_UPLOAD=1 -D ENABLE_DOM_STORAGE=1 -D ENABLE_DOWNLOAD_ATTRIBUTE=1 -D ENABLE_FILE_SYSTEM=1 -D ENABLE_FILTERS=1 -D ENABLE_FULLSCREEN_API=1 -D ENABLE_GAMEPAD=1 -D ENABLE_GEOLOCATION=1 -D ENABLE_GESTURE_EVENTS=1 -D ENABLE_GESTURE_RECOGNIZER=1 -D ENABLE_ICONDATABASE=0 -D ENABLE_INDEXED_DATABASE=1 -D ENABLE_INPUT_SPEECH=1 -D ENABLE_INPUT_TYPE_COLOR=0 -D ENABLE_INPUT_TYPE_DATE=0 -D ENABLE_INPUT_TYPE_DATETIME=0 -D ENABLE_INPUT_TYPE_DATETIMELOCAL=0 -D ENABLE_INPUT_TYPE_MONTH=0 -D ENABLE_INPUT_TYPE_TIME=0 -D ENABLE_INPUT_TYPE_WEEK=0 -D ENABLE_JAVASCRIPT_DEBUGGER=1 -D ENABLE_JAVASCRIPT_I18N_API=1 -D ENABLE_LINK_PREFETCH=1 -D ENABLE_MEDIA_STATISTICS=1 -D ENABLE_MEDIA_STREAM=1 -D ENABLE_METER_TAG=1 -D ENABLE_MHTML=1 -D ENABLE_MICRODATA=0 -D ENABLE_MUTATION_OBSERVERS=0 -D ENABLE_NOTIFICATIONS=1 -D ENABLE_ORIENTATION_EVENTS=0 -D ENABLE_PAGE_VISIBILITY_API=1 -D ENABLE_PROGRESS_TAG=1 -D ENABLE_QUOTA=1 -D ENABLE_REQUEST_ANIMATION_FRAME=1 -D ENABLE_RUBY=1 -D ENABLE_SANDBOX=1 -D ENABLE_SHARED_WORKERS=1 -D ENABLE_SKIA_GPU=0 -D ENABLE_SKIA_TEXT=0 -D ENABLE_SMOOTH_SCROLLING=1 -D ENABLE_SQL_DATABASE=1 -D ENABLE_SVG=0 -D ENABLE_SVG_FONTS=0 -D ENABLE_TOUCH_EVENTS=1 -D ENABLE_TOUCH_ICON_LOADING=0 -D ENABLE_V8_SCRIPT_DEBUG_SERVER=1 -D ENABLE_VIDEO=1 -D ENABLE_VIDEO_TRACK=1 -D ENABLE_WEBGL=1 -D ENABLE_WEB_SOCKETS=1 -D ENABLE_WEB_TIMING=1 -D ENABLE_WORKERS=1 -D ENABLE_XHR_RESPONSE_BLOB=1 -D ENABLE_XPATH=1 -D ENABLE_XSLT=1 -D WTF_USE_LEVELDB=1 -D WTF_USE_BUILTIN_UTF8_CODEC=1 -D WTF_USE_OPENTYPE_SANITIZER=1 -D WTF_USE_WEBP=1 -D WTF_USE_WEBKIT_IMAGE_DECODERS=1 -D ENABLE_WEB_AUDIO=1 -D WTF_USE_ACCELERATED_COMPOSITING=1 -D ENABLE_3D_RENDERING=1 -D ENABLE_RUBBER_BANDING=1 -D WTF_USE_SKIA_ON_MAC_CHROMIUM=0 -D BUILDING_CHROMIUM__=1 -D USE_SYSTEM_MALLOC=1 -D WTF_USE_NEW_THEME=1 -D U_USING_ICU_NAMESPACE=0 -D U_STATIC_IMPLEMENTATION -D SK_BUILD_NO_IMAGE_ENCODE -D GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D GR_AGGRESSIVE_SHADER_OPTS=1 -D CHROME_PNG_WRITE_SUPPORT -D PNG_USER_CONFIG -D LIBXML_STATIC -D LIBXSLT_STATIC -D __STDC_FORMAT_MACROS -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -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 -fmodule-cache-path /var/tmp/clang-module-cache -O3 -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 -Wno-c++0x-compat -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 1 -fblocks -fblocks-runtime-optional -fno-rtti -fno-threadsafe-statics -fobjc-fragile-abi -fdiagnostics-show-option -load /b/build/slave/mac/build/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -add-plugin find-bad-constructs -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 -x c++ /b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../platform/graphics/ShadowBlur.cpp 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/b/build/slave/mac/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../platform/graphics/ShadowBlur.cpp'.
4.	Running pass 'Loop Pass Manager' on function '@_ZN7WebCore10ShadowBlur14blurLayerImageEPhRKNS_7IntSizeEi'
5.	Running pass 'Loop Strength Reduction' on basic block '%for.body43'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/ShadowBlur-H2Lxla.ii
Command /b/build/goma/gomacc failed with exit code 254
Command /b/build/goma/gomacc failed with exit code 254

I'll try to come up with a reduced repro.
Comment 1 Nico Weber 2011-10-14 23:27:35 PDT
Created attachment 7459 [details]
repro

Not reduced yet. Repro with:

 third_party/llvm-build/Release+Asserts/bin/clang -arch i386 -c -O2 ContextShadow-dpK8UP.ii
Comment 2 Nico Weber 2011-10-15 00:31:54 PDT
Created attachment 7460 [details]
reduced repro

repro with:

clang -arch i386 repro.ii -O2
Comment 3 Nico Weber 2011-10-15 00:49:09 PDT
Created attachment 7461 [details]
even smaller repro
Comment 4 Andrew Trick 2011-10-15 01:21:53 PDT
Fixed in r142058. Bad assumption about SCEV expression types, which are currently unreliable.
Comment 5 Nico Weber 2011-10-15 14:44:31 PDT
Thanks for the fix!

Are you planning on merging it to the 3.0 branch?
Comment 6 Bill Wendling 2011-10-15 21:10:10 PDT
(In reply to comment #5)
> Thanks for the fix!
> 
> Are you planning on merging it to the 3.0 branch?

Merged into the 3.0 branch as r142094.