update-manager crashes with deprecation warning about some "float"

Bug #340755 reported by Martin Olsson
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

mnemo@kingfish:~$ update-manager
/usr/lib/python2.6/dist-packages/UpdateManager/UpdateManager.py:188: DeprecationWarning: integer argument expected, got float
  self.gconfclient.set_int("/apps/update-manager/launch_time", time.time())
Segmentation fault (core dumped)
mnemo@kingfish:~$ update-manager
/usr/lib/python2.6/dist-packages/UpdateManager/UpdateManager.py:188: DeprecationWarning: integer argument expected, got float
  self.gconfclient.set_int("/apps/update-manager/launch_time", time.time())
Segmentation fault (core dumped)
mnemo@kingfish:~$

It happens every time I try it. Since there is a reference to the source file and line, it should be fairly easy to figure out what the bug is.

Changed in update-manager:
status: New → Confirmed
Revision history for this message
Սահակ (petrosyan) wrote :

I also get deprecation warnings in Ubuntu 9.04 update-manager-1:0.99 , but it does not crash. It works as expected.

$ update-manager
/usr/lib/python2.6/dist-packages/UpdateManager/UpdateManager.py:188: DeprecationWarning: integer argument expected, got float
  self.gconfclient.set_int("/apps/update-manager/launch_time", time.time())
/var/lib/python-support/python2.6/dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters
  super(Connection, self).__init__(*args, **kwargs)

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I don't get the crash here, but I fixed the warning in my bzr tree, please reopen if that does not fix the crash (will be part of update-manager 0.100.1).

Changed in update-manager:
assignee: nobody → mvo
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.100.1

---------------
update-manager (1:0.100.1) jaunty; urgency=low

  * DistUpgrade/DistUpgradeCache.py:
    - fix crash (LP: #340828) when config is undefinied
  * UpdateManager/UpdateManager.py:
    - explicitely cast time.time() to int (LP: #340755)

 -- Michael Vogt <email address hidden> Wed, 11 Mar 2009 09:10:02 +0100

Changed in update-manager:
status: In Progress → 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.