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

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Thu, 26 Sep 2024 18:09:02 GMT) (full text, mbox, link).


Acknowledgement sent to наб <[email protected]>:
New Bug report received and forwarded. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Thu, 26 Sep 2024 18:09:02 GMT) (full text, mbox, link).


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

From: наб <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: gscan2pdf: deadlock in tests
Date: Thu, 26 Sep 2024 20:06:14 +0200
[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)]

Information forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Sat, 28 Sep 2024 10:33:02 GMT) (full text, mbox, link).


Acknowledgement sent to Jeff <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Sat, 28 Sep 2024 10:33:03 GMT) (full text, mbox, link).


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

From: Jeff <[email protected]>
To: наб <[email protected]>, [email protected]
Subject: Re: Bug#1082810: gscan2pdf: deadlock in tests
Date: Sat, 28 Sep 2024 10:31:44 +0000
[Message part 1 (text/plain, inline)]
I can't reproduce this. The tests pass elsewhere in chroots:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/gscan2pdf.html

What is different about your setup?
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

Information forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Sat, 28 Sep 2024 11:15:01 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Sat, 28 Sep 2024 11:15:01 GMT) (full text, mbox, link).


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

From: Santiago Vila <[email protected]>
To: Jeff <[email protected]>, [email protected], наб <[email protected]>
Subject: Re: Bug#1082810: gscan2pdf: deadlock in tests
Date: Sat, 28 Sep 2024 13:10:48 +0200
El 28/9/24 a las 12:31, Jeff escribió:
> I can't reproduce this. The tests pass elsewhere in chroots:
> 
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/gscan2pdf.html
> 
> What is different about your setup?

Most probably, the fact that he's building the package as root.
This is from the build log:

LOGNAME=root

Hi наб, you should probably say this in your reports.

Thanks.



Information forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Sat, 28 Sep 2024 14:43:34 GMT) (full text, mbox, link).


Acknowledgement sent to наб <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Sat, 28 Sep 2024 14:43:34 GMT) (full text, mbox, link).


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

From: наб <[email protected]>
To: Santiago Vila <[email protected]>
Cc: Jeff <[email protected]>, [email protected], [email protected]
Subject: Re: Bug#1082810: gscan2pdf: deadlock in tests
Date: Sat, 28 Sep 2024 16:41:09 +0200
[Message part 1 (text/plain, inline)]
retitle 1082815 analizo: FTBFS (tests fail) on sid if building as root
retitle 1082810 gscan2pdf: deadlock in tests if building as root
# 1082804 is already ledgersmb: FTBFS (test failure) if building as root
thanks

On Sat, Sep 28, 2024 at 01:10:48PM +0200, Santiago Vila wrote:
> El 28/9/24 a las 12:31, Jeff escribió:
> > What is different about your setup?
> LOGNAME=root
> 
> Hi наб, you should probably say this in your reports.
Yeah, I didn't so much as consider running as root being the issue.

Best,
[signature.asc (application/pgp-signature, inline)]

Changed Bug title to 'gscan2pdf: deadlock in tests if building as root' from 'gscan2pdf: deadlock in tests'. Request was from наб <[email protected]> to [email protected]. (Sat, 28 Sep 2024 14:43:34 GMT) (full text, mbox, link).


Information forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Sat, 28 Sep 2024 20:06:01 GMT) (full text, mbox, link).


Acknowledgement sent to Jeff <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Sat, 28 Sep 2024 20:06:01 GMT) (full text, mbox, link).


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

From: Jeff <[email protected]>
To: [email protected]
Subject: Re: Bug#1082810: gscan2pdf: deadlock in tests
Date: Sat, 28 Sep 2024 20:03:18 +0000
[Message part 1 (text/plain, inline)]
On 28/09/2024 16:41, наб wrote:
> retitle 1082815 analizo: FTBFS (tests fail) on sid if building as root
> retitle 1082810 gscan2pdf: deadlock in tests if building as root
> # 1082804 is already ledgersmb: FTBFS (test failure) if building as root
> thanks
> 
> On Sat, Sep 28, 2024 at 01:10:48PM +0200, Santiago Vila wrote:
>> El 28/9/24 a las 12:31, Jeff escribió:
>>> What is different about your setup?
>> LOGNAME=root

If that is the case, I wonder if this really should be severity=serious.

Maybe severity=normal?
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

Information forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Sat, 05 Oct 2024 07:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Jeff <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Sat, 05 Oct 2024 07:06:02 GMT) (full text, mbox, link).


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

From: Jeff <[email protected]>
To: [email protected], [email protected]
Subject: Re: Bug#1082810: gscan2pdf: deadlock in tests
Date: Sat, 5 Oct 2024 07:03:07 +0000
[Message part 1 (text/plain, inline)]
severity 1082810 normal
thanks

[OpenPGP_signature.asc (application/pgp-signature, attachment)]

Severity set to 'normal' from 'serious' Request was from Jeff <[email protected]> to [email protected]. (Sat, 05 Oct 2024 07:06:02 GMT) (full text, mbox, link).


Information forwarded to [email protected], Jeffrey Ratcliffe <[email protected]>:
Bug#1082810; Package src:gscan2pdf. (Sat, 05 Oct 2024 07:45:01 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jeffrey Ratcliffe <[email protected]>. (Sat, 05 Oct 2024 07:45:01 GMT) (full text, mbox, link).


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

From: Petter Reinholdtsen <[email protected]>
To: Jeff <[email protected]>, Santiago Vila <[email protected]>, наб <[email protected]>, [email protected]
Subject: Re: Bug#1082810: gscan2pdf: deadlock in tests if building as root
Date: Sat, 5 Oct 2024 09:42:25 +0200
If the build should not be done as root, perhaps debian/rules should
be extended with a call to ! dh_testroot, to ensure the build fail
with root privileges?

-- 
Happy hacking
Petter Reinholdtsen



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 12:31:28 2025; Machine Name: bembo

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.