Debian Bug report logs - #1082810
gscan2pdf: deadlock in tests if building as root

version graph

Package: src:gscan2pdf; Maintainer for src:gscan2pdf is Jeffrey Ratcliffe <[email protected]>;

Reported by: наб <[email protected]>

Date: Thu, 26 Sep 2024 18:09:01 UTC

Severity: normal

Tags: ftbfs

Found in version gscan2pdf/2.13.4-4

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 26 Sep 2024 18:06:19 +0000
From [email protected] Thu Sep 26 18:06:19 2024
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,PGPSIGNATURE,
	SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 63; hammy, 150; neutral, 193; spammy,
	0. spammytokens: hammytokens:0.000-+--sk:taint_o, 0.000-+--sk:TAINT_O,
	0.000-+--sk:taint_u, 0.000-+--sk:TAINT_U, 0.000-+--H*ct:application
Return-path: <[email protected]>
Received: from tarta.nabijaczleweli.xyz ([139.28.40.42]:34088)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1stssc-000rc9-Hd
	for [email protected]; Thu, 26 Sep 2024 18:06:19 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz;
	s=202405; t=1727373974;
	bh=4UDtxLQ+ac0NSM5aXnsNn0d5ehG5lAqEuX7H9cEj3tE=;
	h=Date:From:To:Subject:From;
	b=PoMDh9Srk9c1b5mYzvAOEjOTM0vM1R2GhX+0KkbuxXhZBLtEJuluvDrER5Q4Nmubs
	 eYRtmjMXGCU0abdh9Jm31EE2JKsquhDbFmF5K5np2g/EMl9W9NuNhL0un7DxX5zmIv
	 JRdg+VA14ur5/Hf8wRtavAY3/eJ15oL5ZvDWyAE9ufsbSTzIUr8Nls/3osbqRB80Vn
	 36MJb8Dm+mE99jSE+Fd8I4cjdrwK9A9nkXqLPbUx0nk2GT4UNLd6FVGKDr893mbwsn
	 zQrzjn4CK05YIGey1HXaVgpPar/+BbDmLhQjcA5NxDytkFyf3VN4yB4G41DculRbGh
	 TVOEGBJUnyY9g==
Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250])
	by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 4BA2AFA8;
	Thu, 26 Sep 2024 20:06:14 +0200 (CEST)
Date: Thu, 26 Sep 2024 20:06:14 +0200
From: наб <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: gscan2pdf: deadlock in tests
Message-ID: <ceypdlemzzodsttcjk3kszznvsobrfw6pm47ythohqmjyepsmu@tarta.nabijaczleweli.xyz>
Mail-Followup-To: Debian Bug Tracking System <[email protected]>
X-Reportbug-Version: 12.0.0
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="h6n6j6s7nnq2z2zs"
Content-Disposition: inline
User-Agent: NeoMutt/20231221-2-4202cf-dirty
Delivered-To: [email protected]
[Message part 1 (text/plain, inline)]
Source: gscan2pdf
Severity: serious
Version: 2.13.4-4
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,

During a ratt run for src:ossp-uuid, I see
  2024/09/26 16:46:59 Building package 68 of 123: gscan2pdf

It's currently 2024-09-26T17:03:48+02:00,
and the process tree looks like this:
  2992217   1628 S 0.0 0.0 0:00.00  └─ sh /usr/bin/xvfb-run -a dh_auto_test
  2992230   5284 S 0.0 0.0 0:00.11     ├─ perl /usr/bin/dh_auto_test
  2992237   2064 S 0.0 0.0 0:00.02     │  └─ make -j24 test TEST_VERBOSE=1
  2992252   5336 S 0.0 0.0 0:00.63     │     └─ perl -MExtUtils::Command::MM -MTest::Harness -e undef *Test::Harness::Switches; test_harness(1,
  3001120  75204 S 0.0 0.2 0:02.01     │        └─ perl t/1113_save_pdf_with_error.t
  3001252  75204 S 0.0 0.2 0:00.14     │           └─ perl t/1113_save_pdf_with_error.t
  2992227  50892 S 0.0 0.1 0:02.35     └─ Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp -auth /tmp/xvfb-run.wk10k0/Xauthority
and hasn't changed the last few times I looked (3001252 is a thread).

strace says
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  ppoll([{fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 2, {tv_sec=0, tv_nsec=99179000}, NULL, 8) = 0 (Timeout)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  ppoll([{fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 2, {tv_sec=0, tv_nsec=99457000}, NULL, 8) = 0 (Timeout)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  ppoll([{fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 2, {tv_sec=0, tv_nsec=99636000}, NULL, 8) = 0 (Timeout)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
  ppoll([{fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 2, {tv_sec=0, tv_nsec=99280000}, NULL, 8^Cstrace: Process 3001120 detached
  
  futex(0x7f7054000ca4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY^Cstrace: Process 3001252 detached
  
  epoll_wait(3, ^Cstrace: Process 2992227 detached

This is a ratt run, so the build is in a schroot.
I created the chroot this morning, so no funny business there.

I SIGINTed the test, and the tests continued.
The same happened with t/133_save_tiff_with_error.t later.
The same happened with t/1612_import_TIFF_with_error.t later.
The same happened with t/1626_import_PDF_with_error.t later.
The same happened with t/1632_import_ppm_with_error.t later.
The same happened with t/213_rotate_with_error.t later.
The same happened with t/243_threshold_with_error.t later.
The same happened with t/253_negate_with_error.t later.
The same happened with t/263_unsharp_mask_with_error.t later.
The same happened with t/273_crop_with_error.t later.
The same happened with t/283_to_png_with_error.t later.
The same happened with t/377_user_defined_with_error.t later.
One has to wonder if the error is that it hangs.

I'm attaching the build log.

Don't think this is the same as #1012250 since that's autopkgtests.

Naturally,
2024/09/26 17:21:32 building gscan2pdf failed: exit status 2
but I'm forced to assume this is due to whatever flakiness in the test?

I reproduce this behaviour with a plain sbuild -d unstable gscan2pdf
so it's not the fault of the new src:ossp-uuid.

Best,

-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-12-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
[gscan2pdf_2.13.4-4.zst (application/zstd, attachment)]
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:23:23 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.