Bug 255924 - Infite loop after creating new or opening a file due to empty /etc/X11/fs/config
Summary: Infite loop after creating new or opening a file due to empty /etc/X11/fs/config
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 23:07 UTC by hpa
Modified: 2010-11-03 22:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hpa 2010-11-02 23:07:30 UTC
Version:           4.5 (using KDE 4.4.5) 
OS:                Linux

kmymoney hangs after loading a file (the progress bar shows 100%) or creating a new file.
strace revealed that it is reading an empty config file, /etc/X11/fs/config over and over again.
On my gentoo system this file belongs to the package 
media-fonts/artwiz-fonts-2.4-r3
renaming/removing the file fixed the problem, putting a blank in it didn't.

Reproducible: Always

Steps to Reproduce:
maybe having an empty "/etc/X11/fs/config" file could be enough, though I don't know why this file gets opened anyway!

Actual Results:  
kmymoney hangs as described above

Expected Results:  
kmymoney should run

OS: Linux (i686) release 2.6.30.5
Compiler: i686-pc-linux-gnu-gcc 4.4.4 
file that caused trouble belonged to artwiz-fonts-2.4-r3
Comment 1 Thomas Baumgart 2010-11-03 07:52:43 UTC
The mentioned file is the configuration file of the X Window System font server.  It supplies fonts to X Window System display servers.

Having it not configured but in use is a local configuration problem but not a KMyMoney problem.
Comment 2 Thomas Baumgart 2010-11-03 14:35:47 UTC
It would be interesting to see, where the whole stack hangs. Start KMyMoney using gdb and interrupt it when it is in that loop. Use 'bt' to get a backtrace which you could attach to this message if you want.
Comment 3 hpa 2010-11-03 22:59:04 UTC
this is the backtrace:

#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7166e63 in __read_nocancel () from /lib/libpthread.so.0
#2  0xb6aefbba in ?? () from /usr/lib/qt4/libQtCore.so.4
#3  0xb6af87fa in ?? () from /usr/lib/qt4/libQtCore.so.4
#4  0xb6aeed65 in QFSFileEngine::read(char*, long long) () from /usr/lib/qt4/libQtCore.so.4
#5  0xb6aac61a in QFile::readData(char*, long long) () from /usr/lib/qt4/libQtCore.so.4
#6  0xb6ab3ce2 in QIODevice::read(char*, long long) () from /usr/lib/qt4/libQtCore.so.4
#7  0xb6ab4325 in QIODevice::readLineData(char*, long long) () from /usr/lib/qt4/libQtCore.so.4
#8  0xb6aac49d in QFile::readLineData(char*, long long) () from /usr/lib/qt4/libQtCore.so.4
#9  0xb6ab2526 in QIODevice::readLine(char*, long long) () from /usr/lib/qt4/libQtCore.so.4
#10 0xb6ab2dda in QIODevice::readLine(long long) () from /usr/lib/qt4/libQtCore.so.4
#11 0xb631958b in ?? () from /usr/lib/qt4/libQtGui.so.4
#12 0xb631b5ca in ?? () from /usr/lib/qt4/libQtGui.so.4
#13 0xb631c407 in ?? () from /usr/lib/qt4/libQtGui.so.4
#14 0xb6249346 in ?? () from /usr/lib/qt4/libQtGui.so.4
#15 0xb6a92f58 in ?? () from /usr/lib/qt4/libQtCore.so.4
#16 0xb6a93063 in ?? () from /usr/lib/qt4/libQtCore.so.4
#17 0xb6a98de5 in qHBNewFace(void*, HB_Error (*)(void*, unsigned int, unsigned char*, unsigned int*)) () from /usr/lib/qt4/libQtCore.so.4
#18 0xb624b272 in QFontEngine::harfbuzzFace() const () from /usr/lib/qt4/libQtGui.so.4
#19 0xb6280482 in QTextEngine::shapeTextWithHarfbuzz(int) const () from /usr/lib/qt4/libQtGui.so.4
#20 0xb6280ff2 in QTextEngine::shapeText(int) const () from /usr/lib/qt4/libQtGui.so.4
#21 0xb62814bb in QTextEngine::shape(int) const () from /usr/lib/qt4/libQtGui.so.4
#22 0xb62838f2 in QTextEngine::boundingBox(int, int) const () from /usr/lib/qt4/libQtGui.so.4
#23 0xb6259a69 in QFontMetricsF::boundingRect(QString const&) const () from /usr/lib/qt4/libQtGui.so.4
#24 0xb7e61837 in KDChart::TextLayoutItem::unrotatedSizeHint(QFont) const () from /usr/lib/libkmm_kdchart.so.4
#25 0xb7e636d3 in KDChart::TextLayoutItem::calcSizeHint(QFont, QPoint&, QPoint&, QPoint&, QPoint&) const () from /usr/lib/libkmm_kdchart.so.4
#26 0xb7e63d28 in KDChart::TextLayoutItem::sizeHintAndRotatedCorners(QPoint&, QPoint&, QPoint&, QPoint&) const () from /usr/lib/libkmm_kdchart.so.4
#27 0xb7e5edfa in KDChart::TextLayoutItem::sizeHint() const () from /usr/lib/libkmm_kdchart.so.4
#28 0xb7e60b6a in KDChart::TextLayoutItem::setText(QString const&) () from /usr/lib/libkmm_kdchart.so.4
#29 0x081a817b in _start ()