Bug 128080

Summary: all x applications crashing
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Dennis Lubert <plasmahh>
Component: X11 ApplicationsAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Major    
Priority: P5 - None CC: coolo, paveladam
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: backtrace

Description Dennis Lubert 2005-10-13 14:03:36 UTC
Hi,

Im experiencing a very critical Problem with my current system. To always have 
latest suse people/project packages available Im using the gwdg.de apt 
repository of SuSE 10. Today some upgrades came in:

xorg-x11 (+lib,+server)s 6.8.2-100 => 6.8.2-100.2 (update)
fontconfig (+devel) 2.3.91.20051007-0.1 => 2.3.91.20051012-0.1 (suse-projects)

which I think are the root cause of the problem. All apps that are using 
fontconfig are now crashing, probably all somewhere in or near FcCharSetCopy. 
This means I cannot really run any other X application that xterm... KDE/gnome 
etc. are all crashing. I really need quick help. Downgrading is unfortunately 
not possible since the packages are not on the ftp anymore and I havent cached 
them somewhere.
I need quick help, need to work on something... need any more information ?
Comment 1 Mike Fabian 2005-10-13 14:58:36 UTC
Thank you, I already noticed that as well and will try to fix it as
soon as possible.

As a temporary workaround for you, please run:

    fc-cache -f -v

as root. This will make the problem go away.

But of course fontconfig should not crash just because there is
something wrong with the fonts.cache-2 files.


Comment 2 Mike Fabian 2005-10-13 15:01:38 UTC
I'm trying now to find a procedure how to reproduce that bug.  Until
now I only know that it happens "sometimes" and goes away when all
fonts.cache-2 files are forced to be recreated.

Comment 3 Dennis Lubert 2005-10-13 15:33:43 UTC
Yes, running fc-cache lets me run my X and all apps again. So now that this is
known, I think the Bug is only Major ;) If you need some info to further resolve
the bug, as long as it does not trash my system again... :)
Comment 4 Mike Fabian 2005-10-13 16:47:45 UTC
I am very interested in an exact procedure how to make this problem
occur.  It happened already a few times for me, but I don't know how I
triggered this bug. Currently I only know that it goes away by
recreating all fonts.cache-2 files.

