[Bug 1094218] Re: lsb_release crashed with IOError in getstatusoutput(): [Errno 10] No child processes
Kevin Normoyle
knormoyle at surfnetusa.com
Sun Feb 24 19:20:57 UTC 2013
I put a print in lsb_release.py to see what the dpkg-query command is
then did
ipython
import lsb_release
lsb_release.check_modules_installed()
the print says:
dpkg-query -f '${Version} ${Provides}
' -W lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-qt4 lsb-languages lsb-multimedia lsb-printing 2>/dev/null
(yes there's a \n in the string ..see the def check_modules_installed() above)
here's commands.getoutput that's executing the dpkg-query. So somehow
the pipe is closing before it's being told to by pipe.close?
def getoutput(cmd):
"""Return output (stdout or stderr) of executing cmd in a shell."""
return getstatusoutput(cmd)[1]
# Ditto but preserving the exit status.
# Returns a pair (sts, output)
#
def getstatusoutput(cmd):
"""Return (status, output) of executing cmd in a shell."""
import os
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
text = pipe.read()
sts = pipe.close()
if sts is None: sts = 0
if text[-1:] == '\n': text = text[:-1]
return sts, text
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lsb in Ubuntu.
https://bugs.launchpad.net/bugs/1094218
Title:
lsb_release crashed with IOError in getstatusoutput(): [Errno 10] No
child processes
Status in “lsb” package in Ubuntu:
Confirmed
Bug description:
Add-ons: globalmenu at ubuntu.com:2.0.4,langpack-de at firefox.mozilla.org:11.0,langpack-en-GB at firefox.mozilla.org:11.0,langpack-en-ZA at firefox.mozilla.org:11.0,langpack-es-AR at firefox.mozilla.org:11.0,langpack-es-CL at firefox.mozilla.org:11.0,langpack-es-ES at firefox.mozilla.org:11.0,langpack-es-MX at firefox.mozilla.org:11.0,langpack-pt-BR at firefox.mozilla.org:11.0,langpack-pt-PT at firefox.mozilla.org:11.0,langpack-zh-CN at firefox.mozilla.org:11.0,ubufox at ubuntu.com:2.0.1,{972ce4c6-7e08-4474-a285-3208198ce6fd}:11.0
BuildID: 20120313141405
CrashTime: 1356689682
EMCheckCompatibility: true
FramePoisonBase: 00000000f0dea000
FramePoisonSize: 4096
InstallTime: 1356685662
Notes: OpenGL: X.Org R300 Project -- Gallium 0.4 on ATI RV515 -- 2.1 Mesa 8.0.2 -- texture_from_pixmap
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: release
SecondsSinceLastCrash: 18
StartupTime: 1356689673
Theme: classic/1.0
Throttleable: 1
URL: http://ubuntuforums.org/private.php?s=&pp=&folderid=0
Vendor: Mozilla
Version: 11.0
This report also contains technical information about the state of the
application when it crashed.
ProblemType: CrashDistroRelease: Ubuntu 12.04
Package: lsb-release 4.0-0ubuntu20
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic-pae 3.2.12
Uname: Linux 3.2.0-20-generic-pae i686
ApportVersion: 1.95-0ubuntu1
Architecture: i386
Date: Fri Dec 28 09:42:36 2012
ExecutablePath: /usr/bin/lsb_release
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/lsb_release -a
ProcEnviron:
TERM=linux
PATH=(custom, no user)
PythonArgs: ['/usr/bin/lsb_release', '-a']SourcePackage: lsb
Title: lsb_release crashed with IOError in getstatusoutput(): [Errno 10] No child processes
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1094218/+subscriptions
More information about the foundations-bugs
mailing list