Package: opendkim
Version: 2.11.0~beta2-4
Severity: important
Dear Maintainer,
OpenDKIM fails to sign mail messages on S/390 system.
It fails with following message:
dkim_eom(): resource unavailable: unable to allocate -858993455 byte(s)
I added some debug code and found following malloc to fail, because
siglen is 0:
libopendkim/dkim.c:
4028 /* base64-encode the signature */
4029 dkim->dkim_b64siglen = siglen * 3 + 5;
4030 dkim->dkim_b64siglen += (dkim->dkim_b64siglen / 60);
4031 dkim->dkim_b64sig = DKIM_MALLOC(dkim,
dkim->dkim_b64siglen);
4032 if (dkim->dkim_b64sig == NULL)
4033 {
4034 dkim_error(dkim, "unable to allocate %d byte(s), sig
len is %d",
4035 dkim->dkim_b64siglen, siglen);
When I configure the opendkim package with --with-gnutls everything
works fine. It seems the internal signing mechanism is broken on S/390.
best regards
Waldemar Brodkorb
-- System Information:
Debian Release: 11.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: s390x
Kernel: Linux 5.10.0-14-s390x (SMP w/1 CPU thread)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages opendkim depends on:
ii adduser 3.118
ii dns-root-data 2021011101
ii init-system-helpers 1.60
ii libbsd0 0.11.3-1
ii libc6 2.31-13+deb11u3
ii libdb5.3 5.3.28+dfsg1-0.8
ii libgnutls30 3.7.1-5
ii libldap-2.4-2 2.4.57+dfsg-3+deb11u1
ii liblua5.1-0 5.1.5-8.1+b3
ii libmemcached11 1.0.18-4.2
ii libmilter1.0.1 8.15.2-22
ii libopendbx1 1.4.6-15
ii libopendkim11 2.11.0~beta2-4
ii librbl1 2.11.0~beta2-4
ii libunbound8 1.13.1-1
ii libvbr2 2.11.0~beta2-4
ii lsb-base 11.1.0
Versions of packages opendkim recommends:
ii opendkim-tools 2.11.0~beta2-4
opendkim suggests no packages.
-- Configuration Files:
/etc/opendkim.conf changed [not included]
-- no debconf information