paperwork: autopkgtest armhf regression: Libinsane item->get_options() error: 0x40000006, I/O Error (7)

Bug #1937256 reported by Graham Inggs
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
paperwork
Fix Released
Unknown
paperwork (Debian)
Fix Released
Unknown
paperwork (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

From https://bugs.debian.org/983515

Source: paperwork
Version: 2.0.2-2
X-Debbugs-CC: <email address hidden>
Severity: serious
User: <email address hidden>
Usertags: regression

Dear maintainer(s),

With a recent upload of paperwork the autopkgtest of paperwork fails in
testing when that autopkgtest is run with the binary packages of
paperwork from unstable. It passes when run with only packages from
testing. In tabular form:

                       pass fail
paperwork from testing 2.0.2-2
all others from testing from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it? Your package is further
blocked because you added new packages. Since the start of the soft
freeze, source packages with new binary packages are no longer allowed
to migrate to bullseye.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=paperwork

https://ci.debian.net/data/autopkgtest/testing/amrhf/p/paperwork/10660602/log.gz

======================================================================
ERROR: test_scan (docscan.tests_libinsane.TestLibinsane)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/tmp/autopkgtest-lxc.s6fxas6c/downtmp/autopkgtest_tmp/paperwork-backend/tests/docscan/tests_libinsane.py",
line 129, in test_scan
    self.core.call_all("mainloop")
  File "/usr/lib/python3/dist-packages/openpaperwork_core/__init__.py",
line 410, in call_all
    callback(*args, **kwargs)
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/mainloop/asyncio.py",
line 60, in mainloop
    raise halt_cause
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/mainloop/asyncio.py",
line 135, in decorator
    func(*args, **kwargs)
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/work_queue/default.py",
line 30, in _on_error
    raise exc
  File "/usr/lib/python3/dist-packages/openpaperwork_core/promise.py",
line 233, in _threaded_do
    our_r = self.func(*args, **self.kwargs)
  File
"/usr/lib/python3/dist-packages/paperwork_backend/docscan/libinsane.py",
line 177, in scan
    options = self.source.get_options()
gi.repository.GLib.GError: libinsane-quark: Libinsane
item->get_options() error: 0x40000006, I/O Error (7)

======================================================================
ERROR: test_scan_default (docscan.tests_libinsane.TestLibinsane)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/tmp/autopkgtest-lxc.s6fxas6c/downtmp/autopkgtest_tmp/paperwork-backend/tests/docscan/tests_libinsane.py",
line 178, in test_scan_default
    self.core.call_all("mainloop")
  File "/usr/lib/python3/dist-packages/openpaperwork_core/__init__.py",
line 410, in call_all
    callback(*args, **kwargs)
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/mainloop/asyncio.py",
line 60, in mainloop
    raise halt_cause
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/mainloop/asyncio.py",
line 135, in decorator
    func(*args, **kwargs)
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/work_queue/default.py",
line 30, in _on_error
    raise exc
  File "/usr/lib/python3/dist-packages/openpaperwork_core/promise.py",
line 233, in _threaded_do
    our_r = self.func(*args, **self.kwargs)
  File
"/usr/lib/python3/dist-packages/paperwork_backend/docscan/libinsane.py",
line 177, in scan
    options = self.source.get_options()
gi.repository.GLib.GError: libinsane-quark: Libinsane
item->get_options() error: 0x40000006, I/O Error (7)

----------------------------------------------------------------------
Ran 88 tests in 63.683s

FAILED (errors=2)
free(): invalid pointer
Aborted

Revision history for this message
Graham Inggs (ginggs) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in paperwork (Ubuntu):
status: New → Confirmed
Changed in paperwork (Debian):
status: Unknown → Confirmed
Changed in paperwork (Debian):
status: Confirmed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote (last edit ):

It appears Debian has worked around this by setting LIBINSANE_WORKAROUND_DEDICATED_PROCESS=0 in debian/tests/unittests. We could try doing similarly, or just sync 2.0.3-2 from Debian unstable.

https://salsa.debian.org/openpaperwork-team/paperwork/-/commit/057775a596c877b886192d70965ed27d4cb4ed34

I've filed a syncpackage for impish, however I suspect it's too late for its inclusion.
When JJ's archive opens, I believe 2.0.3-2 should automatically sync in, and this bug report can be closed at that point.

Changed in paperwork:
status: Unknown → Fix Released
Jeremy Bícha (jbicha)
Changed in paperwork (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.