#1108806 commons-exec: FTBFS randomly: autobuilder hangs

#1108806#5
Date:
2025-07-05 10:59:00 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=maven
   dh_auto_clean -O--buildsystem=maven
	bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
	mh_unpatchpoms -plibcommons-exec-java
   dh_autoreconf_clean -O--buildsystem=maven
   dh_clean -O--buildsystem=maven
 debian/rules binary
dh binary --buildsystem=maven
   dh_update_autotools_config -O--buildsystem=maven
   dh_autoreconf -O--buildsystem=maven
   dh_auto_configure -O--buildsystem=maven
	mh_patchpoms -plibcommons-exec-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   dh_auto_build -O--buildsystem=maven
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
[INFO] Scanning for projects...
[WARNING] The project org.apache.commons:commons-exec:jar:1.3 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO]
[INFO] ------------------< org.apache.commons:commons-exec >-------------------
[INFO] Building Apache Commons Exec 1.3
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ commons-exec ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ commons-exec ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 32 source files with javac [debug target 1.5] to target/classes
Use of target 1.5 is no longer supported, switching to 8
Use of source 1.5 is no longer supported, switching to 8
[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ commons-exec ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ commons-exec ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 17 source files with javac [debug target 1.5] to target/test-classes
Use of target 1.5 is no longer supported, switching to 8
Use of source 1.5 is no longer supported, switching to 8
[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ commons-exec ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ commons-exec ---
[INFO] Building jar: /<<PKGBUILDDIR>>/target/commons-exec-1.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.704 s
[INFO] Finished at: 2025-07-05T04:40:59Z
[INFO] ------------------------------------------------------------------------
   dh_auto_test -O--buildsystem=maven
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode test
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
[INFO] Scanning for projects...
[WARNING] The project org.apache.commons:commons-exec:jar:1.3 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO]
[INFO] ------------------< org.apache.commons:commons-exec >-------------------
[INFO] Building Apache Commons Exec 1.3
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ commons-exec ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ commons-exec ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ commons-exec ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ commons-exec ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ commons-exec ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.commons.exec.DefaultExecutorTest
gdal_translate
HDF5:"/home/kk/grass/data/4404.he5"://HDFEOS/GRIDS/OMI_Column_Amount_O3/Data_Fields/ColumnAmountO3/home/kk/4.tif
FOO..
FOO..
[WARNING] Tests run: 30, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 42.391 s - in org.apache.commons.exec.DefaultExecutorTest
[INFO] Running org.apache.commons.exec.environment.EnvironmentUtilsTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.commons.exec.environment.EnvironmentUtilsTest
[INFO] Running org.apache.commons.exec.StandAloneTest
mkdir: cannot create directory ‘target/’: File exists
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s - in org.apache.commons.exec.StandAloneTest
[INFO] Running org.apache.commons.exec.LogOutputStreamTest
DFLAGS=-frelease
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_TARGET_GNU_CPU=x86_64
DEB_BUILD_ARCH_BITS=64
ASFLAGS_FOR_BUILD=
DEB_HOST_ARCH_OS=linux
USER=buildd
CXXFLAGS=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
DEB_TARGET_MULTIARCH=x86_64-linux-gnu
DEB_BUILD_GNU_TYPE=x86_64-linux-gnu
OBJCFLAGS=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
FFLAGS_FOR_BUILD=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection
DEB_BUILD_ARCH_CPU=amd64
DEB_HOST_ARCH_LIBC=gnu
DEB_HOST_ARCH_ABI=base
HOME=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home
OLDPWD=/<<PKGBUILDDIR>>
SCHROOT_CHROOT_NAME=trixie-file
APT_CONFIG=/var/lib/sbuild/apt.conf
LDFLAGS=-Wl,-z,relro
DFLAGS_FOR_BUILD=-frelease
DEB_BUILD_ARCH_ENDIAN=little
DEB_TARGET_ARCH_BITS=64
LC_CTYPE=C.UTF-8
DEB_BUILD_GNU_SYSTEM=linux-gnu
SCHROOT_UID=924
MAKEFLAGS=
CXXFLAGS_FOR_BUILD=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
DEB_TARGET_GNU_TYPE=x86_64-linux-gnu
DEB_BUILD_ARCH_OS=linux
OBJCFLAGS_FOR_BUILD=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
DEB_TARGET_ARCH_CPU=amd64
LOGNAME=buildd
DEB_BUILD_ARCH_ABI=base
DEB_BUILD_ARCH_LIBC=gnu
DEB_HOST_ARCH=amd64
DEB_TARGET_ARCH_ENDIAN=little
LDFLAGS_FOR_BUILD=-Wl,-z,relro
DEB_TARGET_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_CPU=x86_64
LC_COLLATE=C.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
DEB_TARGET_ARCH_OS=linux
MAKELEVEL=1
XDG_RUNTIME_DIR=/tmp/dh-xdg-rundir-tlelLf9k
CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
FCFLAGS=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection
SCHROOT_COMMAND=dpkg-buildpackage --sanitize-env -us -uc -b
SOURCE_DATE_EPOCH=1746383582
DEB_HOST_MULTIARCH=x86_64-linux-gnu
SCHROOT_SESSION_ID=trixie-file-ca864ddd-251d-4061-9b18-801952c722cd
OBJCXXFLAGS=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
LANG=C.UTF-8
SCHROOT_ALIAS_NAME=trixie-file
DEB_TARGET_ARCH_ABI=base
DEB_TARGET_ARCH_LIBC=gnu
SCHROOT_GROUP=buildd
SCHROOT_USER=buildd
CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
DEB_BUILD_OPTIONS=parallel=2
DH_INTERNAL_BUILDFLAGS=1
SHELL=/bin/sh
DEB_HOST_ARCH_BITS=64
DEB_BUILD_ARCH=amd64
CFLAGS_FOR_BUILD=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
DEB_BUILD_GNU_CPU=x86_64
ASFLAGS=
DEB_HOST_GNU_TYPE=x86_64-linux-gnu
FCFLAGS_FOR_BUILD=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection
DEB_HOST_ARCH_CPU=amd64
OBJCXXFLAGS_FOR_BUILD=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
DEB_RULES_REQUIRES_ROOT=no
PWD=/<<PKGBUILDDIR>>
DEB_BUILD_MULTIARCH=x86_64-linux-gnu
FFLAGS=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection
CPPFLAGS_FOR_BUILD=-Wdate-time -D_FORTIFY_SOURCE=2
SCHROOT_GID=924
MFLAGS=
DEB_HOST_ARCH_ENDIAN=little
DEB_TARGET_ARCH=amd64
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in org.apache.commons.exec.LogOutputStreamTest
[INFO] Running org.apache.commons.exec.util.StringUtilTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.commons.exec.util.StringUtilTest
[INFO] Running org.apache.commons.exec.util.MapUtilTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.commons.exec.util.MapUtilTest
[INFO] Running org.apache.commons.exec.CommandLineTest
testToStringTroubleshooting
cmd1: [sh, -c, echo 1]
cmd2: [sh, -c, echo, 1]
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 s - in org.apache.commons.exec.CommandLineTest
[INFO] Running org.apache.commons.exec.issues.Exec44Test
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5 s - in org.apache.commons.exec.issues.Exec44Test
[INFO] Running org.apache.commons.exec.issues.Exec49Test
Preparing to execute process - commandLine=[/bin/ls, /opt]
Process spun off successfully - process=/bin/ls
Preparing to execute process - commandLine=[/bin/ls, /opt]
Process spun off successfully - process=/bin/ls
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 s - in org.apache.commons.exec.issues.Exec49Test
[INFO] Running org.apache.commons.exec.issues.Exec36Test
[WARNING] Tests run: 5, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.001 s - in org.apache.commons.exec.issues.Exec36Test
[INFO] Running org.apache.commons.exec.issues.Exec41Test
ping: socktype: SOCK_RAW
ping: socket: Operation not permitted
ping: => missing cap_net_raw+p capability or setuid?
Process completed in 3 millis; below is its output
org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2)
Process completed in 4 millis; below is its output
[ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.002 s <<< FAILURE! - in org.apache.commons.exec.issues.Exec41Test
[ERROR] testExec41WithStreams(org.apache.commons.exec.issues.Exec41Test)  Time elapsed: 0.001 s  <<< FAILURE!
java.lang.AssertionError: The process was killed by the watchdog
	at org.apache.commons.exec.issues.Exec41Test.testExec41WithStreams(Exec41Test.java:96)

[ERROR] testExec41WithoutStreams(org.apache.commons.exec.issues.Exec41Test)  Time elapsed: 0.001 s  <<< FAILURE!
java.lang.AssertionError: The process was killed by the watchdog
	at org.apache.commons.exec.issues.Exec41Test.testExec41WithoutStreams(Exec41Test.java:143)

[INFO] Running org.apache.commons.exec.issues.Exec33Test
FOO..
E: Build killed with signal TERM after 60 minutes of inactivity
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
I've put several full build logs here:

https://people.debian.org/~sanvila/build-logs/202507/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

Note: The build might not always fail (hence the "randomly" in the title),
but I'm getting a failure rate around 50% here, which is way above
the usual thresholds used by the RT. If you could not reproduce these
random failures please contact me privately, as I am willing
to provide ssh access to a virtual machine where they happen.

(Note: Tony Mancill has already such a VM to test this package,
which I initially created for zookeeper).

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:commons-exec, so that this is still
visible in the BTS web page for this package.

Thanks.

#1108806#12
Date:
2026-10-22 16:50:12 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
commons-exec, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1108806@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebourg@apache.org> (supplier of updated commons-exec package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 22 Oct 2026 16:03:53 +0200
Source: commons-exec
Architecture: source
Version: 1.6.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1108806
Changes:
 commons-exec (1.6.0-1) unstable; urgency=medium
 .
   [ Debian Janitor ]
   * Apply multi-arch hints (Multi-Arch: foreign)
 .
   [ Emmanuel Bourg ]
   * New upstream release
     - Ignore the new code quality plugins
     - Depend on junit5 instead of junit4
     - New build dependencies on libcommons-lang3-java and libjunit-pioneer-java
     - Disabled the test hanging the build (Closes: #1108806)
   * Standards-Version updated to 4.7.4
   * Removed the Priority field
   * Converted debian/watch to the version 5 format
Checksums-Sha1:
 66b5fb5ee44473b3d8cdfa30638f2ecf27d79804 2095 commons-exec_1.6.0-1.dsc
 9fa86cd8ff9aba06bb29462d60b89c970d3717ca 148256 commons-exec_1.6.0.orig.tar.xz
 8c88de61bb0703b20f5134f8274673933d65cfec 3684 commons-exec_1.6.0-1.debian.tar.xz
 056c0a33d4e186018a056694473bcd755a6092bd 15046 commons-exec_1.6.0-1_source.buildinfo
Checksums-Sha256:
 d17392cae1c819624abcc89246e52ed9144ffd3856df87544015e914862d0d64 2095 commons-exec_1.6.0-1.dsc
 654f5be4822a6323b5ff2779d59112c15db60ccbd9df2575888ff0113bc3eda8 148256 commons-exec_1.6.0.orig.tar.xz
 fab71cdcdbdb86b02a8f401669e3920e182cfa6a4e557ddcf0a4e5ccffeb27b0 3684 commons-exec_1.6.0-1.debian.tar.xz
 fa363fa8e972092e469bc9470c860cb537296c9c4e7e6b772886b4030176d1dd 15046 commons-exec_1.6.0-1_source.buildinfo
Files:
 f2bc3e31b4b467d3399628f38c0c3928 2095 java optional commons-exec_1.6.0-1.dsc
 828d12552b4b4636e9883fc1df77225c 148256 java optional commons-exec_1.6.0.orig.tar.xz
 37055d33462cc674e8a3a73a9ae1816c 3684 java optional commons-exec_1.6.0-1.debian.tar.xz
 e378bb2a5c0e4fafe289a16f58c160d1 15046 java optional commons-exec_1.6.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmraOMISHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCscjwP/jgYMs90Vloqq9UXRS9HmuDMIqTdbIyl
INklifMiSgNDMWhRuJADMp9SYxeFZReiqIlB/M3yHh+5LbvCmojXnZ2wCovlxYyk
k2qVAywVq7RNrBFOYbDFdrqsxMHiQA2rKoBsovPKEzZZ4hAY/YEo8VLXHd6+QLoE
DffPmzLsT+e3HXmbiq1DoGhfcvJX6muAf3LdiZ/vLqKdiIURD+BprKWVbSbV0FvW
g65LrxgiFd+EDIMz3UsVx+1ZNZTJj71++IOmdHwwnZvMe2qMbGUx0IfuMuW99fjD
7ME7SK0rLNPNpQQOxOHaL6tNcxniJf7MSoZDCwEzJINhXeVju4PXv0SpIYLD5wQX
5kQ88zcBmEwNSv0m29jcWFjDW1rvX2qNWazoo1uiGN7cwSJQRY5XUPtAyNgKzhcm
WsgtfCQfVu7RsSyFmCOsmdbS9YX1wsc0kzYDOqihvGEuwh3xguWC1Yijx+8i66ve
AgD4pBf2CG8HJ4YTDtrhzTDCOwvXRSkz13cb+sVCgl7hxmetPfJz/VZUPjIjeqB8
Jz+DYduI/ZqVyUoHTOAVmDlTQuRSu5hzaRH3O1XHIJLv/3evSphXNWXY5XVsNZwc
uayBez4PXV4xyqYW79dUbHFMWWD0KgQd815Ow+kn4ad3b32966t14XC/JQRzpgr2
8QcJEwNB1syN
=ea4c
-----END PGP SIGNATURE-----