View Issue Details

IDProjectCategoryView StatusLast Update
0013448CentOS-7policycoreutilspublic2017-06-19 13:52
ReporterAnton 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0013448: [abrt] policycoreutils-devel: sepolicy:701:<module>:UnicodeEncodeError: 'ascii' codec can't encode characters in position ...
DescriptionVersion-Release number of selected component:
policycoreutils-devel-2.5-11.el7_3

Truncated backtrace:
#1 <module> in /usr/bin/sepolicy:701
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python -Es /usr/bin/sepolicy gui
executable: /usr/bin/sepolicy
kernel: 3.10.0-514.21.1.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 1000
TagsNo tags attached.
abrt_hash9822815f72d89dcd5464a42ae3d92fd33ccab52a
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/8650048f6142c341852d246d17cfb2457e7bfd84

Activities

Anton

Anton

2017-06-19 13:52

reporter  

backtrace (6,575 bytes)
sepolicy:701:<module>:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/bin/sepolicy", line 701, in <module>
    sys.stderr.write("%s: %s\n" % (e.__class__.__name__, str(e)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

Local variables in innermost frame:
CheckUser: <class '__main__.CheckUser'>
sepolicy: <module 'sepolicy' from '/usr/lib64/python2.7/site-packages/sepolicy/__init__.pyc'>
CheckPort: <class '__main__.CheckPort'>
selinux: <module 'selinux' from '/usr/lib64/python2.7/site-packages/selinux/__init__.pyc'>
numcmp: <function numcmp at 0x1ddf140>
parser: ArgumentParser(prog='sepolicy', usage=None, description='SELinux Policy Inspection Tool', version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
PROGNAME: 'policycoreutils'
print_interfaces: <function print_interfaces at 0x1ddf7d0>
sys: <module 'sys' (built-in)>
gen_interface_args: <function gen_interface_args at 0x1ddf938>
manpage: <function manpage at 0x1ddf398>
all_classes: None
generate_custom_usage: <function generate_custom_usage at 0x1dbb398>
network: <function network at 0x1ddf230>
gen_network_args: <function gen_network_args at 0x1ddf488>
get_conditionals_format_text: <function get_conditionals_format_text at 0x1d4fc80>
CheckType: <class '__main__.CheckType'>
booleans: <function booleans at 0x1ddf5f0>
gen_communicate_args: <function gen_communicate_args at 0x1ddf578>
gettext: <module 'gettext' from '/usr/lib64/python2.7/gettext.pyc'>
__package__: None
CheckBoolean: <class '__main__.CheckBoolean'>
get_conditionals: <function get_conditionals at 0x1d4fc08>
CheckDomain: <class '__main__.CheckDomain'>
usage: 'sepolicy generate [-h] [-n NAME] [-p PATH] ['
CheckClass: <class '__main__.CheckClass'>
__doc__: None
gen_booleans_args: <function gen_booleans_args at 0x1ddf668>
usage_dict: {' --inetd': ('COMMAND', '[ -w WRITEPATHS ]'), ' --dbus': ('COMMAND', '[ -w WRITEPATHS ]'), ' --admin_user': ('[-r TRANSITION_ROLE ]', '[ -w WRITEPATHS ]'), ' --confined_admin': ('-a  ADMIN_DOMAIN', '[ -w WRITEPATHS ]'), ' --sandbox': ('[ -w WRITEPATHS ]',), ' --newtype': ('-t [TYPES [TYPES ...]]',), ' --term_user': ('[ -w WRITEPATHS ]',), ' --cgi': ('COMMAND', '[ -w WRITEPATHS ]'), ' --customize': ('-d DOMAIN', '-a  ADMIN_DOMAIN', '[ -w WRITEPATHS ]'), ' --x_user': ('[ -w WRITEPATHS ]',), ' --desktop_user': ('', '[ -w WRITEPATHS ]'), ' --init': ('COMMAND', '[ -w WRITEPATHS ]'), ' --application': ('COMMAND', '[ -w WRITEPATHS ]')}
CheckRole: <class '__main__.CheckRole'>
__builtins__: <module '__builtin__' (built-in)>
__file__: '/usr/bin/sepolicy'
args: Namespace(domain=None, func=<function gui_run at 0x1ddf2a8>, policy=None, test=False)
communicate: <function communicate at 0x1ddf500>
CheckAdmin: <class '__main__.CheckAdmin'>
util: <module 'sepolgen.util' from '/usr/lib64/python2.7/site-packages/sepolgen/util.pyc'>
interface: <function interface at 0x1ddf848>
parser_args: ['gui']
gen_manpage_args: <function gen_manpage_args at 0x1ddf410>
LoadPolicy: <class '__main__.LoadPolicy'>
__name__: '__main__'
_print_net: <function _print_net at 0x1ddf1b8>
subparsers: _SubParsersAction(option_strings=[], dest='==SUPPRESS==', nargs='A...', const=None, default=None, type=None, choices=OrderedDict([('booleans', ArgumentParser(prog='sepolicy booleans', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('communicate', ArgumentParser(prog='sepolicy communicate', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('generate', ArgumentParser(prog='sepolicy generate', usage=u'sepolicy generate [-h] [-n NAME] [-p PATH] [ --admin_user [-r TRANSITION_ROLE ] [ -w WRITEPATHS ] | --application COMMAND [ -w WRITEPATHS ] | --cgi COMMAND [ -w WRITEPATHS ] | --confined_admin -a  ADMIN_DOMAIN [ -w WRITEPATHS ] | --customize -d DOMAIN -a  ADMIN_DOMAIN [ -w WRITEPATHS ] | --dbus COMMAND [ -w WRITEPATHS ] | --desktop_user  [ -w WRITEPATHS ] | --inetd COMMAND [ -w WRITEPATHS ] | --init COMMAND [ -w WRITEPATHS ] | --newtype -t [TYPES [TYPES ...]] | --sandbox [ -w WRITEPATHS ] | --term_user [ -w WRITEPATHS ] | --x_user [ -w WRITEPATHS ] ]', description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('gui', ArgumentParser(prog='sepolicy gui', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('interface', ArgumentParser(prog='sepolicy interface', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('manpage', ArgumentParser(prog='sepolicy manpage', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('network', ArgumentParser(prog='sepolicy network', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)), ('transition', ArgumentParser(prog='sepolicy transition', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True))]), help=u'\u043a\u043e\u043c\u0430\u043d\u0434\u044b', metavar=None)
generate: <function generate at 0x1ddf8c0>
gen_transition_args: <function gen_transition_args at 0x1ddf758>
argparse: <module 'argparse' from '/usr/lib64/python2.7/argparse.pyc'>
gui_run: <function gui_run at 0x1ddf2a8>
CheckPortType: <class '__main__.CheckPortType'>
gen_generate_args: <function gen_generate_args at 0x1ddf9b0>
CheckPolicyType: <class '__main__.CheckPolicyType'>
transition: <function transition at 0x1ddf6e0>
CheckPath: <class '__main__.CheckPath'>
gen_gui_args: <function gen_gui_args at 0x1ddf320>
InterfaceInfo: <class '__main__.InterfaceInfo'>
get_os_version: <function get_os_version at 0x1db8ed8>
os: <module 'os' from '/usr/lib64/python2.7/os.pyc'>
e: ValueError(u'\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c policycoreutils-gui',)
backtrace (6,575 bytes)
environ (3,165 bytes)
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GJS_DEBUG_OUTPUT=stderr
LESSOPEN=||/usr/bin/lesspipe.sh %s
QT_IM_MODULE=ibus
LOGNAME=mael
USER=mael
HOME=/home/mael
XDG_VTNR=1
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/mael/.local/bin:/home/mael/bin
WINDOWPATH=1
SSH_AGENT_PID=3618
LANG=ru_RU.UTF-8
TERM=xterm-256color
SHELL=/bin/bash
XAUTHORITY=/run/gdm/auth-for-mael-OyrQEw/database
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/3445,unix/unix:/tmp/.ICE-unix/3445
SHLVL=2
TERMINATOR_UUID=urn:uuid:92d368ab-7ef1-446a-8d38-d370506b6d58
HISTSIZE=1000
WINDOWID=35651588
IMSETTINGS_INTEGRATE_DESKTOP=yes
GIO_LAUNCHED_DESKTOP_FILE_PID=4383
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
USERNAME=mael
IMSETTINGS_MODULE=X compose table
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/terminator.desktop
XDG_RUNTIME_DIR=/run/user/1000
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GDMSESSION=gnome-classic
XMODIFIERS=@im=ibus
GNOME_SHELL_SESSION_MODE=classic
MAIL=/var/spool/mail/mael
XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME
XDG_SESSION_ID=1
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-2iBVU2QQ1B,guid=1618364b5a55f8cf9fcac11359476e2f
_=/usr/bin/sepolicy
DESKTOP_SESSION=gnome-classic
DISPLAY=:0
OLDPWD=/home/mael
HOSTNAME=pequod
GDM_LANG=ru_RU.UTF-8
HISTCONTROL=ignoredups
PWD=/home/mael/refpolicy
COLORTERM=gnome-terminal
XDG_MENU_PREFIX=gnome-
XDG_SESSION_DESKTOP=gnome-classic
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
XDG_SEAT=seat0
environ (3,165 bytes)
machineid (135 bytes)
systemd=055adb05098740528dc7381b4e9cc95a
sosreport_uploader-dmidecode=cbdd2440abfa6f7b1a2e7ff45f15a2f252c56ed86b17504ce2d56b48e01fdc5e
machineid (135 bytes)

Issue History

Date Modified Username Field Change
2017-06-19 13:52 Anton New Issue
2017-06-19 13:52 Anton File Added: backtrace
2017-06-19 13:52 Anton File Added: environ
2017-06-19 13:52 Anton File Added: machineid