strace results yeild: sigaltstack({ss_sp=0xece3c512d10, ss_flags=0, ss_size=8192}, {ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}) = 0 getcwd("/home/user", 1024) = 11 stat("/home/user", {st_mode=S_IFDIR|0700, st_size=220, ...}) = 0 stat("/home/user", {st_mode=S_IFDIR|0700, st_size=220, ...}) = 0 stat("/home/user", {st_mode=S_IFDIR|0700, st_size=220, ...}) = 0 open("/home/user", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 EACCES (Permission denied) stat("/usr/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/usr/lib/python3.6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 EACCES (Permission denied) stat("/usr/lib/python36.zip", 0x703348251f10) = -1 ENOENT (No such file or directory) stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=160, ...}) = 0 stat("/usr/lib/python36.zip", 0x703348251740) = -1 ENOENT (No such file or directory) stat("/usr/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/usr/lib/python3.6/lib-dynload", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 EACCES (Permission denied) write(2, "Fatal Python error: Py_Initializ"..., 69Fatal Python error: Py_Initialize: Unable to get the locale encoding ) = 69 write(2, "ModuleNotFoundError", 19ModuleNotFoundError) = 19 write(2, ": ", 2: ) = 2 write(2, "No module named 'encodings'", 27No module named 'encodings') = 27 write(2, "\n", 1 ) = 1 write(2, "\n", 1 ) = 1 write(2, "Current thread 0x", 17Current thread 0x) = 17 write(2, "00006794689e3540", 1600006794689e3540) = 16 write(2, " (most recent call first):\n", 27 (most recent call first): ) = 27 sigaltstack(NULL, {ss_sp=0xece3c512d10, ss_flags=0, ss_size=8192}) = 0 sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}, NULL) = 0 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0 getpid() = 1386 gettid() = 1386 tgkill(1386, 1386, SIGABRT) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=1386, si_uid=1000} --- +++ killed by SIGABRT (core dumped) +++
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1757256 Title: Apparmor profile gajim Status in apparmor package in Ubuntu: New Bug description: Followed this guide: https://gitlab.com/apparmor/apparmor/wi … with_tools and saved usr.bin.gajim after scanning. After I restart machine and run Gajim from terminal I get: Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x00006a383a1d5540 (most recent call first): Aborted (core dumped) If I delete the profile and restart machine it runs (to confirm it is profile causing). This is my current profile # vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2015-2018 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ #include <tunables/global> /usr/bin/gajim { #include <abstractions/base> #include <abstractions/X> #include <abstractions/fonts> #include <abstractions/freedesktop.org> #include <abstractions/python> #include <abstractions/user-tmp> #include <abstractions/nameservice> #include <abstractions/openssl> #include <abstractions/dconf> /usr/bin/gajim mr, /usr/bin/ r, /usr/local/bin/ r, # Gajim plugins /usr/share/gajim/plugins/ r, /usr/share/gajim/plugins/** r, # Gajim home files owner @{HOME}/.config/gajim/ rw, owner @{HOME}/.config/gajim/** rw, owner @{HOME}/.local/share/gajim/ rw, owner @{HOME}/.local/share/gajim/** rwk, # User downloads owner @{HOME}/[dD]ownload{,s}/ r, owner @{HOME}/[dD]ownload{,s}/** rwl, owner @{HOME}/[dD]esktop/ r, owner @{HOME}/[dD]esktop/** rwl, # Cache owner /tmp/morfik_cache/.cache/gajim/ rwk, owner /tmp/morfik_cache/.cache/gajim/** rwk, owner @{HOME}/.cache/gajim/ rwk, owner @{HOME}/.cache/gajim/** rwk, # Deny access to webcam and mic deny /dev/video0 rw, deny /dev/v4l/by-path/ r, deny /dev/snd/pcmC0D0c rw, owner @{PROC}/@{pid}/mounts r, owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/mountinfo r, # External apps /usr/lib/firefox/firefox rPUx, /usr/bin/gpg rPUx, /usr/share/glib-2.0/schemas/gschemas.compiled r, owner /{,var/}run/user/[0-9]*/dconf/user rw, # Silencer deny /usr/lib/python3/dist-packages/** w, deny /usr/share/gajim/plugins/** w, deny @{HOME}/ r, # Sounds /usr/bin/aplay Cx -> audio, /usr/bin/pacat Cx -> audio, profile audio { #include <abstractions/base> #include <abstractions/audio> /usr/bin/aplay mr, /usr/bin/pacat mr, owner @{HOME}/.Xauthority r, /etc/machine-id r, /var/lib/dbus/machine-id r, } /sbin/ldconfig Cx -> ldconfig, profile ldconfig { #include <abstractions/base> /sbin/ldconfig mr, } /bin/dash Cx -> dash, profile dash { #include <abstractions/base> /bin/dash mr, /bin/uname rix, /usr/bin/gpg rPUx, } } To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1757256/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp