Comment 5 for bug 1996040

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

If the intent was to have apport-unpack deal with any invalid crash file, then it's not complete. This still happens now:
ubuntu@k-apport:~$ apport-unpack /bin/ls unpack
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/problem_report.py", line 174, in load
    (key, value) = line.split(b":", 1)
ValueError: not enough values to unpack (expected 2, got 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apport-unpack", line 66, in <module>
    pr = load_report(args.report)
  File "/usr/bin/apport-unpack", line 47, in load_report
    pr.load(f, binary=False)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 177, in load
    f"Malformed problem report: Line {line.decode()!r}"
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 24: invalid start byte

Is this something you would still like to address?