Comment 5 Dennis Lubert 2005-10-21 14:03:05 UTC
Due to a filesystem corruption (never try to move or resize a reiserfs...) I lost parts of the data on my system, but now have recovered by simply installing all packages I had again. I installed the original, slightly older packages that had the error I reported in the first, and I got segfaults. Then I ran fc-cache and everything went fine. Now I simply removed the files, reinstalled the original rpm files again and got segfaults again. Did this 3 or 4 times, everytime it seems to be deterministic. delete the files, install rpm, segfault. maybe its reproducable the same way there.. ?
Comment 6 Stefan Dirsch 2005-10-21 16:49:12 UTC
Each time you install new fonts you need to run "fonts-config -f" again. The fontconfig cache system currently does not work reliable. :-(
Comment 7 Dennis Lubert 2005-10-21 21:30:50 UTC
I have noticed it too that installing some packages thrash the stuff again. Maybe there are for now two general workaround. Identifying the packages that install new fonts and run the fonts config program, or let it run in some suseconfig scripts that are usually run after install...
Comment 8 Mike Fabian 2005-10-24 13:53:57 UTC
Dennis> Identifying the packages that install new fonts and run the fonts
Dennis> config program, or let it run in some suseconfig scripts that are
Dennis> usually run after install

The packages which install new fonts already run the fonts-config program
by calling a SuSEconfig script.

But they don't use the option "-f" (--force). Using that option
forces recreation of all fonts.cache-2 files, which takes a lot of time.
Recreation of all these cache files avoids the bug, but I don't
want to add the "-f" option to the SuSEconfig script because it
make SuSEconfig very slow.

With the previous version of fontconfig (as distributed with SuSE
10.0), there were no such crashes even without uding the "-f" option.
Without the "-f" option, the cache files are only updated in
directories where new fonts have been installed, with the "-f" option
they are updated in all directories.

I still hope that we can find the real cause for the crashes.

By the way, I have updated the fontconfig packages again today, you
can get the new versions from ftp://ftp.suse.com/pub/projects/m17n/10.0
in a few hours.

Please test!

I doubt that the problem with the crashes is fixed because I am not
aware of any changes which could be relevant to the crashes.

And I still do not have an easy way to reproduce the problem.

Comment 9 Mike Fabian 2005-10-25 11:00:04 UTC
Currently I can reproce the crashes again, but only with Qt applications.

I'll attach a backtrace.
Comment 10 Mike Fabian 2005-10-25 11:03:55 UTC
Created attachment 55313 [details]
backtrace

backtrace from the qt application "edittest".
Comment 11 Marcus Schaefer 2005-10-27 10:41:57 UTC
*** Bug 130760 has been marked as a duplicate of this bug. ***
Comment 12 Stefan Dirsch 2005-10-27 14:43:38 UTC
*** Bug 130994 has been marked as a duplicate of this bug. ***
Comment 13 Dennis Lubert 2005-10-29 15:54:03 UTC
Hello, with fontconfig from 10.26. I get now often the following error:

couldn't open fontconfigs chosen font with Xft!!!

strace shows that the program is trying to open the font in current directory, not with an absolute path. Maybe this information helps. Currently lots of apps keep crashing here, though I ran the above mentioned commands. These apps include firefox, kcmshell, kcontrol (intrestingliy not firefox) and konqueror so far. 
Comment 14 Stefan Dirsch 2005-10-29 15:57:52 UTC
Yes, caching system of fontconfig CVS is currently broken. It's not recommended to use it unless you want to debug and fix the problem these issue. Please downgrade to fontconfig of SUSE 10.0.
Comment 15 Stephan Kulow 2005-11-03 09:04:47 UTC
I updated to fontconfig CVS in STABLE again and can't see any problem. The package contains a patch to give an additional error from fc-cache if something is fishy. So I'd like to have feedback if you can still reproduce this problem - I just can't and some others reporting the problem can't either.
Comment 16 Stefan Dirsch 2005-11-03 09:16:20 UTC
Coolo, we switched back to fontconfig 2.3.2 in STABLE.
Comment 17 Robert Love 2005-11-07 18:33:59 UTC
STABLE moved back to 2.3.91:

     - update to 2.3.91.20051103 with an extra patch to avoid creating
       invalid cashes (#128080 seems fixed)

Unfortunately, packages are not working for me.  I do not get the exact same problem as before (prior, gdm would not start).  Now, gdm starts and I can login but my desktop never draws.  If I run a fontconfig-linked program from the console to that display, the program silently exits.

So ... 2.3.91 seems still broken!
Comment 18 Stefan Dirsch 2005-11-07 19:09:24 UTC
At least fc-cache segfaults during xorg-modular build for me ...
Comment 19 JP Rosevear 2005-11-07 20:01:37 UTC
*** Bug 132603 has been marked as a duplicate of this bug. ***
Comment 20 JP Rosevear 2005-11-08 12:51:06 UTC
*** Bug 132676 has been marked as a duplicate of this bug. ***
Comment 21 Jörg Spilker 2005-11-09 06:34:24 UTC
Well, i can confirm that there is a bug. I recently updated to the latest fontconfig from suse-project via apt and after the next reboot, even the kdm login screen doesn´t appear. I did run fc-cache -f -v but this doesn´t help. kdm login still doesn´t appear. What i could see: there is kdm_greet running consuming nearly all cpu power. strace on kdm_greet shows that´s searching for fonts but can´t find any (probably because all of the filenames displayes by strace are relative filenames ?).
Comment 22 Ladislav Michnovic 2005-11-16 19:00:03 UTC
I've just installed SL 10.1 alpha3 and gdm is still not working. See bug #132603 for attached info.
Comment 23 Stephan Kulow 2005-11-17 16:39:38 UTC
no idea about #21, but all others seem to be another gnome bug