Xfce4 4.16.1 applications throwing segmentation faults and desktop crashing on login

I have a new stable Manjaro installation (two weeks old max), with very minimal customisation (themes and icons).

The other day it started with an error about the Whisker Menu “leaving the panel unexpectedly.” I ignored it and assumed it would fix itself upon a reboot. Then on reboot the xfce4-panel wouldn’t work, and neither would the applications menu or the desktop settings. When I ran them from terminal they would throw segmentation faults (core dumped).

I tried deleting the ~/.config/xfce4 directory so that it reset to defaults and I tried rebuilding the entire xfce4 suite from source with debugging on but I keep getting the same errors.

Last reboot, to which the following journal pertains, the entire desktop environment crashed.

Package versions
xfce4 - 4.16.1
glib2 - 2.72.1
gtk3 - 3.24.34

Journal: sudo journalctl | grep xfce

Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: Configuration file /home/archer/.config/autostart/xfce-panel-workaround.desktop is marked executable. Please remove executable permission bits. Proceeding anyway.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: Configuration file /home/archer/.config/autostart/xfce-pbw.sh is marked executable. Please remove executable permission bits. Proceeding anyway.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: /home/archer/.config/autostart/xfce-pbw.sh:2: Assignment outside of section. Ignoring.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: /home/archer/.config/autostart/xfce-pbw.sh:3: Assignment outside of section. Ignoring.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: /home/archer/.config/autostart/xfce-pbw.sh:4: Assignment outside of section. Ignoring.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: /home/archer/.config/autostart/xfce-pbw.sh:5: Assignment outside of section. Ignoring.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: /home/archer/.config/autostart/xfce-pbw.sh:6: Assignment outside of section. Ignoring.
Jun 04 07:46:23 fabserver systemd-xdg-autostart-generator[1238]: /home/archer/.config/autostart/xfce-pbw.sh:7: Assignment outside of section. Ignoring.
Jun 04 08:23:04 fabserver dbus-daemon[2003]: [session uid=1000 pid=2003] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.2' (uid=1000 pid=1995 comm="xfce4-session")
Jun 04 08:23:04 fabserver dbus-daemon[2003]: [session uid=1000 pid=2003] Activating service name='org.xfce.Xfconf' requested by ':1.4' (uid=1000 pid=1995 comm="xfce4-session")
Jun 04 08:23:05 fabserver dbus-daemon[2003]: [session uid=1000 pid=2003] Successfully activated service 'org.xfce.Xfconf'
Jun 04 08:23:05 fabserver at-spi-bus-launcher[2011]: dbus-daemon[2011]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=1995 comm="xfce4-session")
                                                  Module libxfce4util.so.7 with build-id ba971c11e3ea9549f5e8b21aa74e3efe2e65f360
                                                  Module libxfce4ui-2.so.0 with build-id 1c098efdce08ec728fb1b44b79d55654892fc57a
                                                  Module libxfce4kbd-private-3.so.0 with build-id 7e7a668342a55f5bb20d5705eb06334a1ee6ad74
                                                  #2  0x00007f1be3bc1d66 xfce_shortcuts_provider_property_changed (libxfce4kbd-private-3.so.0 + 0x5d66)
                                                  #14 0x00007f1be3bc2206 _xfce_shortcuts_provider_clone_default (libxfce4kbd-private-3.so.0 + 0x6206)
                                                  #16 0x00007f1be3bc26a7 xfce_shortcuts_provider_clone_defaults (libxfce4kbd-private-3.so.0 + 0x66a7)
                                                  Module libxfce4util.so.7 with build-id ba971c11e3ea9549f5e8b21aa74e3efe2e65f360
                                                  Module libxfce4ui-2.so.0 with build-id 1c098efdce08ec728fb1b44b79d55654892fc57a
                                                  Module libxfce4kbd-private-3.so.0 with build-id 7e7a668342a55f5bb20d5705eb06334a1ee6ad74
                                                  #2  0x00007f8c652bed66 xfce_shortcuts_provider_property_changed (libxfce4kbd-private-3.so.0 + 0x5d66)
                                                  #14 0x00007f8c652bf206 _xfce_shortcuts_provider_clone_default (libxfce4kbd-private-3.so.0 + 0x6206)
                                                  #16 0x00007f8c652bf6a7 xfce_shortcuts_provider_clone_defaults (libxfce4kbd-private-3.so.0 + 0x66a7)
                                                  #20 0x000056080dda27fd xfce_keyboard_shortcuts_helper_init (xfsettingsd + 0xc7fd)
Jun 04 08:23:15 fabserver audit[2073]: ANOM_ABEND auid=1000 uid=1000 gid=1001 ses=5 subj==unconfined pid=2073 comm="xfce4-panel" exe="/usr/bin/xfce4-panel" sig=11 res=1
Jun 04 08:23:15 fabserver kernel: xfce4-panel[2073]: segfault at 7f08c3919000 ip 00007f08c6efa853 sp 00007fffbff3bcb0 error 4 in libc.so.6[7f08c6e5e000+17a000]
Jun 04 08:23:15 fabserver kernel: audit: type=1701 audit(1654302195.342:162): auid=1000 uid=1000 gid=1001 ses=5 subj==unconfined pid=2073 comm="xfce4-panel" exe="/usr/bin/xfce4-panel" sig=11 res=1
Jun 04 08:23:15 fabserver systemd-coredump[2097]: Process 2073 (xfce4-panel) of user 1000 dumped core.
                                                  Module libxfce4util.so.7 with build-id ba971c11e3ea9549f5e8b21aa74e3efe2e65f360
                                                  Module libxfce4ui-2.so.0 with build-id 1c098efdce08ec728fb1b44b79d55654892fc57a
                                                  Module libxfce4panel-2.0.so.4 with build-id 226c8241d266c51d262ad191dcdda1802d2d57e5
                                                  Module xfce4-panel with build-id 37088b4578e4fbf90b80173fbef09a2f47db83ea
                                                  #20 0x000055bd98ad9c0a panel_itembar_insert (xfce4-panel + 0x23c0a)
                                                  #21 0x000055bd98acf7f7 panel_application_plugin_insert (xfce4-panel + 0x197f7)
                                                  #22 0x000055bd98ad0d5c panel_application_load_real (xfce4-panel + 0x1ad5c)
                                                  #30 0x000055bd98acae93 main (xfce4-panel + 0x14e93)
                                                  #33 0x000055bd98acb3f5 _start (xfce4-panel + 0x153f5)
Jun 04 08:23:15 fabserver dbus-daemon[915]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.27' (uid=1000 pid=2083 comm="/usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/pa")
Jun 04 08:23:21 fabserver audit[2102]: ANOM_ABEND auid=1000 uid=1000 gid=1001 ses=5 subj==unconfined pid=2102 comm="xfce4-panel" exe="/usr/bin/xfce4-panel" sig=11 res=1
Jun 04 08:23:21 fabserver kernel: xfce4-panel[2102]: segfault at 7f4d58d1d000 ip 00007f4d5c2fe853 sp 00007fff3e7a0a50 error 4 in libc.so.6[7f4d5c262000+17a000]
Jun 04 08:23:21 fabserver kernel: audit: type=1701 audit(1654302201.149:175): auid=1000 uid=1000 gid=1001 ses=5 subj==unconfined pid=2102 comm="xfce4-panel" exe="/usr/bin/xfce4-panel" sig=11 res=1
Jun 04 08:23:21 fabserver systemd-coredump[2148]: Process 2102 (xfce4-panel) of user 1000 dumped core.
                                                  Module libxfce4util.so.7 with build-id ba971c11e3ea9549f5e8b21aa74e3efe2e65f360
                                                  Module libxfce4ui-2.so.0 with build-id 1c098efdce08ec728fb1b44b79d55654892fc57a
                                                  Module libxfce4panel-2.0.so.4 with build-id 226c8241d266c51d262ad191dcdda1802d2d57e5
                                                  Module xfce4-panel with build-id 37088b4578e4fbf90b80173fbef09a2f47db83ea
                                                  #20 0x0000558e74d0fc0a panel_itembar_insert (xfce4-panel + 0x23c0a)
                                                  #21 0x0000558e74d057f7 panel_application_plugin_insert (xfce4-panel + 0x197f7)
                                                  #22 0x0000558e74d06d5c panel_application_load_real (xfce4-panel + 0x1ad5c)
                                                  #30 0x0000558e74d00e93 main (xfce4-panel + 0x14e93)
                                                  #33 0x0000558e74d013f5 _start (xfce4-panel + 0x153f5)
