[llvm-bugs] [Bug 27017] New: "Unhandled instruction type!" UNREACHABLE when building Chromium for ARM

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 21 13:35:58 PDT 2016


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

            Bug ID: 27017
           Summary: "Unhandled instruction type!" UNREACHABLE when
                    building Chromium for ARM
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

thakis at thakis:~/src/chrome/src/out/Release$ ~/src/llvm-build/bin/clang -MMD -MF
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o.d -DOPJ_STATIC
-DPNG_PREFIX -DPNG_USE_READ_MACROS -D_CRT_SECURE_NO_WARNINGS
-DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64
-DCHROMIUM_BUILD -DCR_CLANG_REVISION=263324-1 -DUI_COMPOSITOR_IMAGE_TRANSPORT
-DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1
-DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_WEBRTC=1
-DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY
-DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV
-DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PDF=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
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1
-DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_GLIB=1
-DUSE_NSS_CERTS=1 -DUSE_NSS_VERIFIER=1 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -I../../third_party/pdfium -Igen
-fstack-protector --param=ssp-buffer-size=4 -Werror -pthread
-fno-strict-aliasing -Wall -Wno-unused-parameter
-Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Xclang -load
-Xclang
/usr/local/google/home/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-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 -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
-Wno-unused-variable -target arm-linux-gnueabihf -march=armv7-a
-mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb
--sysroot=/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot
-O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables   -c
../../third_party/pdfium/third_party/libtiff/tif_predict.c -o
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o
0  clang-3.8       0x0000000001ad1935
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  clang-3.8       0x0000000001acf6e6 llvm::sys::RunSignalHandlers() + 54
2  clang-3.8       0x0000000001acf911
3  libpthread.so.0 0x00007f4fd12f3340
Stack dump:
0.    Program arguments:
/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8 -cc1 -triple
thumbv7--linux-gnueabihf -emit-obj -disable-free -main-file-name tif_predict.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu cortex-a8 -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 hard
-dwarf-column-info -debugger-tuning=gdb -ffunction-sections -fdata-sections
-coverage-file
/usr/local/google/home/thakis/src/chrome/src/out/Release/obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o
-resource-dir
/usr/local/google/home/thakis/src/llvm-build/bin/../lib/clang/3.9.0
-dependency-file
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o.d -MT
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o -D OPJ_STATIC
-D PNG_PREFIX -D PNG_USE_READ_MACROS -D _CRT_SECURE_NO_WARNINGS -D
V8_DEPRECATION_WARNINGS -D CLD_VERSION=2 -D _FILE_OFFSET_BITS=64 -D
CHROMIUM_BUILD -D CR_CLANG_REVISION=263324-1 -D UI_COMPOSITOR_IMAGE_TRANSPORT
-D USE_AURA=1 -D USE_PANGO=1 -D USE_CAIRO=1 -D USE_DEFAULT_RENDER_THEME=1 -D
USE_LIBJPEG_TURBO=1 -D USE_X11=1 -D USE_CLIPBOARD_AURAX11=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 USE_UDEV -D
FIELDTRIAL_TESTING_ENABLED -D ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D
ENABLE_PDF=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
ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D ENABLE_APP_LIST=1 -D ENABLE_SETTINGS_APP=1
-D ENABLE_SUPERVISED_USERS=1 -D ENABLE_MDNS=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 USE_LIBPCI=1 -D USE_OPENSSL=1 -D USE_GLIB=1 -D
USE_NSS_CERTS=1 -D USE_NSS_VERIFIER=1 -D NDEBUG -D NVALGRIND -D
DYNAMIC_ANNOTATIONS_ENABLED=0 -I ../.. -I ../../third_party/pdfium -I gen
-isysroot
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot
-internal-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/usr/local/include
-internal-isystem
/usr/local/google/home/thakis/src/llvm-build/bin/../lib/clang/3.9.0/include
-internal-externc-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/usr/include/arm-linux-gnueabihf
-internal-externc-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/include
-internal-externc-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/usr/include
-O2 -Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers
-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 -Wno-unused-variable -fdebug-compilation-dir
/usr/local/google/home/thakis/src/chrome/src/out/Release -ferror-limit 19
-fmessage-length 139 -fvisibility hidden -pthread -stack-protector 1
-stack-protector-buffer-size 4 -fallow-half-arguments-and-returns
-fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -load
/usr/local/google/home/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -plugin-arg-find-bad-constructs check-templates
-plugin-arg-find-bad-constructs follow-macro-expansion -o
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o -x c
../../third_party/pdfium/third_party/libtiff/tif_predict.c 
clang-3.8: error: unable to execute command: Segmentation fault (core dumped)
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 263951)
Target: arm--linux-gnueabihf
Thread model: posix
InstalledDir: /usr/local/google/home/thakis/src/llvm-build/bin
clang-3.8: 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-3.8: error: unable to execute command: Segmentation fault (core dumped)
clang-3.8: note: diagnostic msg: Error generating preprocessed source(s).
thakis at thakis:~/src/chrome/src/out/Release$ ~/src/llvm-build/bin/clang -MMD -MF
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o.d -DOPJ_STATIC
-DPNG_PREFIX -DPNG_USE_READ_MACROS -D_CRT_SECURE_NO_WARNINGS
-DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64
-DCHROMIUM_BUILD -DCR_CLANG_REVISION=263324-1 -DUI_COMPOSITOR_IMAGE_TRANSPORT
-DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1
-DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_WEBRTC=1
-DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY
-DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV
-DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PDF=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
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1
-DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_GLIB=1
-DUSE_NSS_CERTS=1 -DUSE_NSS_VERIFIER=1 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -I../../third_party/pdfium -Igen
-fstack-protector --param=ssp-buffer-size=4 -Werror -pthread
-fno-strict-aliasing -Wall -Wno-unused-parameter
-Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC
-fcolor-diagnostics -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
-Wno-unused-variable -target arm-linux-gnueabihf -march=armv7-a
-mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb
--sysroot=/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot
-O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables   -c
../../third_party/pdfium/third_party/libtiff/tif_predict.c -o
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.oUnhandled
instruction type!
UNREACHABLE executed at
/usr/local/google/home/thakis/src/llvm-rw/lib/Transforms/Vectorize/LoopVectorize.cpp:3387!
0  clang-3.8       0x0000000001ad1935
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  clang-3.8       0x0000000001acf6e6 llvm::sys::RunSignalHandlers() + 54
2  clang-3.8       0x0000000001acf911
3  libpthread.so.0 0x00007ff063112340
4  libc.so.6       0x00007ff06233acc9 gsignal + 57
5  libc.so.6       0x00007ff06233e0d8 abort + 328
6  clang-3.8       0x0000000001a8a6f5
7  clang-3.8       0x0000000001b9127b
8  clang-3.8       0x0000000001b9cf4f
9  clang-3.8       0x0000000001ba42cd
10 clang-3.8       0x0000000001ba5895
11 clang-3.8       0x0000000001787543
llvm::FPPassManager::runOnFunction(llvm::Function&) + 643
12 clang-3.8       0x00000000017878fb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
13 clang-3.8       0x0000000001787c0f
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 751
14 clang-3.8       0x0000000001bff258
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*) + 3144
15 clang-3.8       0x000000000218f84c
16 clang-3.8       0x00000000024a996b clang::ParseAST(clang::Sema&, bool, bool)
+ 571
17 clang-3.8       0x000000000218f9de clang::CodeGenAction::ExecuteAction() +
78
18 clang-3.8       0x0000000001ee0406 clang::FrontendAction::Execute() + 534
19 clang-3.8       0x0000000001ebcd2e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 318
20 clang-3.8       0x0000000001f6487c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2300
21 clang-3.8       0x00000000009e54f8 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2344
22 clang-3.8       0x00000000009a0da5 main + 6213
23 libc.so.6       0x00007ff062325ec5 __libc_start_main + 245
24 clang-3.8       0x00000000009e14a4
Stack dump:
0.    Program arguments:
/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8 -cc1 -triple
thumbv7--linux-gnueabihf -emit-obj -disable-free -main-file-name tif_predict.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu cortex-a8 -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 hard
-dwarf-column-info -debugger-tuning=gdb -ffunction-sections -fdata-sections
-coverage-file
/usr/local/google/home/thakis/src/chrome/src/out/Release/obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o
-resource-dir
/usr/local/google/home/thakis/src/llvm-build/bin/../lib/clang/3.9.0
-dependency-file
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o.d -MT
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o -D OPJ_STATIC
-D PNG_PREFIX -D PNG_USE_READ_MACROS -D _CRT_SECURE_NO_WARNINGS -D
V8_DEPRECATION_WARNINGS -D CLD_VERSION=2 -D _FILE_OFFSET_BITS=64 -D
CHROMIUM_BUILD -D CR_CLANG_REVISION=263324-1 -D UI_COMPOSITOR_IMAGE_TRANSPORT
-D USE_AURA=1 -D USE_PANGO=1 -D USE_CAIRO=1 -D USE_DEFAULT_RENDER_THEME=1 -D
USE_LIBJPEG_TURBO=1 -D USE_X11=1 -D USE_CLIPBOARD_AURAX11=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 USE_UDEV -D
FIELDTRIAL_TESTING_ENABLED -D ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D
ENABLE_PDF=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
ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D ENABLE_APP_LIST=1 -D ENABLE_SETTINGS_APP=1
-D ENABLE_SUPERVISED_USERS=1 -D ENABLE_MDNS=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 USE_LIBPCI=1 -D USE_OPENSSL=1 -D USE_GLIB=1 -D
USE_NSS_CERTS=1 -D USE_NSS_VERIFIER=1 -D NDEBUG -D NVALGRIND -D
DYNAMIC_ANNOTATIONS_ENABLED=0 -I ../.. -I ../../third_party/pdfium -I gen
-isysroot
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot
-internal-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/usr/local/include
-internal-isystem
/usr/local/google/home/thakis/src/llvm-build/bin/../lib/clang/3.9.0/include
-internal-externc-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/usr/include/arm-linux-gnueabihf
-internal-externc-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/include
-internal-externc-isystem
/usr/local/google/home/thakis/src/chrome/src/build/linux/debian_wheezy_arm-sysroot/usr/include
-O2 -Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers
-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 -Wno-unused-variable -fdebug-compilation-dir
/usr/local/google/home/thakis/src/chrome/src/out/Release -ferror-limit 19
-fmessage-length 139 -fvisibility hidden -pthread -stack-protector 1
-stack-protector-buffer-size 4 -fallow-half-arguments-and-returns
-fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o
obj/third_party/pdfium/third_party/libtiff/fx_tiff.tif_predict.o -x c
../../third_party/pdfium/third_party/libtiff/tif_predict.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module
'../../third_party/pdfium/third_party/libtiff/tif_predict.c'.
4.    Running pass 'Loop Vectorization' on function '@horDiff8'
clang-3.8: error: unable to execute command: Aborted (core dumped)
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 263951)
Target: arm--linux-gnueabihf
Thread model: posix
InstalledDir: /usr/local/google/home/thakis/src/llvm-build/bin
clang-3.8: 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-3.8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/tif_predict-69702f.c
clang-3.8: note: diagnostic msg: /tmp/tif_predict-69702f.sh
clang-3.8: note: diagnostic msg: 

********************

-- 
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/20160321/a0ca6db9/attachment-0001.html>


More information about the llvm-bugs mailing list