Bug 914933

Summary: [abrt] tuned-utils-2.2.0-1.fc18: codecs.py:477:read:UnicodeDecodeError: 'utf8' codec can't decode byte 0x85 in position 59629: invalid start byte
Product: [Fedora] Fedora Reporter: Richard Marko <rmarko>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jberan, jkaluza, jskarvad, jv+fedora, pknirsch, rmarko, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:be28b0be65ff385d2e741aa2efd31094f2a744b1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-19 20:11:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ
none
powertop.html none

Description Richard Marko 2013-02-23 14:42:47 UTC
Description of problem:
Running powertop2tuned

Version-Release number of selected component:
tuned-utils-2.2.0-1.fc18

Additional info:
cmdline:        /usr/bin/python -Es /bin/powertop2tuned powertop
dso_list:       python-libs-2.7.3-13.fc18.x86_64
executable:     /bin/powertop2tuned
kernel:         3.7.8-202.fc18.x86_64
uid:            0

Comment 1 Richard Marko 2013-02-23 14:42:51 UTC
Created attachment 701640 [details]
File: backtrace

Comment 2 Richard Marko 2013-02-23 14:42:55 UTC
Created attachment 701641 [details]
File: core_backtrace

Comment 3 Richard Marko 2013-02-23 14:42:57 UTC
Created attachment 701642 [details]
File: environ

Comment 4 Richard Marko 2013-02-23 14:45:17 UTC
There's this line in powertop html output which is causing problems:

549 uW	 2.9 us/s	 1.1				kWork	ieee80211_dynamic_ps_enable_wor�

Comment 5 Jaroslav Škarvada 2013-02-25 09:50:57 UTC
Please upload powertop html obtained by:
# LANG=C powertop --html

Comment 6 Richard Marko 2013-02-25 10:36:54 UTC
Created attachment 702285 [details]
powertop.html

Comment 7 Jaroslav Škarvada 2013-02-27 09:29:33 UTC
I am unable to reproduce with the attached powertop.html. Also the string from comment 4 doesn't seem to be unicode. Maybe bug in powertop or kernel perf?

Comment 8 Jaroslav Škarvada 2013-02-27 09:31:28 UTC
The only thing we could probably do now in the powetop2tuned code is to catch the exception and correctly exit.

Comment 9 Richard Marko 2013-02-27 10:29:26 UTC
(In reply to comment #8)
> The only thing we could probably do now in the powetop2tuned code is to
> catch the exception and correctly exit.

It's possible to pass errors='ignore' to codecs.open to ignore decoding errors.

Comment 10 Jaroslav Škarvada 2013-02-27 10:35:53 UTC
(In reply to comment #9)
> It's possible to pass errors='ignore' to codecs.open to ignore decoding
> errors.

I would rather catch it and cleanly exit, there maybe more binary garbage.

Fixed by the following upstream commit:
http://git.fedorahosted.org/cgit/tuned.git/commit/?id=7cc8345a8eedd53401a8213b1f1cfd285d28dead

This bug will be autoclosed when the new release will happen.

Comment 11 Fedora Update System 2013-03-01 13:35:18 UTC
tuned-2.2.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tuned-2.2.1-1.fc18

Comment 12 Fedora Update System 2013-03-02 19:51:57 UTC
Package tuned-2.2.1-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tuned-2.2.1-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3205/tuned-2.2.1-1.fc18
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2013-03-08 08:55:06 UTC
tuned-2.2.1-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tuned-2.2.1-2.fc18

Comment 14 Fedora Update System 2013-03-19 20:11:56 UTC
tuned-2.2.1-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.