Bug 893564 - [abrt] setroubleshoot-server-3.1.19-3.fc18: catchall_boolean.py:60:get_if_text:UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 0: unexpected end of data
Summary: [abrt] setroubleshoot-server-3.1.19-3.fc18: catchall_boolean.py:60:get_if_tex...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot-plugins
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2723e9a58f80c1d32cb9d3bef59...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-09 13:15 UTC by Tommy He
Modified: 2013-01-26 15:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-26 15:53:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.28 KB, text/plain)
2013-01-09 13:15 UTC, Tommy He
no flags Details
File: core_backtrace (498 bytes, text/plain)
2013-01-09 13:16 UTC, Tommy He
no flags Details
File: dso_list (79 bytes, text/plain)
2013-01-09 13:16 UTC, Tommy He
no flags Details
File: environ (1021 bytes, text/plain)
2013-01-09 13:16 UTC, Tommy He
no flags Details

Description Tommy He 2013-01-09 13:15:50 UTC
Description of problem:
Try to launch sealert -b from terminal with different LANG set from current one. 

e.g.

In a LANG=zh_CN.utf8 environment, try to run: 
$ LANG=en_US.utf8 sealert -b

Version-Release number of selected component:
setroubleshoot-server-3.1.19-3.fc18

Additional info:
cmdline:        /usr/bin/python -Es /usr/bin/sealert -s
executable:     /usr/bin/sealert
kernel:         3.7.1-2.fc18.x86_64
uid:            1000

Truncated backtrace:
catchall_boolean.py:60:get_if_text:UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 0: unexpected end of data

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 791, in on_previous_button_clicked
    self.show_current_alert()
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 764, in show_current_alert
    rb = self.add_row(p, alert, args)
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 406, in add_row
    if_text = _("If ") + alert.substitute(plugin.get_if_text(avc, args))
  File "/usr/share/setroubleshoot/plugins/catchall_boolean.py", line 60, in get_if_text
    return _("you want to %s") % txt[0].lower() + txt[1:]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 0: unexpected end of data

Local variables in innermost frame:
self: <plugins.catchall_boolean.plugin object at 0x77b05d0>
txt: '\xe6\x8e\xa7\xe5\x88\xb6 mmap \xe5\x9c\xa8\xe5\x9c\xb0\xe5\x9d\x80\xe7\xa9\xba\xe9\x97\xb4\xe4\xbd\x8e\xe7\xab\xaf\xe7\x9a\x84\xe5\x8a\x9f\xe8\x83\xbd\xef\xbc\x8c\xe7\x94\xb1 /proc/sys/kernel/mmap_min_addr \xe9\x85\x8d\xe7\xbd\xae\xe3\x80\x82'
args: ('mmap_low_allowed', '1', 'wine_selinux')
avc: [<setroubleshoot.audit_data.AuditRecord object at 0x778aa10>]

Comment 1 Tommy He 2013-01-09 13:15:59 UTC
Created attachment 675541 [details]
File: backtrace

Comment 2 Tommy He 2013-01-09 13:16:03 UTC
Created attachment 675542 [details]
File: core_backtrace

Comment 3 Tommy He 2013-01-09 13:16:07 UTC
Created attachment 675543 [details]
File: dso_list

Comment 4 Tommy He 2013-01-09 13:16:14 UTC
Created attachment 675544 [details]
File: environ

Comment 5 Daniel Walsh 2013-01-09 14:56:52 UTC
Fixed in setroubleshoot-plugins-3.0.47-1.fc18

Comment 6 Fedora Update System 2013-01-09 15:02:44 UTC
setroubleshoot-plugins-3.0.47-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/setroubleshoot-plugins-3.0.47-1.fc18

Comment 7 Fedora Update System 2013-01-09 22:52:58 UTC
Package setroubleshoot-plugins-3.0.47-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 setroubleshoot-plugins-3.0.47-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0527/setroubleshoot-plugins-3.0.47-1.fc18
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2013-01-26 15:53:53 UTC
setroubleshoot-plugins-3.0.47-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.