After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641373 - [region] Crash on regions panel init - iso_639_3 code language code
[region] Crash on regions panel init - iso_639_3 code language code
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Other Preferences
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-03 17:07 UTC by Yanko Kaneti
Modified: 2011-02-03 19:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Quick and dirty workaround (1.05 KB, patch)
2011-02-03 17:35 UTC, Yanko Kaneti
none Details | Review
hne locales (41.32 KB, application/x-bzip)
2011-02-03 18:25 UTC, Bastien Nocera
  Details
Avoid using locales without language names. (1.22 KB, patch)
2011-02-03 18:38 UTC, Yanko Kaneti
committed Details | Review

Description Yanko Kaneti 2011-02-03 17:07:30 UTC
Program received signal SIGSEGV, Segmentation fault.
__strcmp_sse2 () at ../sysdeps/x86_64/strcmp.S:214
214		movlpd	(%rsi), %xmm2
(gdb) bt
  • #0 __strcmp_sse2
    at ../sysdeps/x86_64/strcmp.S line 214
  • #1 cc_common_language_sort_languages
    at cc-common-language.c line 83
  • #2 gtk_list_store_compare_func
    at gtkliststore.c line 1805
  • #3 iter_is_sorted
    at gtkliststore.c line 1853
  • #4 gtk_list_store_sort_iter_changed
    at gtkliststore.c line 1880
  • #5 gtk_list_store_set_valist
    at gtkliststore.c line 990
  • #6 gtk_list_store_set
    at gtkliststore.c line 1026
  • #7 cc_common_language_add_available_languages
    at cc-common-language.c line 211
  • #8 finish_language_setup
    at gnome-region-panel-lang.c line 228

the language name at the point of the crash is hne_IN.utf8 which can be found in the locale archive but read from the corresponging is_639_3 iso-codes file
Comment 1 Yanko Kaneti 2011-02-03 17:35:09 UTC
Created attachment 180001 [details] [review]
Quick and dirty workaround
Comment 2 Bastien Nocera 2011-02-03 18:25:00 UTC
Created attachment 180010 [details]
hne locales

Put the hne/ subdirectory in $(datadir)/locale/ to reproduce.

I had to install this so that the language doesn't get ignored because of the lack of translations.
Comment 3 Yanko Kaneti 2011-02-03 18:38:49 UTC
Created attachment 180013 [details] [review]
Avoid using locales without language names.

Quick and dirty fix for not using all the iso-codes resources for
finding a suitable language name for a locale.
Comment 4 Bastien Nocera 2011-02-03 19:22:12 UTC
I also committed a separate patch to make it handle iso-639-3 locale names.