[Bug 971748] Re: aptd crashed with AttributeError in _inline_callbacks(): 'NoneType' object has no attribute 'send'

Fabien Tassin 971748 at bugs.launchpad.net
Fri May 4 09:58:47 UTC 2012


I checked the py stack leading to this AttributeError, it happens the
fault really is in aptdaemon after all.

[(<frame object at 0x3005200>, '/usr/lib/python2.7/dist-packages/defer/__init__.py', 473, '_inline_callbacks', ['                print >> fd, inspect.stack()\n'], 0), 
 (<frame object at 0x30115e0>, '/usr/lib/python2.7/dist-packages/defer/__init__.py', 592, 'unwind_generator', ['        return _inline_callbacks(None, func(*args, **kwargs), Deferred())\n'], 0), 
 (<frame object at 0x300a550>, '/usr/lib/python2.7/dist-packages/aptdaemon/pkcompat.py', 306, '__init__', ['        self.netmon.get_network_state()\n'], 0), 
 (<frame object at 0x2e37280>, '/usr/lib/python2.7/dist-packages/aptdaemon/core.py', 1406, '__init__', ['            self.packagekit = pkcompat.PackageKit(self.queue, connect, bus)\n'], 0), 
 (<frame object at 0x2e317f0>, '/usr/lib/python2.7/dist-packages/aptdaemon/core.py', 2191, 'main', ['    daemon = AptDaemon(options, bus=bus)\n'], 0), 
 (<frame object at 0x28e7ef0>, '/usr/sbin/aptd', 28, '<module>', ['    aptdaemon.core.main()\n'], 0)]

i'm not using network-manager on this box so it's probably the least
tested path (if not the totally untested path). That may explain why
there's only a few dupes, not millions.

While exploring that path, I found the bug:
In aptdaemon, self.netmon is a ProcNetworkMonitor() instance, which is good in my case, and when called, it properly finds 'online'. The problem seems to be the missing return value in ProcNetworkMonitor.get_network_state().
it sure fixes this AttributeError for me, but then i'm getting a cryptic _DefGen_Return raise from the defer module. So more work is needed.

anyway, python-defer should not die the way it does anyway, so its task
here is probably also valid.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/971748

Title:
  aptd crashed with AttributeError in _inline_callbacks(): 'NoneType'
  object has no attribute 'send'

Status in Python Defer:
  New
Status in “aptdaemon” package in Ubuntu:
  Confirmed

Bug description:
  Happened upon Gnome startup.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: aptdaemon 0.43+bzr784-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
  Uname: Linux 3.2.0-21-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0-0ubuntu2
  Architecture: amd64
  Date: Mon Apr  2 12:42:19 2012
  DesktopFile: /usr/share/aptdaemon/aptdaemon.desktop
  ExecutablePath: /usr/sbin/aptd
  ExecutableTimestamp: 1331728907
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/sbin/aptd
  ProcCwd: /
  ProcEnviron:
   
  PythonArgs: ['/usr/sbin/aptd']
  SourcePackage: aptdaemon
  Title: aptd crashed with AttributeError in _inline_callbacks(): 'NoneType' object has no attribute 'send'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: engr http mailman nisrcs radadmin sysadmin wheel xelus

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-defer/+bug/971748/+subscriptions




More information about the foundations-bugs mailing list