GNOME intial setup segfaults, possibly due to locale related problems
OS: Arch Linux 64-bits
gnome-initial-setup 3.34.0-1
So, this one I don't have a clear way to reproduce. However I think this is the third time I had this issue since upgrading to GNOME 3.34.
First of all, my user was manually configured, however I still decided to have gnome-initial-setup installed.
The problem seem to occur at random, so I'm unable to give steps to reproduce.
I do have this stack trace:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/gnome-initial-setup --existing-user'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f3d732df162 in __strcmp_avx2 () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f3d67678c00 (LWP 1703))]
(gdb) bt
#0 0x00007f3d732df162 in __strcmp_avx2 () at /usr/lib/libc.so.6
#1 0x00007f3d72d6032c in g_sequence_iter_get_sequence (iter=<optimized out>) at ../glib/glib/gsequence.c:1185
#2 0x00007f3d72d6032c in g_sequence_iter_get_sequence (iter=<optimized out>) at ../glib/glib/gsequence.c:1181
#3 0x00007f3d5c07eef0 in ()
#4 0x00007f3d5c07eef0 in ()
#5 0x00007f3d72d603f0 in find_root (node=0x5591e2a74fc8) at ../glib/glib/gsequence.c:1719
#6 0x00007f3d72d603f0 in node_get_by_pos (pos=0, node=<optimized out>) at ../glib/glib/gsequence.c:1719
#7 0x00007f3d72d603f0 in g_sequence_range_get_midpoint (end=<optimized out>, begin=<optimized out>) at ../glib/glib/gsequence.c:399
#8 0x00007f3d72d603f0 in g_sequence_range_get_midpoint (begin=<optimized out>, end=0x0) at ../glib/glib/gsequence.c:383
#9 0x00007f3d72d62abf in () at ../glib/glib/gsequence.c:1149
#10 0x00005591e328af80 in ()
#11 0x00005591e32caae0 in ()
#12 0x00007f3d5c07eef0 in ()
#13 0x00007f3d72d638f6 in g_scanner_unexp_token
(scanner=0x7f3d5c07eef0, expected_token=2446817728, identifier_spec=0x7ffe91d77c20 "\030", symbol_spec=<optimized out>, symbol_name=<optimized out>, message=0x7f3d5c080610 "\001", is_error=-483867856)
at ../glib/glib/gscanner.c:1585
#14 0x00005591e30bd4d0 in ()
#15 0x00005591e328c330 in ()
#16 0x00007f3d727cb9e5 in gtk_list_box_insert () at /usr/lib/libgtk-3.so.0
#17 0x00007f3d72e6b7b0 in g_object_run_dispose (object=0x5591e325c0e0) at ../glib/gobject/gobject.c:1132
#18 0x0000003000000020 in ()
#19 0x00007ffe91d77d00 in ()
#20 0x00007ffe91d77c40 in ()
#21 0x53b4ec2c72e0e400 in ()
#22 0x00005591e2af20d0 in ()
#23 0x00007ffe91d77b20 in ()
#24 0x00007ffe91d77c10 in ()
#25 0x00005591e2b0d210 in ()
#26 0x00005591e2b071f0 in ()
#27 0x00007f3d72e5bb4a in _g_closure_invoke_va
(param_types=0x894d5d5bd8894908, n_params=<optimized out>, args=0x5591e30bd4d0, instance=0x13c0f158d480001, return_value=0x8d4800000010be00, closure=0x5591e328c330) at ../glib/gobject/gclosure.c:858
#28 0x00007f3d72e5bb4a in g_signal_emit_valist (instance=0x13c0f158d480001, signal_id=<optimized out>, detail=<optimized out>, var_args=<optimized out>) at ../glib/gobject/gsignal.c:3306
#29 0x4800012739158d48 in ()
#30 0x8d480001588a358d in ()
#31 0x25ff5d0000c8573d in ()
#32 0x0f2e666600027444 in ()
#33 0x900000000000841f in ()
#34 0x495441d589495541 in ()
#35 0x48c3894c5355fc89 in ()
#36 0x25048b486428ec83 in ()
#37 0x2444894800000028 in ()
#38 0x8b016ffac5c03118 in ()
#39 0x8b48240411f8c501 in ()
#40 0x8310244c89481049 in ()
#41 0xc083c28974772ff8 in ()
#42 0x48ca014824048908 in ()
#43 0x480c74ed85482a8b in ()
#44 0xfffff408e867ef89 in ()
#45 0x4924048b49c58948 in ()
#46 0x000000a91024548b in ()
#47 0x8949e8894c097420 in ()
I also have these on my logs:
out 02 21:11:32 delart gnome-initial-s[1703]: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed
out 02 21:11:32 delart gnome-initial-s[1703]: Failed to create locale zh_CN.UTF-8: No such file or directory
out 02 21:11:32 delart gnome-initial-s[1703]: Failed to create locale fr_FR.UTF-8: No such file or directory
out 02 21:11:32 delart gnome-initial-s[1703]: Failed to create locale ru_RU.UTF-8: No such file or directory
out 02 21:11:32 delart gnome-initial-s[1703]: Failed to create locale ar_EG.UTF-8: No such file or directory
out 02 21:11:32 delart gnome-initial-s[1703]: Failed to create locale es_ES.UTF-8: No such file or directory
The logs led me to believe it is related to the locales, for which I have enabled only the ones that interest me.
Or it might be the problem in the strcmp method we can see on the backtrace.