Skip to content

[BUG] armv7a + simd ld.lld segmentation fault during linking NEON code #1248

@arturbac

Description

@arturbac

Description

With ndk r-21.* clang ld.lld started to fail generating neon instructions when source code uses neon intrinsics for armeabi-v7a. With ndk r-20 there is no problem and no segmentation fault during linking stage.
ndk-r21 still generates proper code for armv-8a

  1.  Running pass 'Function Pass Manager' on module 'ld-temp.o'.
    
  2.  Running pass 'ARM Instruction Selection' on function '@_ZN4conv27yCrCb2rgb_aarch64_yps1_chs1E18yuv_data_info_tmplIPKSt4byteEPhj'
    

#0 0x0000000000e59f92 (/opt/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0xe59f92)
#1 0x0000000000e5a727 (/opt/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0xe5a727)
#2 0x00007f0ddea1b0b0 __restore_rt (/lib64/libpthread.so.0+0x130b0)
#3 0x000000000143b92d (/opt/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0x143b92d)
#4 0x00007ffc234315f0
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: linker command failed due to signal (use -v to see invocation)
ninja: build stopped: subcommand failed.

Environment Details

  • NDK Version: 21.* (0 and 1)
  • Host OS: Linux, gentoo
  • ABI: armeabi-v7a
  • NDK API level: 21

I attached linking output with seg fault and preprocessed source code of function mentioned in linker fault. I cannot narrow down more what causes seg fault than preprocessed source file.
linking_fault.txt

yuv_to_rgb_alligned.cc.txt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions