scanlog crashes with UnicodeDecodeError

Bug #1510610 reported by Carlo Lobrano on 2015-10-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

How I reproduced it:

1. sudo snappy install snappy-debug
2. sudo scanlog


(amd64)ubuntu@localhost:~$ sudo scanlog
kernel.printk_ratelimit = 0
Traceback (most recent call last):
  File "/apps/snappy-debug.canonical/0.3/bin/snappy-security-scanlog", line 478, in <module>
  File "/apps/snappy-debug.canonical/0.3/bin/snappy-security-scanlog", line 467, in main
  File "/apps/snappy-debug.canonical/0.3/bin/snappy-security-scanlog", line 56, in __init__
    self.scan_log(log_file, snap_name, follow)
  File "/apps/snappy-debug.canonical/0.3/bin/snappy-security-scanlog", line 118, in scan_log
    line = log.readline()
  File "/usr/lib/python3.4/", line 698, in readline
    return self.reader.readline(size)
  File "/usr/lib/python3.4/", line 551, in readline
    data =, firstline=True)
  File "/usr/lib/python3.4/", line 497, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 0: invalid continuation byte

Carlo Lobrano (c-lobrano) wrote :
Carlo Lobrano (c-lobrano) wrote :

(amd64)ubuntu@localhost:~$ set|egrep '(LC_|LANG)'

Changed in snappy:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Jamie Strandboge (jdstrand)
status: Triaged → In Progress
status: In Progress → Fix Committed
Jamie Strandboge (jdstrand) wrote :

Thanks for the bug! 0.4 is in the store and fixes this issue.

Changed in snappy:
assignee: Jamie Strandboge (jdstrand) → nobody
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments