55b3d355 causes segfault at start with non-C locale
Darktable segfaults for me when my locale is set to something other than C. If I start darktable with LC_ALL=C it starts with no issues, but if I use another locale like my normal locale of sv_SE.UTF-8 I get (originally in swedish, translated to english by me):
ptrace: Operation not permitted /var/cache/pacman/pkg/31027: File or directory not found. backtrace written to /tmp/darktable_bt_UWYO4W.txt Segmentation fault (core dumped)
The backtrace written to /tmp only says no stack, so I ran gdb instead and got the following backtrace:
#0 0x00007ffff70b4b50 in g_markup_escape_text () from /usr/lib/libglib-2.0.so.0 #1 0x00007ffff6778d49 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #2 0x00007ffff6e2ee52 in g_object_set_valist () from /usr/lib/libgobject-2.0.so.0 #3 0x00007ffff6e2f6a7 in g_object_set () from /usr/lib/libgobject-2.0.so.0 #4 0x00007fff40265371 in gui_init () from /usr/lib/darktable/plugins/imageio/storage/libdisk.so #5 0x00007ffff79d228b in ?? () from /usr/bin/../lib/darktable/libdarktable.so #6 0x00007ffff79a5e7a in dt_init () from /usr/bin/../lib/darktable/libdarktable.so #7 0x000000000040082e in main ()
git bisect points to 55b3d355 as the cause. I'm running ArchLinux 64-bit with glib 2.38.0.