Bug 118713 - ttmkfdir segfaults
Summary: ttmkfdir segfaults
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ttmkfdir
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Yu Shao
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-19 12:59 UTC by Karsten Hopp
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-19 18:59:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karsten Hopp 2004-03-19 12:59:41 UTC
Description of problem: 
ttmkfdir -d /usr/share/fonts/ja/TrueType 
-o /usr/share/fonts/ja/TrueType/fonts.scale  
segfaults (as an example, there were several segfaults during an update to 
latest-fc2). 
 
 
Version-Release number of selected component (if applicable): 
ttmkfdir-3.0.9-1 
 
How reproducible: 
always 
 
Steps to Reproduce: 
1. default FC2 /usr/share/fonts/ja/TrueType/  directory, no changes at all 
2. ttmkfdir -d /usr/share/fonts/ja/TrueType 
-o /usr/share/fonts/ja/TrueType/fonts.scale 
3. segfault 
   
Actual results: 
ttmkfdir -d /usr/share/fonts/ja/TrueType 
-o /usr/share/fonts/ja/TrueType/fonts.scale 
 
Program received signal SIGSEGV, Segmentation fault. 
0x0805702b in yylex(char*, Encodings_t&) ( 
    current_file=0xfeeffbd0 
"/usr/X11R6/lib/X11/fonts/encodings/./iso8859-6.8x.enc", 
dest=@0x8685510) at encoding.l:112 
112             (*cur_map)[i] = -1; 
(gdb) bt 
#0  0x0805702b in yylex(char*, Encodings_t&) ( 
    current_file=0xfeeffbd0 
"/usr/X11R6/lib/X11/fonts/encodings/./iso8859-6.8x.enc", 
dest=@0x8685510) at encoding.l:112 
#1  0x0805567a in Encodings_t::ReadEncodings() (this=0x8685510) 
    at encoding.cpp:100 
#2  0x0805579e in Encodings_t (this=0x8685510) at encoding.cpp:110 
#3  0x0805307e in util::Singleton<Encodings_t, Encodings_t>::instance() () 
    at util.h:12 
#4  0x08050cc9 in Face (this=0xfef00db0, filename=@0xfef00ef0) at 
ttf.cpp:150 
#5  0x0804aada in main (argc=5, argv=0xfef00fc4) at ttmkfdir.cpp:66

Comment 1 Yu Shao 2004-03-19 18:59:26 UTC
Fixed in 3.0.9-11, see also my comments here:
http://bugs.xfree86.org/show_bug.cgi?id=420


Note You need to log in before you can comment on or make changes to this bug.