[Bug 2087535] Re: Apport GUI triggering is very fragile

Benjamin Drung 2087535 at bugs.launchpad.net
Fri Nov 8 12:10:38 UTC 2024


** Changed in: update-notifier (Ubuntu)
   Importance: Undecided => Medium

** Changed in: apport (Ubuntu)
   Importance: Undecided => Medium

** Changed in: update-notifier (Ubuntu)
       Status: New => Triaged

** Changed in: apport (Ubuntu)
       Status: New => Triaged

** Tags added: foundations-todo

** Also affects: apport
   Importance: Undecided
       Status: New

** Changed in: apport
   Importance: Undecided => Medium

** Changed in: apport
       Status: New => Triaged

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

Title:
  Apport GUI triggering is very fragile

Status in Apport:
  Triaged
Status in apport package in Ubuntu:
  Triaged
Status in update-notifier package in Ubuntu:
  Triaged

Bug description:
  The mechanism used by apport/update-notifier to prompt the user when a
  crash occurs is both buggy and fragile.

  It's buggy because it suffers from a pretty big TOCTOU race, with a
  sizeable gap between the "check if seen" and "mark as seen" steps
  where apport collects some data about the crash.

  It's fragile because it relies on specific values for the mtime and
  atime filesystem attributes, and the latter is not that reliable: it
  depends on the FS atime granularity as well as mount options (noatime
  remaining a fairly popular one, and the default being relatime).

  Furthermore, anytime there is FS activity in the crash directory the
  script will check *all* crashes rather than whichever files triggered
  the systemd unit in the first place, exacerbating the issues. Sadly, I
  don't think that one is solvable.

  I believe this might be the actual culprit for bug 2066995 which we
  actually saw live at Ubuntu Summit on a demo Framework laptop :)

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2087535/+subscriptions




More information about the foundations-bugs mailing list