Jun 04 08:23:22 fabserver kernel: xfce4-session[1995]: segfault at 0 ip 00007f3fda2da68e sp 00007ffcfc315f18 error 4 in libc.so.6[7f3fda253000+17a000]
Jun 04 08:23:22 fabserver kernel: audit: type=1701 audit(1654302201.499:181): auid=1000 uid=1000 gid=1001 ses=5 subj==unconfined pid=1995 comm="xfce4-session" exe="/usr/bin/xfce4-session" sig=11 res=1
Jun 04 08:23:21 fabserver audit[1995]: ANOM_ABEND auid=1000 uid=1000 gid=1001 ses=5 subj==unconfined pid=1995 comm="xfce4-session" exe="/usr/bin/xfce4-session" sig=11 res=1
Jun 04 08:23:22 fabserver systemd-coredump[2164]: Process 1995 (xfce4-session) of user 1000 dumped core.
                                                  Module libxfce4util.so.7 with build-id ba971c11e3ea9549f5e8b21aa74e3efe2e65f360
                                                  Module libxfce4ui-2.so.0 with build-id 1c098efdce08ec728fb1b44b79d55654892fc57a
                                                  Module xfce4-session with build-id b9614e19af9866c42ae5b8dd1bc435a1546798a1
                                                  #2  0x000055e5a77f0f9c xfsm_manager_get_pending_properties (xfce4-session + 0x23f9c)
                                                  #3  0x000055e5a77f3b99 xfsm_manager_register_client (xfce4-session + 0x26b99)
                                                  #4  0x000055e5a77e91a5 sm_register_client (xfce4-session + 0x1c1a5)
                                                  #7  0x000055e5a77e7a41 ice_process_messages (xfce4-session + 0x1aa41)
                                                  #12 0x000055e5a77e1496 main (xfce4-session + 0x14496)
                                                  #15 0x000055e5a77e16f5 _start (xfce4-session + 0x146f5)

When I try running the startxfce4 from tty I get this:

/sbin/startxfce4: Starting X server

/usr/lib/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
Current Operating System: Linux fabserver 5.15.41-1-MANJARO #1 SMP PREEMPT Wed May 18 09:20:01 UTC 2022 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64 root=UUID=97a83d63-ed46-4e93-aff3-e7490245eab3 rw quiet apparmor=1 security=apparmor udev.log_priority=3
 
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/archer/.local/share/xorg/Xorg.0.log", Time: Mon Jun  6 16:57:33 2022
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
gpg-agent: a gpg-agent is already running - not starting a new one
xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check.
xfce4-panel-Message: 16:57:41.089: Plugin "(null)-7" was not found and has been removed from the configuration

(wrapper-2.0:57513): xfce4-panel-wrapper-WARNING **: 16:57:41.928: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57525): xfce4-panel-wrapper-WARNING **: 16:57:41.928: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

** (wrapper-2.0:57515): WARNING **: 16:57:41.939: No outputs have backlight property

(wrapper-2.0:57514): xfce4-panel-wrapper-WARNING **: 16:57:41.940: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57516): xfce4-panel-wrapper-WARNING **: 16:57:41.944: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57514): xfce4-panel-wrapper-WARNING **: 16:57:42.038: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57514): xfce4-panel-wrapper-WARNING **: 16:57:42.039: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57516): GLib-GIO-CRITICAL **: 16:57:42.040: g_file_new_for_path: assertion 'path != NULL' failed

(wrapper-2.0:57516): GLib-GIO-CRITICAL **: 16:57:42.040: g_file_monitor_file: assertion 'G_IS_FILE (file)' failed

(wrapper-2.0:57516): GLib-GObject-WARNING **: 16:57:42.040: invalid (NULL) pointer instance

(wrapper-2.0:57516): GLib-GObject-CRITICAL **: 16:57:42.040: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(wrapper-2.0:57516): Gtk-WARNING **: 16:57:42.040: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.

(wrapper-2.0:57516): xfce4-panel-wrapper-WARNING **: 16:57:42.041: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57516): xfce4-panel-wrapper-WARNING **: 16:57:42.042: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57515): xfce4-panel-wrapper-WARNING **: 16:57:42.050: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57515): xfce4-panel-wrapper-WARNING **: 16:57:42.050: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files

(wrapper-2.0:57514): libnotify-WARNING **: 16:57:42.052: Failed to connect to proxy

(wrapper-2.0:57515): xfce4-panel-wrapper-WARNING **: 16:57:42.069: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.126 was not provided by any .service files
xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check.
xfce4-panel-Message: 16:57:47.283: Plugin "(null)-7" was not found and has been removed from the configuration

(wrapper-2.0:57559): xfce4-panel-wrapper-WARNING **: 16:57:48.084: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57559): xfce4-panel-wrapper-WARNING **: 16:57:48.084: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57559): xfce4-panel-wrapper-WARNING **: 16:57:48.085: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57559): libnotify-WARNING **: 16:57:48.093: Failed to connect to proxy

(wrapper-2.0:57570): xfce4-panel-wrapper-WARNING **: 16:57:48.096: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57558): xfce4-panel-wrapper-WARNING **: 16:57:48.096: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

** (wrapper-2.0:57560): WARNING **: 16:57:48.097: No outputs have backlight property

(wrapper-2.0:57561): xfce4-panel-wrapper-WARNING **: 16:57:48.099: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57561): GLib-GIO-CRITICAL **: 16:57:48.101: g_file_new_for_path: assertion 'path != NULL' failed

(wrapper-2.0:57561): GLib-GIO-CRITICAL **: 16:57:48.101: g_file_monitor_file: assertion 'G_IS_FILE (file)' failed

(wrapper-2.0:57561): GLib-GObject-WARNING **: 16:57:48.101: invalid (NULL) pointer instance

(wrapper-2.0:57561): GLib-GObject-CRITICAL **: 16:57:48.101: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(wrapper-2.0:57561): Gtk-WARNING **: 16:57:48.101: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.

(wrapper-2.0:57561): xfce4-panel-wrapper-WARNING **: 16:57:48.101: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57561): xfce4-panel-wrapper-WARNING **: 16:57:48.102: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57560): xfce4-panel-wrapper-WARNING **: 16:57:48.106: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57560): xfce4-panel-wrapper-WARNING **: 16:57:48.107: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(wrapper-2.0:57560): xfce4-panel-wrapper-WARNING **: 16:57:48.122: ProviderSignal call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.138 was not provided by any .service files

(xfce4-panel:57579): libxfce4ui-WARNING **: 16:57:48.593: ICE I/O Error
xfce4-panel: Failed to connect to session manager: Failed to connect to the session manager: IO error occured opening connection
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

I don’t even know where to start. Do I try using the gnu debugger? Do I have to downgrade or rebuild a package?

Hi.
I think the answer is a the beginning of your return:

Configuration file /home/archer/.config/autostart/xfce-panel-workaround.desktop is marked executable. Please remove executable permission bits. Proceeding anyway.
Configuration file /home/archer/.config/autostart/xfce-pbw.sh is marked executable. Please remove executable permission bits. Proceeding anyway.

Right clic on each file → Permissions → Read only uncheck “allow this file to be executed”

Sorry I forgot to mention, I thought I had already done this.

chmod -x ~/.config/autostart/xfce-panel-workaround.desktop
chmod -x ~/.config/autostart/xfce-pbw.sh

It didn’t seem to resolve anything :confused: