Public bug reported: In raring we're using a new xorglog.py parser to extract info from the Xorg.0.log file.
However, parsing of this file will fail if it includes invalid data characters, and that failure will crash ubuntu-bug. It is uncommon for there to be invalid characters in Xorg.0.log, but it can happen sometimes via funky EDIDs for example. The problem is not with the apport hook, but with python itself; this can be reproduced independently of apport: $ python Python 2.7.3 (default, Jan 6 2013, 12:15:04) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> buf = open('/var/log/Xorg.0.log', 'rb').read() >>> len(buf) 26205 >>> ubuf = buf.decode('utf8') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 10154: invalid start byte >>> buf[10140:10180] 'tel(0): XX31G\x80B133XW1\n[ 27.376] (II)' >>> Also: $ iconv -f UTF-8 /var/log/Xorg.0.log -o /dev/null iconv: illegal input sequence at position 10154 The apport hook will need to catch this error, and bypass use of parsed log data if this happens. ** Affects: xdiagnose (Ubuntu) Importance: High Assignee: Bryce Harrington (bryce) Status: In Progress ** Changed in: xdiagnose (Ubuntu) Status: New => In Progress ** Changed in: xdiagnose (Ubuntu) Importance: Undecided => High ** Changed in: xdiagnose (Ubuntu) Assignee: (unassigned) => Bryce Harrington (bryce) -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xdiagnose in Ubuntu. https://bugs.launchpad.net/bugs/1098395 Title: Bug reporting can fail if invalid characters are in Xorg.0.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdiagnose/+bug/1098395/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp