Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package os-autoinst for openSUSE:Factory checked in at 2026-11-25 16:12:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/os-autoinst (Old) and /work/SRC/openSUSE:Factory/.os-autoinst.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "os-autoinst" Wed Nov 25 16:12:12 2026 rev:640 rq:1400364 version:5.1795538728.d4232cc Changes: -------- --- /work/SRC/openSUSE:Factory/os-autoinst/os-autoinst.changes 2026-11-24 17:04:07.502790297 +0100 +++ /work/SRC/openSUSE:Factory/.os-autoinst.new.1340718/os-autoinst.changes 2026-11-25 16:12:53.274211441 +0100 @@ -1,0 +2,7 @@ +Tue Nov 24 16:45:38 UTC 2026 - [email protected] + +- Update to version 5.1795538728.d4232cc: + * fix: Avoid crashes due to blocking on one thread too less + * feat: Extend error handling and tests of signal blocking + +------------------------------------------------------------------- Old: ---- os-autoinst-5.1795519790.ff2dbdc.obscpio New: ---- os-autoinst-5.1795538728.d4232cc.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ os-autoinst-devel-test.spec ++++++ --- /var/tmp/diff_new_pack.YuIXR2/_old 2026-11-25 16:12:55.332298761 +0100 +++ /var/tmp/diff_new_pack.YuIXR2/_new 2026-11-25 16:12:55.334298845 +0100 @@ -18,7 +18,7 @@ %define short_name os-autoinst-devel Name: %{short_name}-test -Version: 5.1795519790.ff2dbdc +Version: 5.1795538728.d4232cc Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ os-autoinst-openvswitch-test.spec ++++++ --- /var/tmp/diff_new_pack.YuIXR2/_old 2026-11-25 16:12:55.366300203 +0100 +++ /var/tmp/diff_new_pack.YuIXR2/_new 2026-11-25 16:12:55.367300246 +0100 @@ -19,7 +19,7 @@ %define name_ext -test %define short_name os-autoinst-openvswitch Name: %{short_name}%{?name_ext} -Version: 5.1795519790.ff2dbdc +Version: 5.1795538728.d4232cc Release: 0 Summary: test package for %{short_name} License: GPL-2.0-or-later ++++++ os-autoinst-test.spec ++++++ --- /var/tmp/diff_new_pack.YuIXR2/_old 2026-11-25 16:12:55.394301391 +0100 +++ /var/tmp/diff_new_pack.YuIXR2/_new 2026-11-25 16:12:55.396301476 +0100 @@ -19,7 +19,7 @@ %define name_ext -test %define short_name os-autoinst Name: %{short_name}%{?name_ext} -Version: 5.1795519790.ff2dbdc +Version: 5.1795538728.d4232cc Release: 0 Summary: test package for os-autoinst License: GPL-2.0-or-later ++++++ os-autoinst.spec ++++++ --- /var/tmp/diff_new_pack.YuIXR2/_old 2026-11-25 16:12:55.423302622 +0100 +++ /var/tmp/diff_new_pack.YuIXR2/_new 2026-11-25 16:12:55.425302706 +0100 @@ -17,7 +17,7 @@ Name: os-autoinst -Version: 5.1795519790.ff2dbdc +Version: 5.1795538728.d4232cc Release: 0 Summary: OS-level test automation License: GPL-2.0-or-later ++++++ os-autoinst-5.1795519790.ff2dbdc.obscpio -> os-autoinst-5.1795538728.d4232cc.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1795519790.ff2dbdc/ppmclibs/tinycv_impl.cc new/os-autoinst-5.1795538728.d4232cc/ppmclibs/tinycv_impl.cc --- old/os-autoinst-5.1795519790.ff2dbdc/ppmclibs/tinycv_impl.cc 2026-11-24 12:29:50.000000000 +0100 +++ new/os-autoinst-5.1795538728.d4232cc/ppmclibs/tinycv_impl.cc 2026-11-24 17:45:28.000000000 +0100 @@ -2,9 +2,12 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include <byteswap.h> +#include <cerrno> #include <condition_variable> +#include <csignal> #include <cstdint> #include <cstdio> +#include <cstdlib> #include <exception> #include <functional> #include <iostream> @@ -328,14 +331,12 @@ * * \remarks * - This should be generally at least one thread and we generally just use OpenCV's default. - * - To avoid running into TBB's soft limit which seems to be one thread less than the number - * of physical CPU threads (see TBB function `calc_workers_soft_limit`) we also limit ourselves - * to that. Otherwise we might run into a deadlock with "The number of workers is currently - * limited to 7. The request for 8 workers is ignored.". + * - We cap OpenCV's thread count by the number of CPUs to avoid requesting more threads + * than can be concurrently scheduled, which would deadlock the barrier in create_opencv_threads(). */ int opencv_default_thread_count() { - return std::max(1, std::min(cv::getNumThreads(), cv::getNumberOfCPUs() - 1)); + return std::max(1, std::min(cv::getNumThreads(), cv::getNumberOfCPUs())); } /*! @@ -370,11 +371,27 @@ parallel_for_(Range(0, thread_count), RunFunctionInParallel([&](const Range&) { // keep the thread idling until the expected number of threads has been spawned std::unique_lock<std::mutex> lock(m); + if (++threads_spawned >= thread_count) { cv.notify_all(); // note: The last thread releases all previously spawned threads. } else { cv.wait(lock); } + + // check whether the signal mask is set as expected + auto current_set = sigset_t(); + sigemptyset(¤t_set); + auto sigmask_get = pthread_sigmask(SIG_BLOCK, nullptr, ¤t_set); + + // exit with an error if the signal mask does not contain at least SIGCHLD and SIGTERM + if (sigmask_get != 0) { + std::cerr << "Unable to get sigprocmask of OpenCV thread: " << std::strerror(sigmask_get) << '\n'; + std::exit(EXIT_FAILURE); + } + if (sigismember(¤t_set, SIGCHLD) != 1 || sigismember(¤t_set, SIGTERM) != 1) { + std::cerr << "Not all signals are blocked in OpenCV thread.\n"; + std::exit(EXIT_FAILURE); + } })); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1795519790.ff2dbdc/t/28-signalblocker.t new/os-autoinst-5.1795538728.d4232cc/t/28-signalblocker.t --- old/os-autoinst-5.1795519790.ff2dbdc/t/28-signalblocker.t 2026-11-24 12:29:50.000000000 +0100 +++ new/os-autoinst-5.1795538728.d4232cc/t/28-signalblocker.t 2026-11-24 17:45:28.000000000 +0100 @@ -39,6 +39,8 @@ # initialize OpenCV via signalblocker and create_threads { + is thread_count, 1, 'only one thread present before OpenCV is initialized'; + my $signal_blocker = $no_signal_blocker || signalblocker->new; require cv; cv::init(); ++++++ os-autoinst.obsinfo ++++++ --- /var/tmp/diff_new_pack.YuIXR2/_old 2026-11-25 16:12:56.873364144 +0100 +++ /var/tmp/diff_new_pack.YuIXR2/_new 2026-11-25 16:12:56.875364229 +0100 @@ -1,5 +1,5 @@ name: os-autoinst -version: 5.1795519790.ff2dbdc -mtime: 1795519790 -commit: ff2dbdc6e82e858a87744f46cfb55d2e73fe4a6e +version: 5.1795538728.d4232cc +mtime: 1795538728 +commit: d4232ccbdbf1acdda2578afc80d1effb074ca1a7
