#1104721 ruff: ruff fails to run on Asahi Linux kernel (Apple M2) because jemalloc complains about page size

#1104721#5
Date:
2025-05-05 08:24:21 UTC
From:
To:
Dear Maintainer,

running ruff on my Debian/testing system based on the Asahi Linux kernel
only gives me the following error messages:

,----
| $ ruff
| <jemalloc>: Unsupported system page size
| <jemalloc>: Unsupported system page size
| memory allocation of 5 bytes failed
| Aborted
`----

Curious: ruff seems to link jemalloc statically:

,----
| $ ldd /usr/bin/ruff
| 	linux-vdso.so.1 (0x0000fffee22c8000)
| 	libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000fffee12a0000)
| 	libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000fffee11f0000)
| 	libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000fffee1020000)
| 	/lib/ld-linux-aarch64.so.1 (0x0000fffee2290000)
`----

I would have tried to patch out the tikv-jemallocator dependency
(crates/ruff_cli/Cargo.toml), but there are other problems preventing
the package to be built from source in the first place.

Cheers,
-Hilko

#1104721#10
Date:
2025-05-10 06:43:54 UTC
From:
To:
severity 1104721 wishlist
thanks

Asahi linux kernel for apple m2 is not in debian, I don't see why this
would be an RC bug.