[LLVMbugs] [Bug 14439] New: clang 3.1 crashes in runOnMachineFunction while running pass 'ARM Instruction Selection'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 26 14:15:50 PST 2012


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

             Bug #: 14439
           Summary: clang 3.1 crashes in runOnMachineFunction while
                    running pass 'ARM Instruction Selection'
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bugmail.clang at staktrace.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I'm trying to cross-compile the mozilla-central codebase using a clang
toolchain (taken from the Android NDK version r8c). When trying to compile the
jsapi.cpp file clang dies with the output below. I can provide some steps to
reproduce this if needed but it ain't gonna be pretty. This is cross-compiling
from an x86 linux host to an armv7a/thumb target.


make[5]: Entering directory
`/home/kats/zspace/mozilla-git/obj-android-clang/js/src'
/usr/bin/ccache
/home/kats/android/ndk/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/arm-linux-androideabi-g++
-o jsapi.o -c  -fvisibility=hidden -DENABLE_TYPEDARRAY_MOVE -DENABLE_YARR_JIT=1
-DNO_NSPR_10_SUPPORT -DIMPL_MFBT -DEXPORT_JS_API -DJS_HAS_CTYPES
-DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -DUSE_ZLIB -Ictypes/libffi/include
-I.  -I/home/kats/zspace/mozilla-git/js/src/../../mfbt/double-conversion
-I/home/kats/zspace/mozilla-git/js/src -I. -I./../../dist/include 
-I/home/kats/zspace/mozilla-git/obj-android/dist/include/nspr     
-I/home/kats/zspace/mozilla-git/js/src
-I/home/kats/zspace/mozilla-git/js/src/assembler
-I/home/kats/zspace/mozilla-git/js/src/yarr  -fPIC -Qunused-arguments -isystem
/home/kats/android/ndk/platforms/android-5/arch-arm/usr/include  -pedantic
-Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual
-Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null
-Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof
-Wno-variadic-macros -Wno-c++0x-extensions -Wno-extended-offsetof
-Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags
-Wno-long-long -mandroid -fno-short-enums -fno-exceptions -Wno-psabi
-march=armv7-a -mthumb -mfpu=vfp -mfloat-abi=softfp
-I/home/kats/zspace/mozilla-git/obj-android/build/stlport
-I/home/kats/android/ndk/sources/cxx-stl/stlport/stlport -fno-rtti
-ffunction-sections -fdata-sections -fno-exceptions -pipe  -DDEBUG -D_DEBUG
-DTRACING -g -fno-omit-frame-pointer -funwind-tables -DUSE_SYSTEM_MALLOC=1
-DENABLE_ASSEMBLER=1 -DENABLE_JIT=1  -Qunused-arguments -isystem
/home/kats/android/ndk/platforms/android-5/arch-arm/usr/include 
-DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsapi.o.pp 
/home/kats/zspace/mozilla-git/js/src/jsapi.cpp

[snip out a bunch of warnings]

15 clang31   0x0935d7b4
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1204
16 clang31   0x094bfdda
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 186
17 clang31   0x09a58d12 llvm::FPPassManager::runOnFunction(llvm::Function&) +
578
18 clang31   0x09a58e0c llvm::FPPassManager::runOnModule(llvm::Module&) + 76
19 clang31   0x09a5886d llvm::MPPassManager::runOnModule(llvm::Module&) + 541
20 clang31   0x09a58a20 llvm::PassManagerImpl::run(llvm::Module&) + 160
21 clang31   0x09a58ac6 llvm::PassManager::run(llvm::Module&) + 38
22 clang31   0x08483367 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 2119
23 clang31   0x084811b9
24 clang31   0x08600bc0 clang::ParseAST(clang::Sema&, bool, bool) + 496
25 clang31   0x0833e35f clang::ASTFrontendAction::ExecuteAction() + 111
26 clang31   0x0847f87b clang::CodeGenAction::ExecuteAction() + 43
27 clang31   0x0833ec88 clang::FrontendAction::Execute() + 168
28 clang31   0x08321e28
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 312
29 clang31   0x083079af
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1103
30 clang31   0x082fd42c cc1_main(char const**, char const**, char const*,
void*) + 732
31 clang31   0x082eb68b main + 779
32 libc.so.6 0x557080f3 __libc_start_main + 243
33 clang31   0x082fd005
Stack dump:
0.    Program arguments:
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/clang31
-cc1 -triple thumbv7-none-linux-androideabi -S -disable-free -main-file-name
jsapi.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables
-fuse-init-array -target-abi aapcs-linux -target-cpu cortex-a8 -mfloat-abi soft
-target-feature +soft-float-abi -target-feature +vfp2 -target-feature +d16
-target-feature -neon -backend-option -arm-enable-ehabi -backend-option
-arm-enable-ehabi-descriptors -backend-option -arm-ignore-has-ras
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -g -ffunction-sections
-fdata-sections -coverage-file /tmp/jsapi-sVhOxJ.s -resource-dir
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../lib/clang/3.1
-isystem /home/kats/android/ndk/platforms/android-5/arch-arm/usr/include
-isystem /home/kats/android/ndk/platforms/android-5/arch-arm/usr/include
-include ./js-confdefs.h -D ENABLE_TYPEDARRAY_MOVE -D ENABLE_YARR_JIT=1 -D
NO_NSPR_10_SUPPORT -D IMPL_MFBT -D EXPORT_JS_API -D JS_HAS_CTYPES -D
DLL_PREFIX="lib" -D DLL_SUFFIX=".so" -D USE_ZLIB -D DEBUG -D _DEBUG -D TRACING
-D USE_SYSTEM_MALLOC=1 -D ENABLE_ASSEMBLER=1 -D ENABLE_JIT=1 -D MOZILLA_CLIENT
-I ctypes/libffi/include -I . -I
/home/kats/zspace/mozilla-git/js/src/../../mfbt/double-conversion -I
/home/kats/zspace/mozilla-git/js/src -I . -I ./../../dist/include -I
/home/kats/zspace/mozilla-git/obj-android/dist/include/nspr -I
/home/kats/zspace/mozilla-git/js/src -I
/home/kats/zspace/mozilla-git/js/src/assembler -I
/home/kats/zspace/mozilla-git/js/src/yarr -I
/home/kats/zspace/mozilla-git/obj-android/build/stlport -I
/home/kats/android/ndk/sources/cxx-stl/stlport/stlport -isysroot
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../sysroot
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/home/kats/android/ndk/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../include/c++/4.6
-internal-isystem
/home/kats/android/ndk/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../include/c++/4.6/arm-linux-androideabi/armv7-a/thumb
-internal-isystem
/home/kats/android/ndk/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../sysroot/usr/local/include
-internal-isystem
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../lib/clang/3.1/include
-internal-externc-isystem
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../sysroot/include
-internal-externc-isystem
/home/kats/android/ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/standalone/linux-x86/bin/../sysroot/usr/include
-Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits
-Wempty-body -Werror=conversion-null -Wno-ctor-dtor-privacy
-Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros
-Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option
-Wno-return-type-c-linkage -Wno-mismatched-tags -Wno-long-long -Wno-psabi
-pedantic -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir
/home/kats/zspace/mozilla-git/obj-android-clang/js/src -ferror-limit 19
-fmessage-length 0 -fvisibility hidden -mstackrealign -fno-rtti
-fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -o /tmp/jsapi-sVhOxJ.s -x c++
/home/kats/zspace/mozilla-git/js/src/jsapi.cpp 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'/home/kats/zspace/mozilla-git/js/src/jsapi.cpp'.
4.    Running pass 'ARM Instruction Selection' on function '@_ZN2js7ToInt32Ed'
clang31: error: unable to execute command: Aborted
clang31: error: clang frontend command failed due to signal (use -v to see
invocation)
clang31: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang31: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang31: note: diagnostic msg: /tmp/jsapi-CowG8J.ii
clang31: note: diagnostic msg: /tmp/jsapi-CowG8J.sh
make[5]: *** [jsapi.o] Error 254

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list