Bug 1218528 - gnome-control-center crashes when configuring region and language
Summary: gnome-control-center crashes when configuring region and language
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Alynx Zhou
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 23:52 UTC by dopice
Modified: 2024-06-26 21:01 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Journal log (23.71 KB, text/plain)
2024-01-03 23:52 UTC, dopice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dopice 2024-01-03 23:52:58 UTC
Created attachment 871651 [details]
Journal log

When configuring language or formats under region and language in gnome-control-center it crashes with Segmentation fault (core dumped). The journal output is attached.
Comment 1 Alynx Zhou 2024-01-04 01:29:35 UTC
Hi, I tried with latest Tumbleweed and I cannot reproduce your problem? Could you try again after upgrading your system? And please provide detailed steps to reproduce this, thanks.
Comment 2 Alynx Zhou 2024-01-04 01:30:28 UTC
OK, it turns out changing language is fine but changing format will make it crash, let me have a look.
Comment 3 Alynx Zhou 2024-01-04 02:07:22 UTC
I've have some ideas on why it crash and how to fix it, though I am still not sure why I cannot reproduce on my physical machine but only virtual machine, let me have a try.
Comment 4 Alynx Zhou 2024-01-04 03:09:26 UTC
The problem is the returned pointer of nl_langinfo could be invalid after switching locale, I've submitted fix to upstream:

https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2121
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2122 (For gnome-45)

Patch also sends to GNOME:Factory:

https://build.opensuse.org/request/show/1136674
Comment 5 dopice 2024-01-04 22:35:19 UTC
I was a sleep and you did all this! Amazing! Thank you very much!
Comment 6 Alynx Zhou 2024-01-05 00:05:34 UTC
Should in both upstream and factory now, let's close this.