Bug 1383978

Summary: [abrt] setroubleshoot-server: gettext.py:76:c2py:ValueError: plural forms expression could be dangerous
Product: [Fedora] Fedora Reporter: Nerijus Baliūnas <nerijus>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dwalsh, mgrepl, plautrba, pmoore, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b877019077b042c86ae9b23085d6ed54b6b420ef
Whiteboard: abrt_hash:2fbb3f4e14083e4fca40553cee1ed9b6f383526e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-17 09:39:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Nerijus Baliūnas 2016-10-12 09:42:38 UTC
Description of problem:
setroubleshooter crashed after I pressed Show.

Version-Release number of selected component:
setroubleshoot-server-3.3.11-1.fc25

Additional info:
reporter:       libreport-2.8.0
cmdline:        /usr/bin/python3 -Es /usr/bin/sealert -b
executable:     /usr/bin/sealert
kernel:         4.8.1-1.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
gettext.py:76:c2py:ValueError: plural forms expression could be dangerous

Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/sepolicy/__init__.py", line 21, in <module>
    codeset='utf-8')
TypeError: install() got an unexpected keyword argument 'unicode'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/sealert", line 56, in <module>
    from setroubleshoot.util import get_identity, load_plugins, log_init, log_debug
  File "/usr/lib/python3.5/site-packages/setroubleshoot/util.py", line 324, in <module>
    from sepolicy import get_all_file_types
  File "/usr/lib64/python3.5/site-packages/sepolicy/__init__.py", line 25, in <module>
    codeset='utf-8')
  File "/usr/lib64/python3.5/gettext.py", line 441, in install
    t = translation(domain, localedir, fallback=True, codeset=codeset)
  File "/usr/lib64/python3.5/gettext.py", line 426, in translation
    t = _translations.setdefault(key, class_(fp))
  File "/usr/lib64/python3.5/gettext.py", line 162, in __init__
    self._parse(fp)
  File "/usr/lib64/python3.5/gettext.py", line 297, in _parse
    self.plural = c2py(plural)
  File "/usr/lib64/python3.5/gettext.py", line 76, in c2py
    raise ValueError('plural forms expression could be dangerous')
ValueError: plural forms expression could be dangerous

Local variables in innermost frame:
tokenize: <module 'tokenize' from '/usr/lib64/python3.5/tokenize.py'>
plural: '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 or n%100>=20) ? 1 : 2)'
tokens: <generator object _tokenize at 0x7fbe3a070990>
danger: [TokenInfo(type=1 (NAME), string='or', start=(1, 49), end=(1, 51), line='(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 or n%100>=20) ? 1 : 2)')]
token: <module 'token' from '/usr/lib64/python3.5/token.py'>

Comment 1 Nerijus Baliūnas 2016-10-12 09:42:44 UTC
Created attachment 1209520 [details]
File: backtrace

Comment 2 Nerijus Baliūnas 2016-10-12 09:42:46 UTC
Created attachment 1209521 [details]
File: environ

Comment 3 Vit Mojzis 2016-10-17 09:39:58 UTC

*** This bug has been marked as a duplicate of bug 1364114 ***