← Back to team overview

touch-packages team mailing list archive

[Bug 1540562] [NEW] aa-genprof crashes in logparser NoneType has no "replace"

 

Public bug reported:

Reading log entries from /var/log/syslog.
Updating AppArmor profiles in /etc/apparmor.d.

Traceback (most recent call last):
  File "/usr/sbin/aa-genprof", line 151, in <module>
    lp_ret = apparmor.do_logprof_pass(logmark, passno)
  File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2176, in do_logprof_pass
    log = log_reader.read_log(logmark)
  File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 358, in read_log
    self.add_event_to_tree(event)
  File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 263, in add_event_to_tree
    rmask = rmask.replace('c', 'a')
AttributeError: 'NoneType' object has no attribute 'replace'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apparmor 2.10-0ubuntu11
ProcVersionSignature: Ubuntu 4.3.0-7.18-generic 4.3.3
Uname: Linux 4.3.0-7-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.19.4-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Feb  1 14:35:38 2016
InstallationDate: Installed on 2014-05-07 (635 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
JournalErrors: -- No entries --
ProcKernelCmdline: BOOT_IMAGE=/root@/boot/vmlinuz-4.3.0-7-generic.efi.signed root=ZFS=gelb/root ro boot=zfs rpool=gelb bootfs=gelb/root
SourcePackage: apparmor
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apparmor.d.abstractions.dbus.accessibility.strict: [modified]
mtime.conffile..etc.apparmor.d.abstractions.dbus.accessibility.strict: 2016-01-11T17:19:10.453376

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

** Attachment added: "apparmor-bugreport-hvz0m8s0.txt"
   https://bugs.launchpad.net/bugs/1540562/+attachment/4561538/+files/apparmor-bugreport-hvz0m8s0.txt

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1540562

Title:
  aa-genprof crashes in logparser NoneType has no "replace"

Status in apparmor package in Ubuntu:
  New

Bug description:
  Reading log entries from /var/log/syslog.
  Updating AppArmor profiles in /etc/apparmor.d.

  Traceback (most recent call last):
    File "/usr/sbin/aa-genprof", line 151, in <module>
      lp_ret = apparmor.do_logprof_pass(logmark, passno)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2176, in do_logprof_pass
      log = log_reader.read_log(logmark)
    File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 358, in read_log
      self.add_event_to_tree(event)
    File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 263, in add_event_to_tree
      rmask = rmask.replace('c', 'a')
  AttributeError: 'NoneType' object has no attribute 'replace'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: apparmor 2.10-0ubuntu11
  ProcVersionSignature: Ubuntu 4.3.0-7.18-generic 4.3.3
  Uname: Linux 4.3.0-7-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
  ApportVersion: 2.19.4-0ubuntu1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Mon Feb  1 14:35:38 2016
  InstallationDate: Installed on 2014-05-07 (635 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  JournalErrors: -- No entries --
  ProcKernelCmdline: BOOT_IMAGE=/root@/boot/vmlinuz-4.3.0-7-generic.efi.signed root=ZFS=gelb/root ro boot=zfs rpool=gelb bootfs=gelb/root
  SourcePackage: apparmor
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.apparmor.d.abstractions.dbus.accessibility.strict: [modified]
  mtime.conffile..etc.apparmor.d.abstractions.dbus.accessibility.strict: 2016-01-11T17:19:10.453376

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1540562/+subscriptions


Follow ups