#1128826 dhcpd-pools: FTBFS with glibc 2.43 on arm64, issue with 2MB THP

Package:
src:dhcpd-pools
Source:
src:dhcpd-pools
Submitter:
Emanuele Rocca
Date:
2026-02-26 08:55:01 UTC
Severity:
normal
Tags:
#1128826#5
Date:
2026-02-23 12:43:57 UTC
From:
To:
Hi,

dhcpd-pools fails to build from source on arm64 when using glibc 2.43,
currently in experimental.

The issue is triggered by glibc 2.43 on arm64 enabling 2MB THP by
default:
https://sourceware.org/git/?p=glibc.git;a=commit;h=321e1fc73f53081d92ba357cdd48c56b79292020

The problem is however not architecture-specific. For example it can be
reproduced with glibc 2.42 on amd64 by building the package with the
GLIBC_TUNABLES environment variable set to glibc.malloc.hugetlb=2.

Successful build with glibc 2.42, currently in sid:
https://people.debian.org/~ema/glibc-2.43-rebuilds/output-2/dhcpd-pools_arm64.build

Logs of a failed build with glibc 2.43 are here:
https://people.debian.org/~ema/glibc-2.43-rebuilds/output-1/dhcpd-pools_arm64.build

Salient part:

FAIL: tests/errors
==================
--- ./tests/expected/errors     2020-11-27 21:10:58.028560952 +0000
+++ tests/outputs/errors        2026-02-20 08:35:52.532293041 +0000
@@ -3,7 +3,7 @@
 === unknown specifier
 dhcpd-pools: unknown --skip specifier: okish
 === color mode
-dhcpd-pools: unknown color mode: 'sometimes'
+dhcpd-pools: unknown color mode: 'sometimes': Cannot allocate memory
 === IPv5
 dhcpd-pools: unknown --ip-version argument: 5
 === missing conf
FAIL tests/errors (exit status: 1)

============================================================================
Testsuite summary for dhcpd-pools 3.2
============================================================================
# TOTAL: 38
# PASS:  37
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log for debugging.
Some test(s) failed.  Please report this to kerolasa@iki.fi,
together with the test-suite.log file (gzipped) and your system
information.  Thanks.
============================================================================
make[5]: *** [Makefile:2361: test-suite.log] Error 1
make[5]: Leaving directory '/build/reproducible-path/dhcpd-pools-3.2'
make[4]: *** [Makefile:2496: check-TESTS] Error 2

#1128826#10
Date:
2026-02-25 21:43:20 UTC
From:
To:
control: tag -1 + patch

Hi,

The following patch fixes the issue:
--- dhcpd-pools-3.2.orig/src/dhcpd-pools.c +++ dhcpd-pools-3.2/src/dhcpd-pools.c @@ -239,7 +239,7 @@ static void parse_command_line_opts(stru case OPT_COLOR: state->color_mode = parse_color_mode(optarg); if (state->color_mode == color_unknown) - error(EXIT_FAILURE, errno, "unknown color mode: %s", quote(optarg)); + error(EXIT_FAILURE, 0, "unknown color mode: %s", quote(optarg)); break; case OPT_SKIP: skip_arg_parse(state, optarg); In short parse_color_mode() does not set or change errno, so it doesn't make sense to print it, as it can just contain random values. Regards Aurelien
#1128826#17
Date:
2026-02-26 08:45:27 UTC
From:
To:
Hi,

Thanks will test, patch, upload later.

Kind regards,
Martijn van Brummelen