[Debian-med-packaging] Bug#1091144: marked as pending in libmaus2

Andreas Tille noreply at salsa.debian.org
Sun Nov 1 18:58:23 GMT 2026


Control: tag -1 pending

Hello,

Bug #1091144 in libmaus2 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/med-team/libmaus2/-/commit/43026fea66a31a373e48f3e613f0198089517510

------------------------------------------------------------------------
Fix cache line size detection on architectures without sysfs cache info

add-support-for-loong64.patch replaced sysconf(_SC_LEVEL1_DCACHE_LINESIZE)
by reading /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size on
Linux.  That file is not present in every environment, and the value was
read using a %d conversion into a uint64_t, so the function returns 0
whenever the file cannot be read (or produces a bogus number otherwise).
AutoArrayAllocate<N,alloc_type_memalign_cacheline> then passes that value
as std::align_val_t to operator new, and an alignment of 0 makes the
allocation throw std::bad_alloc, which surfaced as

 AutoArray<unsigned long,alloc_type_memalign_cacheline> failed to allocate
 1398102 elements (11184816 bytes)

in testRank.sh and testdnarank.sh on arm64, armhf, s390x, hppa, powerpc,
ppc64, sparc64 and alpha.

Read the file with the SCNu64 conversion, verify that the result is a non
zero power of two and fall back to sysconf(_SC_LEVEL1_DCACHE_LINESIZE) and
then to alignof(std::max_align_t), so that the value is always usable as
an alignment.

Closes: #1069691, #1091144
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1091144



More information about the Debian-med-packaging mailing list