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

[RISCV64] ld.lld crashed while linking libdng_sdk #123351

Open
appujee opened this issue Jan 17, 2025 · 0 comments
Open

[RISCV64] ld.lld crashed while linking libdng_sdk #123351

appujee opened this issue Jan 17, 2025 · 0 comments
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] lld

Comments

@appujee
Copy link
Contributor

appujee commented Jan 17, 2025

Attached repro.tar.gz

FAILED: out/soong/.intermediates/external/dng_sdk/libdng_sdk/android_riscv64_shared/unstripped/libdng_sdk.so
prebuilts/remoteexecution-client/live/rewrapper --labels=tool=clang,type=link --platform="Pool=java16,container-image=docker://gcr.io/androidbuild-re-dockerimage/android-build-remoteexec-image@sha256:1eb7f64b9e17102b970bd7a1af7daaebdb01c3fb777715899ef462d6c6d01a45" --exec_strategy=remote_local_fallback --inputs=out/soong/.intermediates/external/dng_sdk/libdng_sdk/android_riscv64_shared/unstripped/libdng_sdk.so.rsp,out/soong/.intermediates/external/zlib/libz/android_riscv64_shared/libz.so.toc,out/soong/.intermediates/external/libjpeg-turbo/libjpeg/android_riscv64_shared/libjpeg.so.toc,out/soong/.intermediates/prebuilts/clang/host/linux-x86/libc++/android_riscv64_shared/libc++.so.toc,out/soong/.intermediates/bionic/libc/libc/android_riscv64_shared_current/libc.so.toc,out/soong/.intermediates/bionic/libm/libm/android_riscv64_shared_current/libm.so.toc,out/soong/.intermediates/bionic/libdl/libdl/android_riscv64_shared_current/libdl.so.toc,prebuilts/clang/host/linux-x86/clang-r536225/lib/clang/19/lib/linux/libclang_rt.ubsan_minimal-riscv64-android.a,prebuilts/clang/host/linux-x86/clang-r536225/android_libc++/platform/riscv64/lib/libc++demangle.a,prebuilts/clang/host/linux-x86/clang-r536225/lib/clang/19/lib/linux/libclang_rt.builtins-riscv64-android.a,out/soong/.intermediates/bionic/libc/crtbegin_so/android_riscv64/crtbegin_so.o,out/soong/.intermediates/bionic/libc/crtend_so/android_riscv64/crtend_so.o,out/soong/.intermediates/bionic/libc/crt_pad_segment/android_riscv64/crt_pad_segment.o --input_list_paths=out/soong/.intermediates/external/dng_sdk/libdng_sdk/android_riscv64_shared/unstripped/libdng_sdk.so.rsp --output_files=out/soong/.intermediates/external/dng_sdk/libdng_sdk/android_riscv64_shared/unstripped/libdng_sdk.so, --toolchain_inputs=prebuilts/clang/host/linux-x86/clang-r536225/bin/clang++ --env_var_allowlist=LANG,LC_MESSAGES,PYTHONDONTWRITEBYTECODE -- prebuilts/clang/host/linux-x86/clang-r536225/bin/clang++ out/soong/.intermediates/bionic/libc/crtbegin_so/android_riscv64/crtbegin_so.o @out/soong/.intermediates/external/dng_sdk/libdng_sdk/android_riscv64_shared/unstripped/libdng_sdk.so.rsp out/soong/.intermediates/bionic/libc/crtend_so/android_riscv64/crtend_so.o out/soong/.intermediates/bionic/libc/crt_pad_segment/android_riscv64/crt_pad_segment.o -o out/soong/.intermediates/external/dng_sdk/libdng_sdk/android_riscv64_shared/unstripped/libdng_sdk.so -target riscv64-linux-android10000 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -Wl,--exclude-libs,libunwind_llvm.a -Wl,--exclude-libs,libunwind.a -fuse-ld=lld -Wl,--icf=safe -Wl,--no-demangle -Wl,--compress-debug-sections=zstd -Wl,--no-undefined -march=rv64gcv_zba_zbb_zbs -Wl,-mllvm -Wl,-jump-is-expensive=false -Wl,-z,max-page-size=4096   -Wl,--pack-dyn-relocs=android+relr -nostdlib -Wl,--gc-sections -shared -Wl,-soname,libdng_sdk.so -fsanitize=unsigned-integer-overflow,signed-integer-overflow -fno-sanitize-link-runtime -flto=thin -fsplit-lto-unit -Wl,-plugin-opt,-import-instr-limit=5 -Wl,--exclude-libs=libclang_rt.builtins-riscv64-android.a -Wl,--exclude-libs=libclang_rt.ubsan_minimal-riscv64-android.a 
PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace.
 #0 0x000055f9388fce32 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2ac8e32)
 #1 0x000055f9388fbd60 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2ac7d60)
 #2 0x000055f9388fd2a1 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2ac92a1)
 #3 0x00007fe029f49330 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
 #4 0x000055f9375aeb20 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x177ab20)
 #5 0x000055f937e94028 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2060028)
 #6 0x000055f937e8f70e (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205b70e)
 #7 0x000055f937e8fda5 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205bda5)
 #8 0x000055f937e8f70e (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205b70e)
 #9 0x000055f937e8fda5 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205bda5)
