Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running pass 'AArch64 Instruction Selection' on function '@.datadiv_decode1238363482459732725' #141

Open
panzchen opened this issue Jul 3, 2019 · 1 comment

Comments

@panzchen
Copy link

panzchen commented Jul 3, 2019

Android studio。
cmake 3.6.0
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mllvm -sobf -mllvm -sub -Wall -O2")
abiFilters 'armeabi-v7a','arm64-v8a'

Stack dump:
0. Program arguments: /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -cc1 -triple aarch64-none-linux-android -emit-obj -mnoexecstack -disable-free -disable-llvm-verifier -discard-value-names -main-file-name jni.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -backend-option -aarch64-fix-cortex-a53-835769=1 -target-linker-version 450.3 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -ffunction-sections -coverage-notes-file /Users/panchen/Documents/AsProjects/MyApplication/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/native_net.dir/src/main/cpp/jni.cpp.gcno -resource-dir /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/clang/4.0.1 -dependency-file CMakeFiles/native_net.dir/src/main/cpp/jni.cpp.o.d -sys-header-deps -MT CMakeFiles/native_net.dir/src/main/cpp/jni.cpp.o -isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sources/cxx-stl/llvm-libc++/include -isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sources/android/support/include -isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sources/cxx-stl/llvm-libc++abi/include -isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sysroot/usr/include/aarch64-linux-android -D native_net_EXPORTS -I ../../../../src/main/cpp/include -I ../../../../../app/src/main/cpp/include/curl -I ../../../../../app/src/main/cpp/include/json -D ANDROID_API=21 -D ANDROID -D NDEBUG -isysroot /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sysroot -internal-isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sysroot/usr/local/include -internal-isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/clang/4.0.1/include -internal-externc-isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sysroot/include -internal-externc-isystem /Users/panchen/Documents/souce/android-ndk/android-ndk-r16b/sysroot/usr/include -O2 -Wformat -Werror=format-security -Wall -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/panchen/Documents/AsProjects/MyApplication/app/.externalNativeBuild/cmake/release/arm64-v8a -ferror-limit 19 -fmessage-length 0 -femulated-tls -stack-protector 2 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -mllvm -sobf -mllvm -sub -o CMakeFiles/native_net.dir/src/main/cpp/jni.cpp.o -x c++ /Users/panchen/Documents/AsProjects/MyApplication/app/src/main/cpp/jni.cpp

  1. parser at end of file
  2. Code generation
  3. Running pass 'Function Pass Manager' on module '/Users/panchen/Documents/AsProjects/MyApplication/app/src/main/cpp/jni.cpp'.
  4. Running pass 'AArch64 Instruction Selection' on function '@.datadiv_decode1238363482459732725'
    clang++: error: unable to execute command: Segmentation fault: 11
    clang++: error: clang frontend command failed due to signal (use -v to see invocation)
    Obfuscator-LLVM clang version 4.0.1 (based on Obfuscator-LLVM 4.0.1)
    Target: aarch64-none-linux-android
    Thread model: posix
@NanSongCheng
Copy link

#0 0x00000000014e9d44 (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x14e9d44)
#1 0x00000000014e9f76 (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x14e9f76)
#2 0x00002ac4168eac50 __restore_rt (/lib64/libpthread.so.0+0xfc50)
#3 0x000000000115b5f3 llvm::VectorType::get(llvm::Type*, unsigned int) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x115b5f3)
#4 0x0000000001166058 llvm::EVT::getExtendedVectorVT(llvm::LLVMContext&, llvm::EVT, unsigned int) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1166058)
#5 0x00000000007f5c62 (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x7f5c62)
#6 0x0000000001bcb65e llvm::SelectionDAGBuilder::getValueImpl(llvm::Value const*) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1bcb65e)
#7 0x0000000001bcb534 llvm::SelectionDAGBuilder::getValue(llvm::Value const*) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1bcb534)
#8 0x0000000001bd9be6 llvm::SelectionDAGBuilder::visitBinary(llvm::User const&, unsigned int) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1bd9be6)
#9 0x0000000001bbb2f7 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1bbb2f7)
#10 0x0000000001c3c8c0 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, true>, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, true>, bool&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1c3c8c0)
#11 0x0000000001c3bd2c llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1c3bd2c)
#12 0x0000000001c38d53 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1c38d53)
#13 0x0000000000e939aa llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0xe939aa)
#14 0x000000000112eb7b llvm::FPPassManager::runOnFunction(llvm::Function&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x112eb7b)
#15 0x000000000112ede3 llvm::FPPassManager::runOnModule(llvm::Module&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x112ede3)
#16 0x000000000112f264 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x112f264)
#17 0x0000000001646142 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_deletellvm::raw_pwrite_stream >) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1646142)
#18 0x0000000001cdcdcc (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1cdcdcc)
#19 0x0000000002177316 clang::ParseAST(clang::Sema&, bool, bool) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x2177316)
#20 0x00000000019f471b clang::FrontendAction::Execute() (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x19f471b)
#21 0x00000000019a2458 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x19a2458)
#22 0x0000000001a78954 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x1a78954)
#23 0x00000000007e7fb6 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x7e7fb6)
#24 0x00000000007e415d main (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x7e415d)
#25 0x00002ac417950f71 __libc_start_main /data/glibc-2.18/csu/libc-start.c:303:0
#26 0x00000000007e32aa _start (/data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x7e32aa)

  1.  <eof> parser at end of file
    
  2.  Code generation
    
  3.  Running pass 'Function Pass Manager' on module '/root/jni/Test.cpp'.
    
  4.  Running pass 'AArch64 Instruction Selection' on function '@.datadiv_decode10062582115594154980'
    

clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (dev based on r316199) clang version 6.0.2 (https://android.googlesource.com/toolchain/clang) (based on LLVM 6.0.2svn)
Target: aarch64-none-linux-android
Thread model: posix
InstalledDir: /data/android-ndk-r17-linux-x86_64/toolchains/llvm/prebuilt/linux-x86_64/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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants