gnome-control-center segmentation fault
gnome-control-center 3.38.1
Opening gnome-control-center using "sudo -E" causes segfault with X11 forwarding (using both -X and -Y options in ssh). gnome-control-center will not open on subsequent trials giving the following error:
Error creating rfkill proxy: ??C?;V
free(): invalid pointer
Aborted
Steps to reproduce:
- SSH into server with X11 Forwarding
- "sudo -E gnome-control-center"
- Click around (I just click the gear on my wifi network)
- Segfault
Backtrace
█████@███████:~$ sudo -E gdb gnome-control-center
GNU gdb (Ubuntu 9.2-0ubuntu2) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gnome-control-center...
Reading symbols from /usr/lib/debug/.build-id/2d/4740b9f751a3e1666e1625a6326d3f718f49bd.debug...
(gdb) r
Starting program: /usr/bin/gnome-control-center
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe39dd640 (LWP 16030)]
[New Thread 0x7fffdbfff640 (LWP 16031)]
[New Thread 0x7fffe31dc640 (LWP 16032)]
[New Thread 0x7fffe29db640 (LWP 16033)]
[New Thread 0x7fffe21da640 (LWP 16034)]
[New Thread 0x7fffe19d9640 (LWP 16035)]
[New Thread 0x7fffe11d8640 (LWP 16036)]
[New Thread 0x7fffe09d7640 (LWP 16037)]
[New Thread 0x7fffdb7fe640 (LWP 16038)]
[New Thread 0x7fffdaffd640 (LWP 16039)]
[New Thread 0x7fffda7fc640 (LWP 16040)]
[New Thread 0x7fffd9ffb640 (LWP 16041)]
libGL error: No matching fbConfigs or visuals found
[Thread 0x7fffe09d7640 (LWP 16037) exited]
[Thread 0x7fffe11d8640 (LWP 16036) exited]
[Thread 0x7fffe19d9640 (LWP 16035) exited]
[Thread 0x7fffe21da640 (LWP 16034) exited]
[Thread 0x7fffe29db640 (LWP 16033) exited]
[Thread 0x7fffe31dc640 (LWP 16032) exited]
[Thread 0x7fffdbfff640 (LWP 16031) exited]
[Thread 0x7fffe39dd640 (LWP 16030) exited]
[Thread 0x7fffd9ffb640 (LWP 16041) exited]
[Thread 0x7fffda7fc640 (LWP 16040) exited]
[Thread 0x7fffdaffd640 (LWP 16039) exited]
[Thread 0x7fffdb7fe640 (LWP 16038) exited]
libGL error: failed to load driver: swrast
[New Thread 0x7fffd9ffb640 (LWP 16042)]
[New Thread 0x7fffda7fc640 (LWP 16043)]
(gnome-control-center:16026): IBUS-WARNING **: 11:26:36.968: The owner of /home/█████/.config/ibus/bus is not root!
[New Thread 0x7fffdaffd640 (LWP 16044)]
[New Thread 0x7fffdb7fe640 (LWP 16045)]
[New Thread 0x7fffe9b3a640 (LWP 16046)]
(gnome-control-center:16026): dconf-WARNING **: 11:26:37.060: failed to commit changes to dconf: The connection is closed
[Thread 0x7fffdaffd640 (LWP 16044) exited]
Error creating rfkill proxy: ??UUU
free(): invalid pointer
--Type <RET> for more, q to quit, c to continue without paging--
Thread 1 "gnome-control-c" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x00007ffff60cd864 in __GI_abort () at abort.c:79
#2 0x00007ffff6130af6 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7ffff6258128 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007ffff613946c in malloc_printerr (
str=str@entry=0x7ffff625630f "free(): invalid pointer") at malloc.c:5389
#4 0x00007ffff613ae84 in _int_free (av=<optimized out>, p=<optimized out>,
have_lock=0) at malloc.c:4201
#5 0x00007ffff7c76cd6 in g_error_free (error=0x555555efdc90)
at ../../../glib/gerror.c:498
#6 0x00005555556868ef in glib_autoptr_clear_GError (_ptr=<optimized out>)
at /usr/include/glib-2.0/glib/glib-autocleanups.h:52
#7 glib_autoptr_cleanup_GError (_ptr=0x7fffffffe190)
at /usr/include/glib-2.0/glib/glib-autocleanups.h:52
#8 rfkill_proxy_acquired_cb (source_object=<optimized out>,
res=<optimized out>, user_data=user_data@entry=0x555556254150)
at ../panels/network/cc-wifi-panel.c:773
#9 0x00007ffff7e7f619 in g_task_return_now (task=task@entry=0x5555562ea830)
at ../../../gio/gtask.c:1215
#10 0x00007ffff7e7f65d in complete_in_idle_cb (task=0x5555562ea830)
at ../../../gio/gtask.c:1229
#11 0x00007ffff7c8e3df in g_main_dispatch (context=0x555555abe440)
at ../../../glib/gmain.c:3325
--Type <RET> for more, q to quit, c to continue without paging--
#12 g_main_context_dispatch (context=0x555555abe440)
at ../../../glib/gmain.c:4016
#13 0x00007ffff7c8e788 in g_main_context_iterate (
context=context@entry=0x555555abe440, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>)
at ../../../glib/gmain.c:4092
#14 0x00007ffff7c8e853 in g_main_context_iteration (
context=context@entry=0x555555abe440, may_block=may_block@entry=1)
at ../../../glib/gmain.c:4157
#15 0x00007ffff7eae54d in g_application_run (application=0x555555cc9bd0,
argc=-7420, argv=<optimized out>) at ../../../gio/gapplication.c:2559
#16 0x00005555555b6d78 in main (argc=<optimized out>, argv=<optimized out>)
at ../shell/main.c:65
(gdb)
If it's obvious why this doesn't work feel free to delete/close. I also get the same behavior when running as root account.
Edited by MPOfficial