Bug 211135 - [regression] GNOME3 and MATE hang with ko_KR.UTF-8 locale after r302324
Summary: [regression] GNOME3 and MATE hang with ko_KR.UTF-8 locale after r302324
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-BETA1
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-patch, needs-qa, regression
Depends on:
Blocks: 211179
  Show dependency treegraph
 
Reported: 2016-07-15 06:49 UTC by Jung-uk Kim
Modified: 2016-07-21 07:12 UTC (History)
2 users (show)

See Also:
jkim: mfc-stable11?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jung-uk Kim freebsd_committer freebsd_triage 2016-07-15 06:49:04 UTC
I have a serious regression with ko_KR.UTF-8 locale after r302324.  MATE is unusable because mate-panel is busy looping and eating 100% CPU.  GNOME 3 does not start at all, i.e., nothing but mouse cursor on black screen.  After reverting the commit, everything is back to normal.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2016-07-15 09:22:31 UTC
A simple ls will do it as well.

Can you confirm that this is the same regression as for zh_CN.UTF-8 aka reproducible with:

touch "<ACJKCHARACTER>1"
touch "<ACJKCHARACTER>2"
ls

Than ls will eat 100% CPU?
Comment 2 Jung-uk Kim freebsd_committer freebsd_triage 2016-07-15 13:56:17 UTC
(In reply to Baptiste Daroussin from comment #1)
Yes, "touch 예1 예2 && ls" shows the same symptom.
Comment 3 Jung-uk Kim freebsd_committer freebsd_triage 2016-07-15 18:20:49 UTC
Note this problem is not just for CJK locales.  "touch Æon1 Æon2 && ls" with en_US.UTF-8 locale shows exactly same symptom.

https://lists.freebsd.org/pipermail/freebsd-stable/2016-July/084991.html
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2016-07-15 19:04:29 UTC
Can you try the following patch and tell me if it fixes the issue for you?

http://bapt.etoilebsd.net/collate.diff
Comment 5 Jung-uk Kim freebsd_committer freebsd_triage 2016-07-15 20:01:56 UTC
(In reply to Baptiste Daroussin from comment #4)
Both GNOME 3 and MATE are working as advertised.  Thanks!
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-07-15 23:03:48 UTC
A commit references this bug:

Author: bapt
Date: Fri Jul 15 23:03:20 UTC 2016
New revision: 302916
URL: https://svnweb.freebsd.org/changeset/base/302916

Log:
  Revert 302324 and properly fix the crash with ISO-8859-5 locales

  PR:		211135
  Reported by:	jkim
  Tested by:	jkim
  MFC after:	2 days

Changes:
  head/lib/libc/locale/collate.c
Comment 7 commit-hook freebsd_committer freebsd_triage 2016-07-20 20:13:46 UTC
A commit references this bug:

Author: bapt
Date: Wed Jul 20 20:12:58 UTC 2016
New revision: 303112
URL: https://svnweb.freebsd.org/changeset/base/303112

Log:
  MFC: r302916

  Revert 302324 and properly fix the crash with ISO-8859-5 locales

  PR:		211135
  Reported by:	jkim
  Tested by:	jkim
  Approved by:	re (gjb)

Changes:
  stable/11/lib/libc/locale/collate.c