← Back to team overview

touch-packages team mailing list archive

[Bug 1403197] Re: aa-complain crashed with apparmor.common.AppArmorException in store_list_var(): 'An existing variable redefined: @{MOZ_LIBDIR}'

 

*** This bug is a duplicate of bug 1378095 ***
    https://bugs.launchpad.net/bugs/1378095

Hi, thanks for reporting this issue, it's a duplicate of bug 1378095.

** Information type changed from Private to Public

** This bug has been marked a duplicate of bug 1378095
   aa-complain traceback when marking multiple profiles

-- 
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/1403197

Title:
  aa-complain crashed with apparmor.common.AppArmorException in
  store_list_var(): 'An existing variable redefined: @{MOZ_LIBDIR}'

Status in apparmor package in Ubuntu:
  Triaged

Bug description:
  Starting with the below default apparmor status, executed the following via a terminal and got crash:
  sudo aa-complain /usr/bin/evince /usr/bin/evince-previewer
  Setting /usr/bin/evince to complain mode.
  Traceback (most recent call last):
    File "/usr/sbin/aa-complain", line 30, in <module>
      tool.cmd_complain()
    File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 171, in cmd_complain
      apparmor.read_profiles()
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2564, in read_profiles
      read_profile(profile_dir + '/' + file, True)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2590, in read_profile
      profile_data = parse_profile_data(data, file, 0)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2843, in parse_profile_data
      store_list_var(filelist[file]['lvar'], list_var, value, var_operation)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 3274, in store_list_var
      raise AppArmorException(_('An existing variable redefined: %s') % list_var)
  apparmor.common.AppArmorException: 'An existing variable redefined: @{MOZ_LIBDIR}'

  sudo apparmor_status
  apparmor module is loaded.
  20 profiles are loaded.
  20 profiles are in enforce mode.
     /sbin/dhclient
     /usr/bin/evince
     /usr/bin/evince-previewer
     /usr/bin/evince-previewer//sanitized_helper
     /usr/bin/evince-thumbnailer
     /usr/bin/evince-thumbnailer//sanitized_helper
     /usr/bin/evince//sanitized_helper
     /usr/lib/NetworkManager/nm-dhcp-client.action
     /usr/lib/connman/scripts/dhclient-script
     /usr/lib/cups/backend/cups-pdf
     /usr/lib/lightdm/lightdm-guest-session
     /usr/lib/lightdm/lightdm-guest-session//chromium
     /usr/lib/telepathy/mission-control-5
     /usr/lib/telepathy/telepathy-*
     /usr/lib/telepathy/telepathy-*//pxgsettings
     /usr/lib/telepathy/telepathy-*//sanitized_helper
     /usr/lib/telepathy/telepathy-ofono
     /usr/sbin/cups-browsed
     /usr/sbin/cupsd
     /usr/sbin/tcpdump
  0 profiles are in complain mode.
  3 processes have profiles defined.
  3 processes are in enforce mode.
     /usr/lib/telepathy/mission-control-5 (2818)
     /usr/sbin/cups-browsed (1422)
     /usr/sbin/cupsd (3049)
  0 processes are in complain mode.
  0 processes are unconfined but have a profile defined.

  However, executing the following did not crash:
  sudo aa-complain /usr/bin/evince-previewer
  Profile for /usr/bin/evince-previewer not found, skipping

  Not sure how no profile was found when there clearly was one as per
  the status.

  ProblemType: Crash
  DistroRelease: Ubuntu 14.04
  Package: apparmor-utils 2.8.95~2430-0ubuntu5.1
  ProcVersionSignature: Ubuntu 3.16.0-28.37~14.04.1-generic 3.16.7-ckt1
  Uname: Linux 3.16.0-28-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: amd64
  Date: Tue Dec 16 14:27:47 2014
  ExecutablePath: /usr/sbin/aa-complain
  InstallationDate: Installed on 2014-06-21 (177 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  InterpreterPath: /usr/bin/python3.4
  ProcCmdline: /usr/bin/python3 /usr/sbin/aa-complain /usr/bin/evince /usr/bin/evince-previewer
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   LANGUAGE=en_US
   SHELL=/bin/bash
  ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-3.16.0-28-generic root=UUID=a2db89ed-d599-4138-8838-0b950b6c3fbb ro quiet splash crashkernel=384M-:128M vt.handoff=7
  PythonArgs: ['/usr/sbin/aa-complain', '/usr/bin/evince', '/usr/bin/evince-previewer']
  SourcePackage: apparmor
  Syslog:

  Title: aa-complain crashed with apparmor.common.AppArmorException in store_list_var(): 'An existing variable redefined: @{MOZ_LIBDIR}'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

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