[DRE-maint] Bug#1114552: ruby-sys-filesystem: does not work and causes crash on s390x

Aurelien Jarno aurel32 at debian.org
Sat Sep 6 21:33:18 BST 2025


Source: ruby-sys-filesystem
Version: 1.4.4-1
Severity: grave
Tags: upstream
Justification: renders package unusable
X-Debbugs-Cc: debian-s390 at lists.debian.org, dsa at debian.org
User: debian-s390 at lists.debian.org
Usertags: s390x
Control: affects -1 facter

Hi,

Following the upgrade of ruby-sys-filesystem from bookworm (1.4.3-1) to
trixie (1.4.4-1), ruby-sys-filesystem causes facter to crash:

| # facter
| malloc(): invalid size (unsorted)
| Aborted

As pointed out by Chris Hofstaedtler, upstream has changed the method to
detect the host bitness, and use the corresponding statvfs structure
through libffi. It now assumes that all 64-bit architectures have a "64"
in there architecture name, which is not true for s390x (and also for
alpha in ports). This causes the crash.

>From a quick search it seems a better way would be to look at the size
of a pointer, but I am not a ruby expert at all:

| [nil].pack('p').size == 8

Regards
Aurelien

[1] https://salsa.debian.org/ruby-team/ruby-sys-filesystem/-/compare/debian%2F1.4.3-1...debian%2Flatest?from_project_id=2705#e21865feb88252795c3ddd3361334b892fbdf4bd_109_114



More information about the Pkg-ruby-extras-maintainers mailing list