Bug 279434 - Plasma desktop can not start up in Zh_CN locale
Summary: Plasma desktop can not start up in Zh_CN locale
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-clock (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 10:19 UTC by Chao Feng
Modified: 2011-10-29 12:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chao Feng 2011-08-05 10:19:54 UTC
Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

When login from kdm, it stop at the splash screen. top shows plasma-desktop is using 100% CPU.

Reproducible: Didn't try

Steps to Reproduce:
1. set locale to Zh_CN.UTF-8
2. start plasma-desktop.

Actual Results:  
plasma-desktop can not start up. Using 100% CPU

Expected Results:  
plasma-desktop start up.

When setting Locale to C by
$ export LC_ALL="C"

plasma-desktop can start up normally.
Comment 1 Chao Feng 2011-08-05 10:22:08 UTC
Here is the backtrace. Sorry I did not install debug symbo.
Seems it hang in strcmp called by KLocale::translateQt.


#0  0x00007fc3213cbe10 in strcmp () from /lib/libc.so.6
#1  0x00007fc321382ca9 in ?? () from /lib/libc.so.6
#2  0x00007fc3213809a5 in ?? () from /lib/libc.so.6
#3  0x00007fc3213802f6 in ?? () from /lib/libc.so.6
#4  0x00007fc31ecf170d in ?? () from /usr/lib/libkdecore.so.5
#5  0x00007fc31ecf299c in ?? () from /usr/lib/libkdecore.so.5
#6  0x00007fc31ed0803c in ?? ()#0  0x00007fc3213cbe10 in strcmp () from /lib/libc.so.6
#1  0x00007fc321382ca9 in ?? () from /lib/libc.so.6
#2  0x00007fc3213809a5 in ?? () from /lib/libc.so.6
#3  0x00007fc3213802f6 in ?? () from /lib/libc.so.6
#4  0x00007fc31ecf170d in ?? () from /usr/lib/libkdecore.so.5
#5  0x00007fc31ecf299c in ?? () from /usr/lib/libkdecore.so.5
#6  0x00007fc31ed0803c in ?? () from /usr/lib/libkdecore.so.5
#7  0x00007fc31ed050a8 in ?? () from /usr/lib/libkdecore.so.5
#8  0x00007fc31ecfeb71 in KLocale::translateQt(char const*, char const*, char const*) const ()
   from /usr/lib/libkdecore.so.5
#9  0x00007fc31ec80f7c in ?? () from /usr/lib/libkdecore.so.5
#10 0x00007fc31e59b53c in QTranslator::translate(char const*, char const*, char const*, int) const ()
   from /usr/lib/libQtCore.so.4
#11 0x00007fc31e57f21e in QCoreApplication::translate(char const*, char const*, char const*, QCoreApplication::Encoding, int) () from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#12 0x00007fc31e57f5ef in QCoreApplication::translate(char const*, char const*, char const*, QCoreApplication::Encoding) () from /usr/lib/libQtCore.so.4
#13 0x00007fc31d96481c in ?? () from /usr/lib/libQtGui.so.4
#14 0x00007fc31d969d9d in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007fc31d96b82f in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007fc31d96d742 in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007fc31d96dcf5 in QFontDatabase::loadXlfd(int, int, QFontDef const&, int) ()
   from /usr/lib/libQtGui.so.4
#18 0x00007fc31da17acd in ?? () from /usr/lib/libQtGui.so.4
#19 0x00007fc31da19b30 in ?? () from /usr/lib/libQtGui.so.4
#20 0x00007fc31d96e468 in QFontDatabase::loadXlfd(int, int, QFontDef const&, int) ()
   from /usr/lib/libQtGui.so.4
#21 0x00007fc31d96faea in QFontDatabase::load(QFontPrivate const*, int) ()
   from /usr/lib/libQtGui.so.4
#22 0x00007fc31d94e085 in QFontPrivate::engineForScript(int) const () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#23 0x00007fc31d96295e in QFontMetricsF::leading() const () from /usr/lib/libQtGui.so.4
#24 0x00007fc31d887cb5 in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007fc31d888601 in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007fc31d96219f in QFontMetrics::boundingRect(QRect const&, int, QString const&, int, int*) const () from /usr/lib/libQtGui.so.4
#27 0x00007fc2fcf68c60 in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#28 0x00007fc2fcf695cc in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#29 0x00007fc2fcf6be25 in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#30 0x00007fc2fcd443e7 in ClockApplet::configChanged() () from /usr/lib/libplasmaclock.so.4
#31 0x00007fc2fcd3e822 in ClockApplet::init() () from /usr/lib/libplasmaclock.so.4
#32 0x00007fc2fcf681b0 in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#33 0x00007fc320f3f8c6 in Plasma::Containment::addApplet(Plasma::Applet*, QPointF const&, bool) ()
   from /usr/lib/libplasma.so.3
#34 0x00007fc320f3fa85 in ?? () from /usr/lib/libplasma.so.3
#35 0x00007fc32009cf97 in WorkspaceScripting::Containment::addWidget(QScriptContext*, QScriptEngine*)
---Type <return> to continue, or q <return> to quit---
    () from /usr/lib/libplasmagenericshell.so.4
#36 0x00007fc31b92ab05 in ?? () from /usr/lib/libQtScript.so.4
#37 0x00007fc31b842bf0 in ?? () from /usr/lib/libQtScript.so.4
#38 0x00007fc31b8198b6 in ?? () from /usr/lib/libQtScript.so.4
#39 0x00007fc321ba2c0e in ?? ()
#40 0x0000000000000000 in ?? () from /usr/lib/libkdecore.so.5
#7  0x00007fc31ed050a8 in ?? () from /usr/lib/libkdecore.so.5
#8  0x00007fc31ecfeb71 in KLocale::translateQt(char const*, char const*, char const*) const ()
   from /usr/lib/libkdecore.so.5
#9  0x00007fc31ec80f7c in ?? () from /usr/lib/libkdecore.so.5
#10 0x00007fc31e59b53c in QTranslator::translate(char const*, char const*, char const*, int) const ()
   from /usr/lib/libQtCore.so.4
#11 0x00007fc31e57f21e in QCoreApplication::translate(char const*, char const*, char const*, QCoreApplication::Encoding, int) () from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#12 0x00007fc31e57f5ef in QCoreApplication::translate(char const*, char const*, char const*, QCoreApplication::Encoding) () from /usr/lib/libQtCore.so.4
#13 0x00007fc31d96481c in ?? () from /usr/lib/libQtGui.so.4
#14 0x00007fc31d969d9d in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007fc31d96b82f in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007fc31d96d742 in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007fc31d96dcf5 in QFontDatabase::loadXlfd(int, int, QFontDef const&, int) ()
   from /usr/lib/libQtGui.so.4
#18 0x00007fc31da17acd in ?? () from /usr/lib/libQtGui.so.4
#19 0x00007fc31da19b30 in ?? () from /usr/lib/libQtGui.so.4
#20 0x00007fc31d96e468 in QFontDatabase::loadXlfd(int, int, QFontDef const&, int) ()
   from /usr/lib/libQtGui.so.4
#21 0x00007fc31d96faea in QFontDatabase::load(QFontPrivate const*, int) ()
   from /usr/lib/libQtGui.so.4
#22 0x00007fc31d94e085 in QFontPrivate::engineForScript(int) const () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#23 0x00007fc31d96295e in QFontMetricsF::leading() const () from /usr/lib/libQtGui.so.4
#24 0x00007fc31d887cb5 in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007fc31d888601 in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007fc31d96219f in QFontMetrics::boundingRect(QRect const&, int, QString const&, int, int*) const () from /usr/lib/libQtGui.so.4
#27 0x00007fc2fcf68c60 in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#28 0x00007fc2fcf695cc in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#29 0x00007fc2fcf6be25 in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#30 0x00007fc2fcd443e7 in ClockApplet::configChanged() () from /usr/lib/libplasmaclock.so.4
#31 0x00007fc2fcd3e822 in ClockApplet::init() () from /usr/lib/libplasmaclock.so.4
#32 0x00007fc2fcf681b0 in ?? () from /usr/lib/kde4/plasma_applet_dig_clock.so
#33 0x00007fc320f3f8c6 in Plasma::Containment::addApplet(Plasma::Applet*, QPointF const&, bool) ()
   from /usr/lib/libplasma.so.3
#34 0x00007fc320f3fa85 in ?? () from /usr/lib/libplasma.so.3
#35 0x00007fc32009cf97 in WorkspaceScripting::Containment::addWidget(QScriptContext*, QScriptEngine*)
---Type <return> to continue, or q <return> to quit---
    () from /usr/lib/libplasmagenericshell.so.4
#36 0x00007fc31b92ab05 in ?? () from /usr/lib/libQtScript.so.4
#37 0x00007fc31b842bf0 in ?? () from /usr/lib/libQtScript.so.4
#38 0x00007fc31b8198b6 in ?? () from /usr/lib/libQtScript.so.4
#39 0x00007fc321ba2c0e in ?? ()
#40 0x0000000000000000 in ?? ()
Comment 2 Chao Feng 2011-10-29 12:48:13 UTC
After some system library upgrade. This bug is fixed.

Arch Linux, KDE 4.7.2  QT 4.8