** Description changed:

+ [Original report]
+ ```
+ Traceback (most recent call last):
+   File "/usr/share/apport/apport", line 1253, in <module>
+     sys.exit(main(sys.argv[1:]))
+              ~~~~^^^^^^^^^^^^^^
+   File "/usr/share/apport/apport", line 762, in main
+     return 
process_crash_from_systemd_coredump(options.systemd_coredump_instance)
+   File "/usr/share/apport/apport", line 1246, in 
process_crash_from_systemd_coredump
+     report = apport.report.Report.from_systemd_coredump(coredump)
+   File "/usr/lib/python3/dist-packages/apport/report.py", line 2082, in 
from_systemd_coredump
+     report._add_executable_timestamp()
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
+   File "/usr/lib/python3/dist-packages/apport/report.py", line 815, in 
_add_executable_timestamp
+     self["ExecutableTimestamp"] = 
str(int(os.stat(self["ExecutablePath"]).st_mtime))
+                                           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
+ FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/.mount_jetbraMkhivj/jetbrains-toolbox'
+ ```
+ 
+ The Ubuntu Error Tracker has been receiving reports about a problem regarding 
apport.  This problem was most recently seen with package version 
2.31.0-0ubuntu4, the problem page at 
https://errors.ubuntu.com/problem/de11995c45fc4b1c7cc769a55d31533f6f9d8b51 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
+ If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.
+ 
+ [ Impact ]
+ 
+ * This is bug #4 for noble: 
https://errors.ubuntu.com/?release=Ubuntu%2024.04&package=apport&period=month
+ *  apport: FileNotFoundError in _add_executable_timestamp on ExecutablePath:
+ 
  ```
  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 1253, in <module>
      sys.exit(main(sys.argv[1:]))
               ~~~~^^^^^^^^^^^^^^
    File "/usr/share/apport/apport", line 762, in main
      return 
process_crash_from_systemd_coredump(options.systemd_coredump_instance)
    File "/usr/share/apport/apport", line 1246, in 
process_crash_from_systemd_coredump
      report = apport.report.Report.from_systemd_coredump(coredump)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 2082, in 
from_systemd_coredump
      report._add_executable_timestamp()
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/apport/report.py", line 815, in 
_add_executable_timestamp
      self["ExecutableTimestamp"] = 
str(int(os.stat(self["ExecutablePath"]).st_mtime))
                                            ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/.mount_jetbraMkhivj/jetbrains-toolbox'
  ```
+  
+ * The upload fixes the bug as https://github.com/canonical/apport/pull/538 
adds a try-catch for FileNotFoundError and sets ExecutableTimestamp to an error 
message.
  
- The Ubuntu Error Tracker has been receiving reports about a problem regarding 
apport.  This problem was most recently seen with package version 
2.31.0-0ubuntu4, the problem page at 
https://errors.ubuntu.com/problem/de11995c45fc4b1c7cc769a55d31533f6f9d8b51 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
- If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.
+ [ Test Plan ]
+ 
+  * This crash can be reproduced with systemd-coredump installed:
+ 
+ ```
+ cp /usr/bin/sleep /tmp/sleep
+ /tmp/sleep 3600
+ killall -11 sleep
+ ```
+ 
+ This is caused by /usr/lib/systemd/system/[email protected]
+ having:
+ 
+ ```
+ PrivateTmp=yes
+ ```
+ 
+  * https://github.com/canonical/apport/pull/538 also introduced a unit
+ test for this.
+ 
+ 
+ [ Where problems could occur ]
+ 
+  * We are modifying the conditions for checking if a binary has changed
+ since the crash so a syntax error or a logical error in the condition
+ can lead to buggy behavior.
+ 
+  * Since apport is primarily for crash reports, user experience is
+ unlikely to be affected much.

** Also affects: apport (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Also affects: apport (Ubuntu Noble)
   Importance: Undecided
       Status: New

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

Title:
  apport: FileNotFoundError in _add_executable_timestamp on
  ExecutablePath

Status in Apport:
  Fix Committed
Status in apport package in Ubuntu:
  In Progress
Status in apport source package in Jammy:
  New
Status in apport source package in Noble:
  New

Bug description:
  [Original report]
  ```
  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 1253, in <module>
      sys.exit(main(sys.argv[1:]))
               ~~~~^^^^^^^^^^^^^^
    File "/usr/share/apport/apport", line 762, in main
      return 
process_crash_from_systemd_coredump(options.systemd_coredump_instance)
    File "/usr/share/apport/apport", line 1246, in 
process_crash_from_systemd_coredump
      report = apport.report.Report.from_systemd_coredump(coredump)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 2082, in 
from_systemd_coredump
      report._add_executable_timestamp()
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/apport/report.py", line 815, in 
_add_executable_timestamp
      self["ExecutableTimestamp"] = 
str(int(os.stat(self["ExecutablePath"]).st_mtime))
                                            ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/.mount_jetbraMkhivj/jetbrains-toolbox'
  ```

  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
apport.  This problem was most recently seen with package version 
2.31.0-0ubuntu4, the problem page at 
https://errors.ubuntu.com/problem/de11995c45fc4b1c7cc769a55d31533f6f9d8b51 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

  [ Impact ]

  * This is bug #4 for noble: 
https://errors.ubuntu.com/?release=Ubuntu%2024.04&package=apport&period=month
  *  apport: FileNotFoundError in _add_executable_timestamp on ExecutablePath:

  ```
  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 1253, in <module>
      sys.exit(main(sys.argv[1:]))
               ~~~~^^^^^^^^^^^^^^
    File "/usr/share/apport/apport", line 762, in main
      return 
process_crash_from_systemd_coredump(options.systemd_coredump_instance)
    File "/usr/share/apport/apport", line 1246, in 
process_crash_from_systemd_coredump
      report = apport.report.Report.from_systemd_coredump(coredump)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 2082, in 
from_systemd_coredump
      report._add_executable_timestamp()
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/apport/report.py", line 815, in 
_add_executable_timestamp
      self["ExecutableTimestamp"] = 
str(int(os.stat(self["ExecutablePath"]).st_mtime))
                                            ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/.mount_jetbraMkhivj/jetbrains-toolbox'
  ```
   
  * The upload fixes the bug as https://github.com/canonical/apport/pull/538 
adds a try-catch for FileNotFoundError and sets ExecutableTimestamp to an error 
message.

  [ Test Plan ]

   * This crash can be reproduced with systemd-coredump installed:

  ```
  cp /usr/bin/sleep /tmp/sleep
  /tmp/sleep 3600
  killall -11 sleep
  ```

  This is caused by /usr/lib/systemd/system/apport-coredump-
  [email protected] having:

  ```
  PrivateTmp=yes
  ```

   * https://github.com/canonical/apport/pull/538 also introduced a unit
  test for this.

  
  [ Where problems could occur ]

   * We are modifying the conditions for checking if a binary has
  changed since the crash so a syntax error or a logical error in the
  condition can lead to buggy behavior.

   * Since apport is primarily for crash reports, user experience is
  unlikely to be affected much.

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to