[Bug 1978487] Re: attach_journal_errors is causing a ValueError crash

Benjamin Drung 1978487 at bugs.launchpad.net
Mon Jun 27 16:22:07 UTC 2022


** Description changed:

  As seen in https://bugs.launchpad.net/ubuntu/+source/obs-
  studio/+bug/1978414 with ApportVersion: 2.21.0-0ubuntu2.
  
  Traceback (most recent call last):
-   File "/usr/lib/python3/dist-packages/apport/report.py", line 205, in _run_hook
-     symb['add_info'](report, ui)
-   File "/usr/share/apport/general-hooks/generic.py", line 94, in add_info
-     apport.hookutils.attach_journal_errors(report)
-   File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 740, in attach_journal_errors
-     crash_time = report.get_date()
-   File "/usr/lib/python3/dist-packages/problem_report.py", line 268, in get_date
-     return datetime.datetime.strptime(self['Date'], '%a %b %d %H:%M:%S %Y')
-   File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
-     tt, fraction, gmtoff_fraction = _strptime(data_string, format)
-   File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime
-     raise ValueError("time data %r does not match format %r" %
+   File "/usr/lib/python3/dist-packages/apport/report.py", line 205, in _run_hook
+     symb['add_info'](report, ui)
+   File "/usr/share/apport/general-hooks/generic.py", line 94, in add_info
+     apport.hookutils.attach_journal_errors(report)
+   File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 740, in attach_journal_errors
+     crash_time = report.get_date()
+   File "/usr/lib/python3/dist-packages/problem_report.py", line 268, in get_date
+     return datetime.datetime.strptime(self['Date'], '%a %b %d %H:%M:%S %Y')
+   File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
+     tt, fraction, gmtoff_fraction = _strptime(data_string, format)
+   File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime
+     raise ValueError("time data %r does not match format %r" %
  ValueError: time data 'Sun Jun 12 19:52:55 2022' does not match format '%a %b %d %H:%M:%S %Y'
+ 
+ This bug is a regression of the fix of bug #1962454.

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

Title:
  attach_journal_errors is causing a ValueError crash

Status in Apport:
  Fix Released
Status in apport package in Ubuntu:
  Fix Released
Status in apport source package in Kinetic:
  Fix Released

Bug description:
  As seen in https://bugs.launchpad.net/ubuntu/+source/obs-
  studio/+bug/1978414 with ApportVersion: 2.21.0-0ubuntu2.

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 205, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/general-hooks/generic.py", line 94, in add_info
      apport.hookutils.attach_journal_errors(report)
    File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 740, in attach_journal_errors
      crash_time = report.get_date()
    File "/usr/lib/python3/dist-packages/problem_report.py", line 268, in get_date
      return datetime.datetime.strptime(self['Date'], '%a %b %d %H:%M:%S %Y')
    File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
      tt, fraction, gmtoff_fraction = _strptime(data_string, format)
    File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime
      raise ValueError("time data %r does not match format %r" %
  ValueError: time data 'Sun Jun 12 19:52:55 2022' does not match format '%a %b %d %H:%M:%S %Y'

  This bug is a regression of the fix of bug #1962454.

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




More information about the foundations-bugs mailing list