← Back to team overview

sts-sponsors team mailing list archive

[Bug 1758529] [NEW] landscape-package-changer crashed with io.UnsupportedOperation in pulse(): fileno

 

You have been subscribed to a private bug by Chris Johnston (cjohnston):

[Impact]

 * landscape-package-changer will output stack traces when executed
   with python3. This adds noise in the logs and confuse apport into
   thinking there was a crash, even though the error does not affect
   functionality.

 * The activity log for package operations will also show errors.

 * The patch overrides python-apt reporting of progress, as
   landscape-package-changer is never executed from a terminal.

[Test Case]

 * register landscape-client and wait for packages to be reported.

 * trigger a package installation from the landscape server.

 * check /var/log/landscape/manager.log for Package changer warnings

[Regression Potential]

 * The change is trivially simple.

 * The changed code path is only used by python-apt progress reporting.
   Since landscape-package-changer does not rely on it and is able
   to continue, other errors would likely have the same fate: that is
   crashing the progress reporting thread and continuing.

[Original Description]

Crash in the background

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: landscape-client 18.01-0ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Sat Mar 24 07:05:34 2018
ExecutablePath: /usr/bin/landscape-package-changer
InstallationDate: Installed on 2015-07-04 (994 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
InterpreterPath: /usr/bin/python3.6
ProcCmdline: /usr/bin/python3 /usr/bin/landscape-package-changer --quiet
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
Python3Details: /usr/bin/python3.6, Python 3.6.5rc1, python3-minimal, 3.6.4-1
PythonArgs: ['/usr/bin/landscape-package-changer', '--quiet']
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
SourcePackage: landscape-client
Title: landscape-package-changer crashed with io.UnsupportedOperation in pulse(): fileno
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/apt/progress/text.py", line 164, in pulse
     not os.isatty(self._file.fileno())):
 io.UnsupportedOperation: fileno
UpgradeStatus: Upgraded to bionic on 2018-03-15 (8 days ago)
UserGroups:

** Affects: landscape-client
     Importance: Undecided
     Assignee: Simon Poirier (simpoir)
         Status: Fix Committed

** Affects: landscape-client (Ubuntu)
     Importance: Medium
         Status: Fix Released

** Affects: python-apt (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: landscape-client (Ubuntu Bionic)
     Importance: Undecided
         Status: Confirmed

** Affects: python-apt (Ubuntu Bionic)
     Importance: Undecided
         Status: Invalid

** Affects: landscape-client (Ubuntu Disco)
     Importance: Undecided
         Status: Confirmed

** Affects: python-apt (Ubuntu Disco)
     Importance: Undecided
         Status: Invalid

** Affects: landscape-client (Ubuntu Eoan)
     Importance: Medium
         Status: Confirmed

** Affects: python-apt (Ubuntu Eoan)
     Importance: Undecided
         Status: Invalid


** Tags: amd64 apport-crash bionic low-hanging-fruit
-- 
landscape-package-changer crashed with io.UnsupportedOperation in pulse(): fileno
https://bugs.launchpad.net/bugs/1758529
You received this bug notification because you are a member of STS Sponsors, which is subscribed to the bug report.