wicd RenameProcess function results in rename failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running any instance of wicd, wicd-client, wicd-curse, wicd-gtk will result in a line output to stdout as so:
# sudo wicd --version
rename failed
wicd 1.7.0 (bzr-r552)
wireless (and wired) connection daemon.
Arguments:
-a --no-autoconnect Don't auto-scan/
-f --no-daemon Don't daemonize (run in foreground).
-e --no-stderr Don't redirect stderr.
-n --no-poll Don't monitor network status.
-o --no-stdout Don't redirect stdout.
-h --help Print this help.
The "rename failed" exception is consistent, on both 32-bit and 64-bit, whether run sudo or as user.
I have traced the problem to the function RenameProcess(
The function does a test for the existence of the libc.so.6 library, by first trying to determine whether it's on a 64-bit or a 32-bit system. Depending on which arch is found, the function then sets the path to the lib.
This path is now wrong for 11.04.
Original function is:
def RenameProcess(
""" Renames the process calling the function to the given name. """
if sys.platform != 'linux2':
print 'Unsupported platform'
return False
try:
import ctypes
is_64 = os.path.
if is_64:
libc = ctypes.
else:
libc = ctypes.
return True
except:
print "rename failed"
return False
Actual paths within the function should be:
def RenameProcess(
""" Renames the process calling the function to the given name. """
if sys.platform != 'linux2':
print 'Unsupported platform'
return False
try:
import ctypes
is_64 = os.path.
if is_64:
libc = ctypes.
else:
libc = ctypes.
return True
except:
print "rename failed"
return False
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: wicd 1.7.0+ds1-6
ProcVersionSign
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Wed Jul 6 17:10:09 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitec
ProcEnviron:
LANGUAGE=en_SG:en
LANG=en_SG.UTF-8
SHELL=/bin/bash
SourcePackage: wicd
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in wicd (Ubuntu): | |
status: | New → Confirmed |
I can confirm the bug and the fix (thank you Yusseri!)
I had to re-install Kubuntu Natty on my notebook this week following a HDD crash.
On the old system (started its life as a Natty beta in January 2011) wicd worked flawlessly and was my sole connection to the outer world because the default network manager would not show any WLAN.
Following the same installation protocol when starting from scratch in August 2011, wicd exhibit the bug. Editing /usr/lib/ python2. 7/wicd/ misc.py according to the above instructions fix the bug.
Mitigating factor: In the process I found out that the WLAN interface is now displayed properly in the default network manager. So personally I have no more reason to run wicd.