#10 0x000055f937e8f70e (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205b70e)
#11 0x000055f937e8fda5 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205bda5)
#12 0x000055f937e8f70e (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205b70e)
#13 0x000055f937e8fd80 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205bd80)
#14 0x000055f937e8f70e (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205b70e)
#15 0x000055f937e91f11 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x205df11)
#16 0x000055f9381a88c5 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x23748c5)
#17 0x000055f93763cb40 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x1808b40)
#18 0x000055f93764ddfa (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x1819dfa)
#19 0x000055f937c03412 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x1dcf412)
#20 0x000055f937c04f94 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x1dd0f94)
#21 0x000055f937c038c0 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x1dcf8c0)
#22 0x000055f937c0378d (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x1dcf78d)
#23 0x000055f937683c20 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x184fc20)
#24 0x000055f937683a4d (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x184fa4d)
#25 0x000055f9376831d4 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x184f1d4)
#26 0x000055f9376830bd (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x184f0bd)
#27 0x000055f9374de266 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x16aa266)
#28 0x000055f93826e46c (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x243a46c)
#29 0x000055f93826de24 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2439e24)
#30 0x000055f938268292 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2434292)
#31 0x000055f938267ea4 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2433ea4)
#32 0x000055f937f039e5 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x20cf9e5)
#33 0x000055f938440bd8 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x260cbd8)
#34 0x000055f938440949 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x260c949)
#35 0x000055f93844086b (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x260c86b)
#36 0x000055f9383ad966 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x2579966)
#37 0x000055f9381efef7 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x23bbef7)
#38 0x000055f9381efc8e (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x23bbc8e)
#39 0x000055f9381efbf9 (/mnt/disks/build-disk/src/android/main/prebuilts/clang/host/linux-x86/clang-r536225/bin/ld.lld+0x23bbbf9)
#40 0x00007fe029f41184 start_thread /build/eglibc-xkFqqE/eglibc-2.19/nptl/pthread_create.c:312:0
#41 0x00007fe02912d03d __clone /build/eglibc-xkFqqE/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:113:0
clang++: error: unable to execute command: Segmentation fault (core dumped)
@llvmbot llvmbot added the lld label Jan 17, 2025
@appujee appujee changed the title [RISCV64] ld.lld crashed while liinking libdng_sdk [RISCV64] ld.lld crashed while linking libdng_sdk Jan 17, 2025
@EugeneZelenko EugeneZelenko added the crash Prefer [crash-on-valid] or [crash-on-invalid] label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] lld
Projects
None yet
Development

No branches or pull requests

3 participants