[llvm-bugs] [Bug 33513] New: clang frontend crash: Assertion `!NodePtr->isKnownSentinel()' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 19 10:39:20 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33513

            Bug ID: 33513
           Summary: clang frontend crash: Assertion
                    `!NodePtr->isKnownSentinel()' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nyquist at chromium.org
                CC: llvm-bugs at lists.llvm.org

Created attachment 18660
  --> https://bugs.llvm.org/attachment.cgi?id=18660&action=edit
crash backtrace, preprocessed source, associated run script, DEPS-file, GN args

Host OS/Arch: Linux/x86_64
Target OS/Arch: Android/mipsel


Steps to reproduce:
1.  Check out Chromium for Android:
    $ # git clone depot tools, etc.
    $ fetch android
2.  Sync to src at fe00e8f82df4a3dd7dd0ec9cc6a7097506d45e65
    $ gclient sync -r src at fe00e8f82df4a3dd7dd0ec9cc6a7097506d45e65
3.  Generate ninja build files:
    $ gn gen out-android/mips --args="target_os=\"android\"
target_cpu=\"mipsel\" is_component_build=false is_debug=true"
4.  Run build:
    $ ninja -C out-android/mips skia


Expected result:
A successful build.


Actual result:
clang:
/b/build/slave/linux_upload_clang/build/src/third_party/llvm/include/llvm/ADT/ilist_iterator.h:140:
llvm::ilist_iterator::reference
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::MachineBasicB
lock, true, false, void>, false, false>::operator*() const [OptionsT =
llvm::ilist_detail::node_options<llvm::MachineBasicBlock, true, false, void>,
IsReverse = false, IsConst = false]: Assertion `!NodePtr->isKnownSentinel()'
failed.
#0 0x0000000001d15fe4
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x1d15fe4)
#1 0x0000000001d16306
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x1d16306)
#2 0x00007f7aa37e4330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f7aa23d5c37 gsignal
/build/eglibc-MjiXCM/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f7aa23d9028 abort
/build/eglibc-MjiXCM/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f7aa23cebf6 __assert_fail_base
/build/eglibc-MjiXCM/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f7aa23ceca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x0000000000ec7d60
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0xec7d60)
#8 0x00000000015b9734 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x15b9734)
#9 0x00000000018983cf llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x18983cf)
#10 0x0000000001898623 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x1898623)
#11 0x0000000001898b25 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x1898b25)
#12 0x0000000001ea2d4f clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x1ea2d4f)
#13 0x00000000025cb677
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x25cb677)
#14 0x00000000022b17dc
clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x22b17dc)
#15 0x0000000002a37546 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x2a37546)
#16 0x000000000228be68 clang::FrontendAction::Execute()
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x228be68)
#17 0x000000000223c661
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x223c661)
#18 0x00000000023126aa
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x23126aa)
#19 0x0000000000842724 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x842724)
#20 0x000000000084029c main
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x84029c)
#21 0x00007f7aa23c0f45 __libc_start_main
/build/eglibc-MjiXCM/eglibc-2.19/csu/libc-start.c:321:0
#22 0x000000000083d729 _start
(/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang+0x83d729)
Stack dump:
0.      Program arguments:
/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple mipsel--linux-android -emit-obj -disable-free -main-file-name
SkColorSpaceXform.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu mips32
-target-feature +fpxx -target-feature +nooddspreg -target-abi o32 -mfloat-abi
hard -momit-leaf-frame-pointer -dwarf-column-info
-debug-info-kind=line-tables-only -dwarf-version=3 -debugger-tuning=gdb
-ffunction-sections -fdata-sections -coverage-notes-file
/usr/local/google/codefast/chromium/src/out-android/mips/obj/skia/skia/SkColorSpaceXform.gcno
-resource-dir
/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0
-dependency-file obj/skia/skia/SkColorSpaceXform.o.d -MT
obj/skia/skia/SkColorSpaceXform.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 USE_OPENSSL_CERTS=1 -D NO_TCMALLOC -D DISABLE_NACL
-D SAFE_BROWSING_DB_REMOTE -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D
CR_CLANG_REVISION="305489-1" -D _FILE_OFFSET_BITS=64 -D ANDROID -D
HAVE_SYS_UIO_H -D ANDROID_NDK_VERSION_ROLL=r12b_1 -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_LINEONLY_AA_CONVEX_PATH_OPTS -D SK_HAS_PNG_LIBRARY -D
SK_HAS_WEBP_LIBRARY -D SK_HAS_JPEG_LIBRARY -D SK_SUPPORT_GPU=1 -D
SK_BUILD_FOR_ANDROID -D USE_CHROMIUM_SKIA -D
SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) * 0x01000000) |
((FREETYPE_MINOR) * 0x00010000) | ((FREETYPE_PATCH) * 0x00000100)) -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 USE_LIBJPEG_TURBO=1 -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/encode -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/third_party/vulkan -I ../../third_party/skia/include/gpu
-I ../../third_party/skia/src/gpu -I ../../third_party/skia/src/sksl -I
../../third_party/skia/include/private -I
../../third_party/skia/include/client/android -I
../../third_party/skia/src/codec -I ../../third_party/skia/src/core -I
../../third_party/skia/src/image -I ../../third_party/skia/src/images -I
../../third_party/skia/src/opts -I ../../third_party/skia/src/pdf -I
../../third_party/skia/src/ports -I ../../third_party/skia/src/shaders -I
../../third_party/skia/src/shaders/gradients -I ../../third_party/skia/src/sfnt
-I ../../third_party/skia/src/utils -I ../../third_party/skia/src/lazy -I
../../third_party/skia/src/effects/gradients -I ../../third_party/libwebp/src
-I ../../third_party/freetype/include -I ../../third_party/freetype/src/include
-I ../../third_party/libjpeg_turbo -I ../../third_party/libpng -I
../../third_party/zlib -I
../../third_party/android_tools/ndk/sources/android/cpufeatures -I
../../third_party/expat/files/lib -I ../../third_party/sfntly/src/cpp/src -D
__DATE__= -D __TIME__= -D __TIMESTAMP__= -isysroot
../../third_party/android_tools/ndk/platforms/android-16/arch-mips
-internal-isystem
../../third_party/android_tools/ndk/platforms/android-16/arch-mips/usr/local/include
-internal-isystem
/usr/local/google/codefast/chromium/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0/include
-internal-externc-isystem
../../third_party/android_tools/ndk/platforms/android-16/arch-mips/include
-internal-externc-isystem
../../third_party/android_tools/ndk/platforms/android-16/arch-mips/usr/include
-Oz -Wno-builtin-macro-redefined -Werror -Wall -Wno-unused-variable
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-covered-switch-default -Wno-unneeded-internal-declaration
-Wno-inconsistent-missing-override -Wno-undefined-var-template
-Wno-nonportable-include-path -Wno-address-of-packed-member
-Wno-unused-lambda-capture -Wno-user-defined-warnings
-Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11
-fdeprecated-macro -fdebug-compilation-dir
/usr/local/google/codefast/chromium/src/out-android/mips -ferror-limit 19
-fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden
-femulated-tls -stack-protector 1 -stack-protector-buffer-size 4 -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp
-load ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -plugin-arg-find-bad-constructs
check-auto-raw-pointer -plugin-arg-find-bad-constructs check-ipc -o
obj/skia/skia/SkColorSpaceXform.o -x c++
../../third_party/skia/src/core/SkColorSpaceXform.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../third_party/skia/src/core/SkColorSpaceXform.cpp'.
4.      Running pass 'Mips Long Branch' on function
'@_ZNK21SkColorSpaceXform_XYZIL15ColorSpaceMatch0EE7onApplyEN17SkColorSpaceXform11ColorFormatEPvS3_PKvi11SkAlphaType'
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 5.0.0 (trunk 305489)
Target: mipsel--linux-android
Thread model: posix
InstalledDir:
/usr/local/google/codefast/chromium/src/out-android/mips/../../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: /tmp/nyquist/SkColorSpaceXform-63af0f.cpp
clang: note: diagnostic msg: /tmp/nyquist/SkColorSpaceXform-63af0f.sh
clang: note: diagnostic msg:

********************
[1 1513/1513/1/1514] CXX obj/skia/skia/GrGLTestInterface.o
ninja: build stopped: subcommand failed.


Source file references:
https://skia.googlesource.com/skia/+/0bdaf05fc17ebe5d4ad01d70c80df2425e83c737/include/core/SkColorSpaceXform.h
https://skia.googlesource.com/skia/+/0bdaf05fc17ebe5d4ad01d70c80df2425e83c737/src/core/SkColorSpaceXform.cpp

-- 
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/20170619/2846c986/attachment-0001.html>


More information about the llvm-bugs mailing list