Your message dated Sun, 10 Dec 2023 10:19:33 +0000
with message-id <[email protected]>
and subject line Bug#1055218: fixed in ck 0.7.1-12
has caused the Debian Bug report #1055218,
regarding ck: Tests hang the machine when it has a single CPU
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1055218: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055218
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:ck
Version: 0.7.1-10
Severity: important
Tags: patch

Dear maintainer:

During a mass rebuild of all packages in bookworm, this
package failed to build in this way:

[...]
barrier_centralized
Creating threads (barrier)...done
Waiting for threads to finish correctness regression...WARNING: Could not 
affine thread: Invalid argument
E: Build killed with signal TERM after 60 minutes of inactivity


My machine has a single CPU, but I expect this to work, because
build-essential does not imply multicore.

To fix this, I first tried to change --cores=2 to --cores=1
in debian/rules, but that didn't work.

[ Note: I understand that this package is related to parallel processing,
and at this point you might be wondering why do I want to build it
on a single CPU system at all. Well, because Debian is based on
binary packages ("we are not Gentoo"), and the system on which the
package is finally used does not have to be the same as the system
on which the package was initially built ].

Anyway, I believe the right fix in this case is to disable the
test suite on systems on which we know the test suite will
hang the machine, as in the attached patch.

To reproduce the hang, just try GRUB_CMDLINE_LINUX="nr_cpus=1"
in /etc/default/grub.

Thanks.
commit fbad1ce77ea0410d14b015e3cf2a8e0c72ba78cc
Author: Santiago Vila <[email protected]>
Date:   Thu Nov 2 11:09:41 2023 +0100

    Skip tests when DEB_BUILD_OPTIONS has parallel=1, because the machine hangs 
in such case.

diff --git a/debian/rules b/debian/rules
index 70667c5..e91561b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,12 @@ ifeq ($(DEB_HOST_ARCH), i386)
        PLATFORM = --disable-sse
 endif
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+       NUMJOBS = $(patsubst parallel=%,%,$(filter 
parallel=%,$(DEB_BUILD_OPTIONS)))
+else
+       NUMJOBS = 1
+endif
+
 %:
        dh ${@}
 
@@ -37,5 +43,7 @@ override_dh_auto_configure:
 
 override_dh_auto_test:
 ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 i386))
+ifneq ($(NUMJOBS), 1)
        $(MAKE) -j1 check
 endif
+endif

--- End Message ---
--- Begin Message ---
Source: ck
Source-Version: 0.7.1-12
Done: Daniel Baumann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
ck, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <[email protected]> (supplier of updated ck 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 10 Dec 2023 10:44:25 +0100
Source: ck
Architecture: source
Version: 0.7.1-12
Distribution: sid
Urgency: medium
Maintainer: Daniel Baumann <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Closes: 1055218
Changes:
 ck (0.7.1-12) sid; urgency=medium
 .
   * Uploading to sid.
   * Skipping tests when building non-parallel to fix hanging test suite,
     thanks to Santiago Vila <[email protected]> (Closes: #1055218).
Checksums-Sha1:
 8713d0ca512f78c705f90f5c67ee081d6196c404 1914 ck_0.7.1-12.dsc
 0c83e9f2d60d334f92ed1f409e06f1877603c6ca 5404 ck_0.7.1-12.debian.tar.xz
 5e613eabe6ed7073e377835e50feda9f2019f54a 6328 ck_0.7.1-12_amd64.buildinfo
Checksums-Sha256:
 d936c7540fdef4eba23bb5f8fbbe34bd21fd0a8b5ce231a58ca5f86e77b22403 1914 
ck_0.7.1-12.dsc
 987069882a368ece99eac92538b46266fd96b6f44c92aa1db9dd731a67b2b919 5404 
ck_0.7.1-12.debian.tar.xz
 829efdc6e86a185ebed0a4928f8e077370aa5a41af8d09edc5a28b83b39d2c8c 6328 
ck_0.7.1-12_amd64.buildinfo
Files:
 59f8ab932afdc797ef9e138385c48a8d 1914 libs optional ck_0.7.1-12.dsc
 21c28f2bd3fa0c8d8da2f0673281f6f4 5404 libs optional ck_0.7.1-12.debian.tar.xz
 7637eb29811e7835612778fbaa0e2a81 6328 libs optional ck_0.7.1-12_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgTbtJcfWfpLHSkKSVc8b+YaruccFAmV1ifYACgkQVc8b+Yar
uccyKA/9G12s07pQ9olzrj1mLrw5WwMCjWFgl2F/sSilpmqgePTxUs/lmeJRZXPd
yzMO0/AKeSsXE6d7/qy8nVUj4gFC8Szv6gxUm+rQNf/PQRz1PDbVpBJfc9EgVGnu
0B4VMT/yPZHTyWa1If7wU39EuLsWin5/hxEOHnL2m/gLpFESgtd5Txd3TEzKb08A
hg/1V3AtLUWdv06j6bZqhcboyCQ1Q1YS/fGjkxMmiSN/fKOMcbgD2J7+oICU0a2G
yayRTyyB9UjTgKEcW6WlPFSNcLYOHEtx8jjAn2igtMKCaStRlGocZlm1b7ANIvu6
EMVaC/LyRdIKISXXc7NsWmyhT0kzEhrODWQPKgdRi3f1wDDidmOErwAHqk1F3pM5
Qhlkl+awN9/XSh/p+jeWCRnJ7fx5WdVSRVYnlajY2SENWHNni+pXRRBqdjJmSSPl
mcwcw8esZMfmVDa8rjw0xNyzEdUz4EnvP34qkOsMbGMIxoYA/uqHnTG2M5T0Wl+C
bVBUgJtgL3DGuW0hoxFbZQRUUvBd55AkSbyViRppoD4eVp5eFQryV/9GCf4eONRx
ncd58yakZTVWiRfj+AqfAjlOkBdThMj44Z9BD6fCuXu2R70e2NcNcj7pq+Dt2L5t
xyik6kr3g2OgNGZL5Ajq/+DzSgvm1lRRjXusUVLHMBUlm7QDe4g=
=lrX6
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to