This isn't a new problem. openRuyi encountered the exact same problem: https://github.com/openRuyi-Project/openRuyi/issues/938
The following PR fixed their issue: https://github.com/openRuyi-Project/openRuyi/pull/1077 It's possible this will fix our issue too. ** Description changed: + =========== + Description + =========== When test-compiling clamav using LLVM 22, a SIGSEGV happens when compiling the image-webp crate on riscv64: error: rustc interrupted by SIGSEGV, printing backtrace /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0x8ea82a) [0x7feff6eea82a] linux-vdso.so.1(__vdso_rt_sigreturn+0x0) [0x7feffc1925e0] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm16VPTransformState3getEPKNS_7VPValueERKNS_6VPLaneE+0x206) [0x7feff3efccf0] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm16VPTransformState3getEPKNS_7VPValueEb+0x44) [0x7feff3efcd9a] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm13VPInstruction8generateERNS_16VPTransformStateE+0x7e4) [0x7feff3f208b8] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm13VPInstruction7executeERNS_16VPTransformStateE+0x76) [0x7feff3f2288e] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm12VPBasicBlock7executeEPNS_16VPTransformStateE+0x308) [0x7feff3efdfce] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm5VPlan7executeEPNS_16VPTransformStateE+0x16c) [0x7feff3f00e02] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm24LoopVectorizationPlanner11executePlanENS_12ElementCountEjRNS_5VPlanERNS_19InnerLoopVectorizerEPNS_13DominatorTreeEb+0x840) [0x7feff3ddf7b2] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm17LoopVectorizePass11processLoopEPNS_4LoopE+0x1c4a) [0x7feff3de8c96] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm17LoopVectorizePass7runImplERNS_8FunctionE+0x10a) [0x7feff3deee5a] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm17LoopVectorizePass3runERNS_8FunctionERNS_15AnalysisManagerIS1_JEEE+0x280) [0x7feff3def33e] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(+0x7ee30fa) [0x7feff5ce30fa] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm11PassManagerINS_8FunctionENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0xf8) [0x7feff2e6c7f2] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(+0x6eb15f6) [0x7feff4cb15f6] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm27ModuleToFunctionPassAdaptor3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE+0xe4) [0x7feff2e6f7da] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(+0x6eb2950) [0x7feff4cb2950] /usr/lib/riscv64-linux-gnu/libLLVM.so.22.1(_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0xf8) [0x7feff2e6baca] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0xda2190) [0x7feff73a2190] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0xce6430) [0x7feff72e6430] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0xc40a64) [0x7feff7240a64] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(_RNvXs1_CsgOaSkWfb0SV_18rustc_codegen_llvmNtB5_18LlvmCodegenBackendNtNtNtCs3nlVwpm3A9W_17rustc_codegen_ssa6traits5write19WriteBackendMethods25optimize_and_codegen_thin+0x80a) [0x7feff7247a5a] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0xd7bf0e) [0x7feff737bf0e] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(_RINvNtNtCs8HIIVnFLVsx_3std3sys9backtrace28___rust_begin_short_backtraceNCINvNtNtCs3nlVwpm3A9W_17rustc_codegen_ssa4back5write19spawn_thin_lto_workNtCsgOaSkWfb0SV_18rustc_codegen_llvm18LlvmCodegenBackendE0uEB2l_+0x12c) [0x7feff7250b50] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0xc3c090) [0x7feff723c090] /usr/lib/riscv64-linux-gnu/librustc_driver-646b0535d0e8ef10.so(+0x4278db6) [0x7feffa878db6] /usr/lib/riscv64-linux-gnu/libc.so.6(+0x77be4) [0x7feff64eebe4] /usr/lib/riscv64-linux-gnu/libc.so.6(+0xcd7bc) [0x7feff65447bc] note: we would appreciate a report at https://github.com/rust-lang/rust help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216 note: backtrace dumped due to SIGSEGV! resuming signal error: could not compile `image-webp` (lib) Caused by: - process didn't exit successfully: `rustc --crate-name image_webp --edition=2021 /<<PKGBUILDDIR>>/.cargo/vendor/image-webp/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("_benchmarks"))' -C metadata=653dc249548166d7 -C extra-filename=-aaed96fde6bab65d --out-dir /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps --target riscv64a23-unknown-linux-gnu -C strip=debuginfo -L dependency=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps -L dependency=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/release/deps --extern byteorder_lite=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps/libbyteorder_lite-9637a2a095f8f217.rmeta --extern quick_error=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps/libquick_error-0350c39a07e9db83.rmeta --cap-lints allow -Cforce-frame-pointers=yes -g` (signal: 11, SIGSEGV: invalid memory reference) + process didn't exit successfully: `rustc --crate-name image_webp --edition=2021 /<<PKGBUILDDIR>>/.cargo/vendor/image-webp/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("_benchmarks"))' -C metadata=653dc249548166d7 -C extra-filename=-aaed96fde6bab65d --out-dir /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps --target riscv64a23-unknown-linux-gnu -C strip=debuginfo -L dependency=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps -L dependency=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/release/deps --extern byteorder_lite=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps/libbyteorder_lite-9637a2a095f8f217.rmeta --extern quick_error=/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/riscv64a23-unknown-linux-gnu/release/deps/libquick_error-0350c39a07e9db83.rmeta --cap-lints allow -Cforce-frame-pointers=yes -g` (signal: 11, SIGSEGV: invalid memory reference) Full buildlog: https://launchpadlibrarian.net/874305812/buildlog_ubuntu- stonking-riscv64.clamav_1.5.3+dfsg-0ubuntu4_BUILDING.txt.gz + + ============ + Reproduction + ============ + To reproduce this bug, attempt to build clamav 1.5.3+dfsg-0ubuntu4 on riscv64 + using my rustc-1.97-merge[1] and rustc-1.97-defaults[2] PPAs as extra + repositories, therefore ensuring LLVM 22 is used behind-the-scenes. + + [1]: https://launchpad.net/~maxgmr/+archive/ubuntu/rustc-1.97-merge + [2]: https://launchpad.net/~maxgmr/+archive/ubuntu/rustc-1.97-defaults ** Bug watch added: github.com/openRuyi-Project/openRuyi/issues #938 https://github.com/openRuyi-Project/openRuyi/issues/938 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2164944 Title: SIGSEGV in LLVM LoopVectorize when compiling image-webp on RVA23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-22/+bug/2164944/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
