control: tag -1 + fixed-upstream
control: tag -1 + patch
control: forwarded -1 
https://github.com/abseil/abseil-cpp/commit/7335a36d0b5c1c597566f9aa3f458a5b6817c3b4

Hi Benjamin,

On 2023-12-27 12:45, Benjamin Barenblat wrote:
> Source: abseil
> Version: 20220623.1-1
> Severity: normal
> Tags: upstream
> Control: forwarded -1 https://github.com/abseil/abseil-cpp/pull/1550
> 
> On RISC-V, Abseil's cycle counter uses the rdcycle instruction, which is
> a privileged instruction when running on Debian's Linux kernels. This
> causes some widely used Abseil functions (e.g., certain member functions
> on absl::Mutex) to crash with a SIGILL.

This has finally been fixed upstream, please pull the following patch to
fix this issue:
https://github.com/abseil/abseil-cpp/commit/7335a36d0b5c1c597566f9aa3f458a5b6817c3b4

In addition it is not necessary anymore to run the testsuite with
--no-parallel, the problem was linked to the use of the rdcycle
instruction which jumps when the process is rescheduled on another CPU.
I have tested the following patch with the above upstream commit:


diff -Nru abseil-20230802.1/debian/rules abseil-20230802.1/debian/rules
--- abseil-20230802.1/debian/rules      2023-09-07 19:11:48.000000000 +0200
+++ abseil-20230802.1/debian/rules      2024-03-23 16:56:20.000000000 +0100
@@ -28,12 +28,6 @@
 ABSL_RUN_TESTS=ON
 endif
 
-# Debian's RISC-V builders don't have enough resources to run tests in 
parallel.
-# See https://bugs.debian.org/1025221.
-ifneq ($(filter $(DEB_HOST_ARCH),riscv64),)
-ABSL_TEST_EXTRA_ARGS=--no-parallel
-endif
-
 %:
        dh $@

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurel...@aurel32.net                     http://aurel32.net

Attachment: signature.asc
Description: PGP signature

Reply via email to