llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.32k stars 12.11k forks source link

Regression(277905): Assertion failed: (index < Probs.size() && "Not a current successor!"), function getProbabilityIterator, when building chromium for chromecast #29264

Closed nico closed 7 years ago

nico commented 8 years ago
Bugzilla Link 28894
Resolution FIXED
Resolved on Jan 27, 2017 18:43
Version trunk
OS All
Attachments repro
CC @zmodem

Extended Description

Sorry about the huge regression range. I'll try to narrow it down.

Assertion failed: (index < Probs.size() && "Not a current successor!"), function getProbabilityIterator, file /b/build/slave/mac_upload_clang/build/src/third_party/llvm/lib/CodeGen/MachineBasicBlock.cpp, line 1184. Stack dump:

  1. Program arguments: /Users/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple thumbv7--linux-android -emit-obj -disable-free -main-file-name SkLightingImageFilter.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 cortex-a8 -target-feature +soft-float-abi -target-feature -fp-only-sp -target-feature -d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature +neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi soft -target-linker-version 253.3 -dwarf-column-info -debug-info-kind=line-tables-only -dwarf-version=4 -debugger-tuning=gdb -ffunction-sections -fdata-sections -coverage-file /Users/thakis/src/chrome/src/out/gn/obj/skia/skia/SkLightingImageFilter.o -resource-dir /Users/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/4.0.0 -dependency-file obj/skia/skia/SkLightingImageFilter.o.d -MT obj/skia/skia/SkLightingImageFilter.o -isystem ../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include -isystem ../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/include -isystem ../../third_party/android_tools/ndk/sources/android/support/include -D V8_DEPRECATION_WARNINGS -D ENABLE_NOTIFICATIONS -D ENABLE_BROWSER_CDMS -D ENABLE_PLUGINS=1 -D ENABLE_SPELLCHECK=1 -D USE_BROWSER_SPELLCHECKER=1 -D USE_OPENSSL_CERTS=1 -D NO_TCMALLOC -D USE_EXTERNAL_POPUP_MENU=1 -D ENABLE_WEBRTC=1 -D DISABLE_NACL -D USE_PROPRIETARY_CODECS -D SAFE_BROWSING_DB_REMOTE -D CHROMIUM_BUILD -D ENABLE_WEBVR -D FIELDTRIAL_TESTING_ENABLED -D CR_CLANG_REVISION=277909-1 -D _FILE_OFFSET_BITS=64 -D ANDROID -D HAVE_SYS_UIO_H -D ANDROID_NDK_VERSION=r10e -D GNU_SOURCE=1 -D __compiler_offsetof=builtin_offsetof -D nan=__builtin_nan -D _DEBUG -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D SK_IGNORE_DW_GRAY_FIX -D SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -D SK_SUPPORT_GPU=1 -D SK_BUILD_FOR_ANDROID -D USE_CHROMIUM_SKIA -D SK_ARM_HAS_NEON -D SK_GAMMA_APPLY_TO_A8 -D SK_GAMMA_EXPONENT=1.4 -D SK_GAMMA_CONTRAST=0.0 -D SK_DEFAULT_FONT_CACHE_LIMIT=1048576 -D XML_STATIC -I ../.. -I gen -I ../../skia/config -I ../../skia/ext -I ../../third_party/skia/include/c -I ../../third_party/skia/include/config -I ../../third_party/skia/include/core -I ../../third_party/skia/include/effects -I ../../third_party/skia/include/images -I ../../third_party/skia/include/lazy -I ../../third_party/skia/include/pathops -I ../../third_party/skia/include/pdf -I ../../third_party/skia/include/pipe -I ../../third_party/skia/include/ports -I ../../third_party/skia/include/utils -I ../../third_party/skia/include/gpu -I ../../third_party/skia/src/gpu -I ../../third_party/skia/include/private -I ../../third_party/skia/include/client/android -I ../../third_party/skia/src/core -I ../../third_party/skia/src/image -I ../../third_party/skia/src/opts -I ../../third_party/skia/src/pdf -I ../../third_party/skia/src/ports -I ../../third_party/skia/src/sfnt -I ../../third_party/skia/src/utils -I ../../third_party/skia/src/lazy -I ../../third_party/zlib -I ../../third_party/android_tools/ndk/sources/android/cpufeatures -I ../../third_party/expat/files/lib -I ../../third_party/freetype-android/include -I ../../third_party/freetype-android/src/include -isysroot ../../third_party/android_tools/ndk/platforms/android-16/arch-arm -internal-isystem ../../third_party/android_tools/ndk/platforms/android-16/arch-arm/usr/local/include -internal-isystem /Users/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/4.0.0/include -internal-externc-isystem ../../third_party/android_tools/ndk/platforms/android-16/arch-arm/include -internal-externc-isystem ../../third_party/android_tools/ndk/platforms/android-16/arch-arm/usr/include -Os -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -Wno-deprecated -std=gnu++11 -fdebug-compilation-dir /Users/thakis/src/chrome/src/out/gn -ferror-limit 19 -fmessage-length 248 -fvisibility hidden -fvisibility-inlines-hidden -femulated-tls -stack-protector 1 -stack-protector-buffer-size 4 -fallow-half-arguments-and-returns -fno-rtti -fno-signed-char -fno-threadsafe-statics -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o obj/skia/skia/SkLightingImageFilter.o -x c++ ../../third_party/skia/src/effects/SkLightingImageFilter.cpp
  2. parser at end of file
  3. Code generation
  4. Running pass 'Function Pass Manager' on module '../../third_party/skia/src/effects/SkLightingImageFilter.cpp'.
  5. Running pass 'If Converter' on function '@_ZNK12_GLOBAL__N_120SpecularLightingType5lightERK8SkPoint3S3S3' clang: error: unable to execute command: Abort trap: 6 clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 4.0.0 (trunk 277909) Target: arm--linux-android Thread model: posix InstalledDir: /Users/thakis/src/chrome/src/out/gn/../../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/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/SkLightingImageFilter-29432f.cpp clang: note: diagnostic msg: /var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/SkLightingImageFilter-29432f.sh clang: note: diagnostic msg:

zmodem commented 7 years ago

Sounds like this was fixed by reverting.

nico commented 8 years ago

See also bug 28883, a possible dupe.

nico commented 8 years ago

Nicos-MBP:llvm-rw thakis$ svn merge -c -277905 . --- Reverse-merging r277905 into '.': U lib/CodeGen/IfConversion.cpp U test/CodeGen/Thumb2/thumb2-ifcvt1.ll --- Recording mergeinfo for reverse merge of r277905 into '.': U . Nicos-MBP:llvm-rw thakis$ svn commit -m 'Revert r277905, it caused llvm/llvm-project#29264 ' Sending lib/CodeGen/IfConversion.cpp Sending test/CodeGen/Thumb2/thumb2-ifcvt1.ll Transmitting file data .. Committed revision 277962.

nico commented 8 years ago

It's due to r277905.