Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79456 - X crashes when loading Korean truetype fonts
Summary: X crashes when loading Korean truetype fonts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 79444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-25 06:40 UTC by Seong-Kook Shin
Modified: 2005-01-26 11:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
baekmuk.png (baekmuk.png,108.84 KB, image/png)
2005-01-25 14:03 UTC, Donnie Berkholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seong-Kook Shin 2005-01-25 06:40:30 UTC
X crashed when loading international (Korean) truetype font.

I use nvidia-kernel and have no problem before using Korean font

# emerge --pretend --verbose xorg-x11 freetype baekmuk-fonts
[ebuild   R   ] x11-base/xorg-x11-6.8.0-r4  -3dfx -3dnow +bitmap-fonts +cjk -debug -dlloader -dmx -doc +font-server -hardened -insecure-drivers -ipv6 -minimal -mmx +nls +opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv
[ebuild   R   ] media-libs/freetype-2.1.5-r1  -bindist +cjk -debug -doc +zlib
[ebuild   R   ] media-fonts/baekmuk-fonts-2.2  +X -unicode

"baekmuk-fonts" provides bitmap fonts and truetype(.ttc) fonts.
When I select truetype version using xfontsel, the server crashed.
(The screen is blacked, and keyboard doesn't work. but the system is still
alive. I can ssh from another machine.)

The /var/log/Xorg.0.log says
  Fatal server error:
  Caught signal 11.  Server aborting.

I thought the blame should be gone to "baekmuk-fonts" pacakge, but when
I install Windows truetype font, gulim.ttc (also Korean), and select
it using xfontsel, the server still crashed.

I installed gentoo in 2 systems:
  (P Celeron 1GHZ): 
    CFLAGS='-march=pentium2 -O2 -pipe -fomit-frame-pointer'
    USE='X gtk gnome gtk2 alsa'
  (P M 1.7GHZ): 
    CFLAGS='-march=pentium3 -O2 -pipe -fomit-frame-pointer -msse2'
    USE='X gtk gnome gtk2 alsa cjk -ipv6'

Both system crashed. :-(

Strangely, when I sshed gentoo system (from Fedora Core 2), launched xfontsel,
I can select the korean ttf font without trouble.



Reproducible: Always
Steps to Reproduce:
0. The system must have "baekmuk-fonts" installed
1. launch startx
2. launch xfontsel
3. select any baekmuk ttf font (e.g. "baekmuk gulim").


Actual Results:  
then X crashed (screen blacked, keyboard doesn't work, but still I can ssh from
another machine)

Expected Results:  
Simple, xfontsel must not crash X server itself.
and xfontsel must load the appropriate baekmuk ttf font.
Comment 1 Seong-Kook Shin 2005-01-25 06:41:13 UTC
*** Bug 79444 has been marked as a duplicate of this bug. ***
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-25 14:03:48 UTC
Created attachment 49510 [details]
baekmuk.png

I can't reproduce your problem with xorg-x11 6.8.1.902 -- I attached a
screenshot of my attempt. Can you?
Comment 3 Seong-Kook Shin 2005-01-25 14:14:39 UTC
There is another person who experience same problem, he reports that
when I use xfs enabled, and if I select "registry" to "ksc5601.1987" before
select "family", it would not crash.

He suspect that if I choose "family" first, X tries "baekmuk batang" using
invalid (unavailable) encoding, thus crashed.

Perhaps this help?

Of course, I cannot attached the problem screenshot.
Whenever I try "baekmuk batang" family first in xfontsel, X crashed.

Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-25 14:37:03 UTC
I did the selection from left to right, so family would have been before encoding. When a selection isn't available for a given encoding (or any other combination of options), it grays out -- it wouldn't let you select it and then crash.

Also, I use xfs too. I was getting some segfaults when I started it though, so I manually ran mkfontscale in there.

What I meant by "Can you?" is, can you try 6.8.1.902 and reproduce there?
Comment 5 Seong-Kook Shin 2005-01-26 06:11:25 UTC
It tooks some time to rebuild X, but to make a long story short,

NO, the sympton doesn't happen when I upgrade packages as you mentioned.
I can select baekmuk truetype fonts, even I can select Korean font copied
from my Windows system. (No problem so far!)

I upgraded to the masked package, xorg-x11-6.8.1.902.
emerge requires to upgrade freetype package also.
These are the packages that I would merge, in order:

# emerge --pretend --verbose xorg-x11 freetype
Calculating dependencies  ...done!
[ebuild     UD] x11-base/xorg-x11-6.8.0-r4 [6.8.1.902] -3dfx -3dnow +bitmap-fonts +cjk -debug -dlloader -dmx -doc +font-server -hardened -insecure-drivers -ipv6 -minimal +mmx +nls +opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 0 kB 
[ebuild     UD] media-libs/freetype-2.1.5-r1 [2.1.9-r1] -bindist -cjk -debug -doc +zlib 830 kB 

Total size of downloads: 830 kB

# _

But I think my previous installation of xorg-x11-6.8.0-r4 should be fixed this bug anyway.. don't know what causes the problem yet. 

Thank you very much.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-26 11:29:16 UTC
OK, so we know the problem's fixed in the newest stuff. You might want to unmask them in /etc/portage/package.keywords, so you can emerge world safely:

=x11-base/xorg-x11-6.8.1.902 ~x86
=media-libs/freetype-2.1.9-r1 ~x86