byobu-select-session crashed with CalledProcessError in check_output(): Command '['screen', '-ls']' returned non-zero exit status 1

Bug #1098341 reported by Iain Lane on 2013-01-10
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Undecided
Unassigned

Bug Description

With an existing session and the screen backend.

laney@iota> byobu ~
Traceback (most recent call last):
  File "/usr/bin/byobu-select-session", line 90, in <module>
    sessions = get_sessions()
  File "/usr/bin/byobu-select-session", line 44, in get_sessions
    output = subprocess.check_output(["screen", "-ls"])
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['screen', '-ls']' returned non-zero exit status 1

You switched to subprocess.check_output in 5.25 but this throws an exception if the subprocess doesn't return 0. For some reason `screen -ls' seemingly always returns 1. I'm guessing the exception needs to be caught.

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: byobu 5.25-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-21.32-generic 3.5.7.1
Uname: Linux 3.5.0-21-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.8-0ubuntu1
Architecture: amd64
Date: Thu Jan 10 21:25:15 2013
ExecutablePath: /usr/bin/byobu-select-session
InstallationDate: Installed on 2012-10-18 (84 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/byobu-select-session
PythonArgs: ['/usr/bin/byobu-select-session']
ScreenRC:

SourcePackage: byobu
Title: byobu-select-session crashed with CalledProcessError in check_output(): Command '['screen', '-ls']' returned non-zero exit status 1
UpgradeStatus: Upgraded to raring on 2013-01-10 (0 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sbuild sudo

Related branches

Iain Lane (laney) wrote :
information type: Private → Public
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 5.26-0ubuntu1

---------------
byobu (5.26-0ubuntu1) raring; urgency=low

  [ Iain Lane ]
  * usr/bin/byobu-select-session:
    - Handle `screen -ls' returning 1. (LP: #1098341)
 -- Dustin Kirkland <email address hidden> Wed, 09 Jan 2013 15:17:43 -0600

Changed in byobu (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers