Bug 1383978 - [abrt] setroubleshoot-server: gettext.py:76:c2py:ValueError: plural forms expression could be dangerous
Summary: [abrt] setroubleshoot-server: gettext.py:76:c2py:ValueError: plural forms exp...
Keywords:
Status: CLOSED DUPLICATE of bug 1364114
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:2fbb3f4e14083e4fca40553cee1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-12 09:42 UTC by Nerijus Baliūnas
Modified: 2016-10-17 09:39 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-10-17 09:39:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.79 KB, text/plain)
2016-10-12 09:42 UTC, Nerijus Baliūnas
no flags Details
File: environ (1.55 KB, text/plain)
2016-10-12 09:42 UTC, Nerijus Baliūnas
no flags Details

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 ***


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