UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 3689: invalid start byte

Bug #1852433 reported by Scott Hollenbeck
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pyzor (Debian)
Fix Released
Unknown
pyzor (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

From spamd.log:

Wed Nov 13 07:02:40 2019 [4966] info: pyzor: [10238] error: TERMINATED, signal 15 (000f)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: pyzor 1:1.0.0-3
Uname: Linux 5.1.17-x86_64-linode128 x86_64
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
Date: Wed Nov 13 08:09:00 2019
Dependencies:

InstallationDate: Installed on 2012-04-28 (2754 days ago)
InstallationMedia:

PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 TERM=xterm
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, user)
SourcePackage: pyzor
UpgradeStatus: Upgraded to bionic on 2019-09-28 (45 days ago)

Revision history for this message
Scott Hollenbeck (g-sah) wrote :
Revision history for this message
Scott Hollenbeck (g-sah) wrote :

Traceback:
 Traceback (most recent call last):
   File "/usr/bin/pyzor", line 408, in <module>
     main()
   File "/usr/bin/pyzor", line 152, in main
     if not dispatch(client, servers, config):
   File "/usr/bin/pyzor", line 237, in check
     for digested in get_input_handler(style):
   File "/usr/bin/pyzor", line 174, in _get_input_msg
     msg = email.message_from_file(sys.stdin)
   File "/usr/lib/python3.6/email/__init__.py", line 54, in message_from_file
     return Parser(*args, **kws).parse(fp)
   File "/usr/lib/python3.6/email/parser.py", line 54, in parse
     data = fp.read(8192)
   File "/usr/lib/python3.6/codecs.py", line 321, in decode
     (result, consumed) = self._buffer_decode(data, self.errors, final)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 3689: invalid start byte
UserGroups:

Revision history for this message
Scott Hollenbeck (g-sah) wrote :

I've attached a patch based on code found here:

https://github.com/SpamExperts/pyzor

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "pyzor.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pyzor (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthijs Kooijman (matthijskooijman) wrote :

This bug is reported and fixed upstream at https://github.com/SpamExperts/pyzor/issues/74

Looks like the attached patch is essentially the upstream fix.

Changed in pyzor (Debian):
status: Unknown → New
Changed in pyzor (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.