[LLVMbugs] [Bug 22178] New: crash while trying to compile arm neon intrinsics

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 9 15:08:33 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22178

            Bug ID: 22178
           Summary: crash while trying to compile arm neon intrinsics
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: johannkoenig at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

While trying to update libvpx in chromium which includes many new functions
written in arm neon intrinsics:
$ ninja -C out/Release browser_tests
ninja: Entering directory `out/Release'
[81/18945] CC
obj/third_party/libvpx/source/libvpx/vp9/common/arm/neon/libvpx.vp9_iht8x8_add_neon.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF
obj/third_party/libvpx/source/libvpx/vp9/common/arm/neon/libvpx.vp9_iht8x8_add_neon.o.d
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD
-DCR_CLANG_REVISION=223108 -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT
-DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1
-DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1
-DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP
-DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS
-DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV
-DDONT_EMBED_BUILD_METADATA -DDCHECK_ALWAYS_ON=1 -DENABLE_TASK_MANAGER=1
-DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1
-DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1
-DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -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 -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DNDEBUG
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen
-I../../third_party/libvpx/source/config/linux/arm-neon
-I../../third_party/libvpx/source/config
-I../../third_party/libvpx/source/libvpx -fstack-protector
--param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe
-fPIC -Wno-reserved-user-defined-literal -Xclang -load -Xclang
/usr/local/flash/git-depth0/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-Xclang -add-plugin -Xclang find-bad-constructs -Xclang
-plugin-arg-find-bad-constructs -Xclang strict-virtual-specifiers
-fcolor-diagnostics -Wno-conversion -Wno-parentheses-equality -Wheader-hygiene
-Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wno-c++11-narrowing -Wno-deprecated-register
-Wno-inconsistent-missing-override -Wa,-I,gen/third_party/libvpx
-Wa,-I,/usr/local/flash/git-depth0/src/third_party/libvpx/source/config/linux/arm-neon
-Wa,-I,/usr/local/flash/git-depth0/src/third_party/libvpx/source/config
-Wno-format -Wno-unused-result -target arm-linux-gnueabihf -march=armv7-a
-no-integrated-as -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb
--sysroot=/usr/local/flash/git-depth0/src/chrome/installer/linux/debian_wheezy_arm-sysroot
-O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables   -c
../../third_party/libvpx/source/libvpx/vp9/common/arm/neon/vp9_iht8x8_add_neon.c
-o
obj/third_party/libvpx/source/libvpx/vp9/common/arm/neon/libvpx.vp9_iht8x8_add_neon.o
Constant pool entry out of range!
UNREACHABLE executed at
/work/chromium/src/third_party/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:353!
0  clang     0x000000000141c848 llvm::sys::PrintStackTrace(_IO_FILE*) + 40
1  clang     0x000000000141de0b
2  libc.so.6 0x00007f90c71dcc30
3  libc.so.6 0x00007f90c71dcbb9 gsignal + 57
4  libc.so.6 0x00007f90c71dffc8 abort + 328
5  clang     0x00000000013e8e13 llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 451
6  clang     0x000000000086012b
7  clang     0x0000000000f265ac
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 124
8  clang     0x000000000114a053
llvm::FPPassManager::runOnFunction(llvm::Function&) + 499
9  clang     0x000000000114a2cb llvm::FPPassManager::runOnModule(llvm::Module&)
+ 43
10 clang     0x000000000114a817
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 919
11 clang     0x0000000001840e2d
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
7597
12 clang     0x0000000001835ea5
13 clang     0x00000000015dd90c
clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44
14 clang     0x0000000001dd0f53 clang::ParseAST(clang::Sema&, bool, bool) + 483
15 clang     0x00000000015bb91e clang::FrontendAction::Execute() + 62
16 clang     0x000000000158d35c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 892
17 clang     0x000000000163e7ea
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3114
18 clang     0x00000000006d1b5c cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 684
19 clang     0x00000000006d0589 main + 12089
20 libc.so.6 0x00007f90c71c7ec5 __libc_start_main + 245
21 clang     0x00000000006cd52d
Stack dump:
0.    Program arguments:
/usr/local/flash/git-depth0/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple thumbv7--linux-gnueabihf -S -disable-free -main-file-name
vp9_iht8x8_add_neon.c -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-no-integrated-as -mconstructor-aliases -munwind-tables -target-cpu cortex-a8
-target-feature +neon -target-abi aapcs-linux -mfloat-abi hard
-dwarf-column-info -ffunction-sections -fdata-sections -coverage-file
/usr/local/flash/git-depth0/src/out/Release/obj/third_party/libvpx/source/libvpx/vp9/common/arm/neon/libvpx.vp9_iht8x8_add_neon.o
-resource-dir
/usr/local/flash/git-depth0/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.6.0
-dependency-file
obj/third_party/libvpx/source/libvpx/vp9/common/arm/neon/libvpx.vp9_iht8x8_add_neon.o.d
-MT
obj/third_party/libvpx/source/libvpx/vp9/common/arm/neon/libvpx.vp9_iht8x8_add_neon.o
-D V8_DEPRECATION_WARNINGS -D _FILE_OFFSET_BITS=64 -D CHROMIUM_BUILD -D
CR_CLANG_REVISION=223108 -D TOOLKIT_VIEWS=1 -D UI_COMPOSITOR_IMAGE_TRANSPORT -D
USE_AURA=1 -D USE_ASH=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_ONE_CLICK_SIGNIN -D ENABLE_PRE_SYNC_BACKUP -D
ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D ENABLE_PEPPER_CDMS -D
ENABLE_CONFIGURATION_POLICY -D ENABLE_NOTIFICATIONS -D USE_UDEV -D
DONT_EMBED_BUILD_METADATA -D DCHECK_ALWAYS_ON=1 -D ENABLE_TASK_MANAGER=1 -D
ENABLE_EXTENSIONS=1 -D ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D
ENABLE_THEMES=1 -D ENABLE_AUTOFILL_DIALOG=1 -D ENABLE_BACKGROUND=1 -D
ENABLE_GOOGLE_NOW=1 -D CLD_VERSION=2 -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 USE_LIBPCI=1 -D USE_GLIB=1 -D USE_NSS=1 -D
NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -I gen -I
../../third_party/libvpx/source/config/linux/arm-neon -I
../../third_party/libvpx/source/config -I
../../third_party/libvpx/source/libvpx -isysroot
/usr/local/flash/git-depth0/src/chrome/installer/linux/debian_wheezy_arm-sysroot
-internal-isystem
/usr/local/flash/git-depth0/src/chrome/installer/linux/debian_wheezy_arm-sysroot/usr/local/include
-internal-isystem
/usr/local/flash/git-depth0/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.6.0/include
-internal-externc-isystem
/usr/local/flash/git-depth0/src/chrome/installer/linux/debian_wheezy_arm-sysroot/usr/include/arm-linux-gnueabihf
-internal-externc-isystem
/usr/local/flash/git-depth0/src/chrome/installer/linux/debian_wheezy_arm-sysroot/include
-internal-externc-isystem
/usr/local/flash/git-depth0/src/chrome/installer/linux/debian_wheezy_arm-sysroot/usr/include
-O2 -Werror -Wno-unused-parameter -Wno-missing-field-initializers
-Wno-reserved-user-defined-literal -Wno-conversion -Wno-parentheses-equality
-Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wno-c++11-narrowing -Wno-deprecated-register
-Wno-inconsistent-missing-override -Wno-format -Wno-unused-result
-fno-dwarf-directory-asm -fdebug-compilation-dir
/usr/local/flash/git-depth0/src/out/Release -ferror-limit 19 -fmessage-length 0
-fvisibility hidden -pthread -stack-protector 1 -stack-protector-buffer-size 4
-mstackrealign -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -load
/usr/local/flash/git-depth0/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -plugin-arg-find-bad-constructs
strict-virtual-specifiers -o /tmp/vp9_iht8x8_add_neon-9cb319.s -x c
../../third_party/libvpx/source/libvpx/vp9/common/arm/neon/vp9_iht8x8_add_neon.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'../../third_party/libvpx/source/libvpx/vp9/common/arm/neon/vp9_iht8x8_add_neon.c'.
4.    Running pass 'ARM constant island placement and branch shortening pass'
on function '@vp9_iht8x8_64_add_neon'
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 3.6.0 (trunk 223108)
Target: arm--linux-gnueabihf
Thread model: posix
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/vp9_iht8x8_add_neon-7f7868.c
clang: note: diagnostic msg: /tmp/vp9_iht8x8_add_neon-7f7868.sh
clang: note: diagnostic msg: 

********************
[81/18945] CC
obj/third_party/libvpx/source/libvpx/vp9/encoder/libvpx.vp9_rdopt.o
ninja: build stopped: subcommand failed.

$
/usr/local/flash/git-depth0/src/third_party/llvm-build/Release+Asserts/bin/clang
--version
clang version 3.6.0 (trunk 223108)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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/20150109/a13ef8f0/attachment.html>


More information about the llvm-bugs mailing list