Issue 24189 - Crash: font flintsto.ttf and font selection box
Summary: Crash: font flintsto.ttf and font selection box
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: hdu@apache.org
QA Contact: issues@gsl
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2004-01-07 18:56 UTC by pavel
Modified: 2004-01-09 16:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Font file Flintstone (17.28 KB, application/octet-stream)
2004-01-07 18:57 UTC, pavel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2004-01-07 18:56:31 UTC
Hi,

the attached font flinsto.ttf makes OOo crash when you select the font selection
box in the Writer.

The font is added correctly with spadmin, but when it is to be first rendered,
OOo will crash with this backtrace (this is from my own build of fix2, but
1.1.1a behaves the same):

pavel@oo:~/OpenOffice.org1.1.1> ./soffice 
sh: crash_report: command not found


Fatal exception: Signal 11
Stack:
/home/pavel/OpenOffice.org1.1.1/program/libsal.so.3[0x40befde8]
/home/pavel/OpenOffice.org1.1.1/program/libsal.so.3[0x40beff67]
/home/pavel/OpenOffice.org1.1.1/program/libsal.so.3[0x40bf00b0]
/lib/libpthread.so.0[0x41149a74]
/lib/libc.so.6[0x41307a38]
/usr/lib/libfreetype.so.6[0x416208d5]
/usr/lib/libfreetype.so.6[0x41620c1c]
/usr/lib/libfreetype.so.6[0x416270fc]
/usr/lib/libfreetype.so.6[0x416037d2]
/usr/lib/libfreetype.so.6(FT_Open_Face+0x132)[0x41603a02]
/usr/lib/libfreetype.so.6(FT_New_Memory_Face+0x3e)[0x416038be]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN10FtFontInfo9GetFaceFTEv+0x60)[0x402b15b0]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN18FreetypeServerFontC1ERK18ImplFontSelectDataP10FtFontInfo+0x8e)[0x402b287e]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN15FreetypeManager10CreateFontERK18ImplFontSelectData+0x93)[0x402b2483]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN10GlyphCache9CacheFontERK18ImplFontSelectData+0xdf)[0x402af45f]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN15SalGraphicsData7SetFontEPK18ImplFontSelectDatai+0xe9)[0x4028a4b9]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN11SalGraphics7SetFontEP18ImplFontSelectDatai+0x88)[0x4028bef8]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN12OutputDevice12ImplInitFontEv+0x9b)[0x4016d76b]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN12OutputDevice11ImplNewFontEv+0x190)[0x4016d980]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZNK12OutputDevice13GetTextHeightEv+0x25)[0x40173395]
/home/pavel/OpenOffice.org1.1.1/program/libsvt645li.so(_ZN11FontNameBox8UserDrawERK13UserDrawEvent+0x314)[0x40639654]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN8ComboBox15ImplUserDrawHdlEP13UserDrawEvent+0x15)[0x40232605]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN8ComboBox23LinkStubImplUserDrawHdlEPvS0_+0x1d)[0x402325dd]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN17ImplListBoxWindow9ImplPaintEthb+0x235)[0x40255595]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN17ImplListBoxWindow11ImplDoPaintERK9Rectangleb+0xb7)[0x40255d57]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN17ImplListBoxWindow5PaintERK9Rectangle+0x1f)[0x40255e3f]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x3ca)[0x402072ba]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN6Window6UpdateEv+0x1d9)[0x40212be9]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN17ImplListBoxWindow11SetTopEntryEt+0xcd)[0x4025614d]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN11ImplListBox12ScrollBarHdlEP9ScrollBar+0x36)[0x402571d6]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN11ImplListBox20LinkStubScrollBarHdlEPvS0_+0x1d)[0x4025718d]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN9ScrollBar6ScrollEv+0x3f)[0x402632df]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN9ScrollBar10ImplScrollElh+0x4e)[0x4026285e]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN9ScrollBar12ImplDoActionEh+0xaa)[0x4026293a]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN9ScrollBar17ImplDoMouseActionERK5Pointh+0x18f)[0x40262adf]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN9ScrollBar15MouseButtonDownERK10MouseEvent+0x1f3)[0x40262ce3]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_Z20ImplHandleMouseEventP6Windowthllmtt+0xfe7)[0x4021b367]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_Z19ImplWindowFrameProcPvP8SalFrametPKv+0x16a)[0x4021db2a]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN12SalFrameData16HandleMouseEventEP7_XEvent+0x463)[0x402743e3]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN12SalFrameData8DispatchEP7_XEvent+0x1a4)[0x40276114]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN10SalDisplay8DispatchEP7_XEvent+0x2f1)[0x4029e0d1]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN10SalDisplay5YieldEh+0xff)[0x4029ddaf]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so[0x40299965]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN7SalXLib5YieldEh+0x457)[0x40298557]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN11SalInstance5YieldEh+0x2c)[0x402a134c]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN11Application5YieldEv+0x63)[0x400f1b23]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_ZN11Application7ExecuteEv+0x35)[0x400f1a25]
/home/pavel/OpenOffice.org1.1.1/program/soffice.bin(_ZN7desktop7Desktop4MainEv+0x2047)[0x8066167]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(_Z6SVMainv+0x47)[0x400f66c7]
/home/pavel/OpenOffice.org1.1.1/program/libvcl645li.so(main+0x46)[0x40296f26]
/lib/libc.so.6(__libc_start_main+0xbd)[0x412f69ed]
/home/pavel/OpenOffice.org1.1.1/program/soffice.bin(_ZN6Window11RequestHelpERK9HelpEvent+0x35)[0x805f101]
Aborted

ftlint is OK:
pavel@pavel:/tmp> ftlint 10 flintsto.ttf 
flintsto.ttf: OK.
pavel@pavel:/tmp> ftlint 20 flintsto.ttf 
flintsto.ttf: OK.
pavel@pavel:/tmp> ftlint 12 flintsto.ttf 
flintsto.ttf: OK.
pavel@pavel:/tmp> 

ftview can successfully show it:

pavel@pavel:/tmp> ftview 12 flintsto.ttf 
available pixmap formats
depth  pixbits  scanpad
   1       1       32
   4       8       32
   8       8       32
  15      16       32
  16      16       32
>   RGB f800:07e0:001f, colors  64, bits  6  TrueColor
Execution completed successfully.
Fails = 0
Comment 1 pavel 2004-01-07 18:57:12 UTC
Created attachment 12326 [details]
Font file Flintstone
Comment 2 stx123 2004-01-07 19:23:11 UTC
Just to let you know that the font works fine in OOo 1.1.1a on WinXP...
Comment 3 christof.pintaske 2004-01-08 12:22:58 UTC
cp->hdu: yet another misbehaving font ...
Comment 4 christof.pintaske 2004-01-08 12:24:53 UTC
reassigned
Comment 5 hdu@apache.org 2004-01-08 12:42:45 UTC
On which distribution and which freetype version?
ls -l /usr/lib/libfreetype.so.6@
Since the lib itself isn't that big it would be ok to attach it here, too.

It works fine with ft-2.1.7.
Comment 6 pavel 2004-01-08 18:03:51 UTC
This is SuSE Linux 8.0's libfreetype.

I did:

oo:/usr/lib # mv libfreetype.so.6 libfreetype.so.6.orig

and

pavel@oo:~/OpenOffice.org1.1.1> cp program/filter/libfreetype.so.6 program/

And with this, OOo works correctly. So this is not a bug in OOo.

Hmm - do we have a way to prevent using fault freetype? I think this could lead
to other similar reports...
Comment 7 pavel 2004-01-08 18:05:50 UTC
I put the faulty libfreetype to

http://tmp.janik.cz/OpenOffice.org/24189/libfreetype.so.6.2.0
Comment 8 hdu@apache.org 2004-01-09 13:49:36 UTC
The first entry in Flintstone's name table is rotten, which breaks name table
parsing in freetype 2.0.8. The freetype patch in
http://cvs.freetype.org/cgi-bin/viewcvs.cgi/freetype2/src/sfnt/sfobjs.c.diff?r1=1.52&r2=1.53,

works around this problem. This fix was also merged into the branch to resulted
in ft209.

=> Broken font and workaround exists with freetype versions >= 2.0.9
Comment 9 hdu@apache.org 2004-01-09 14:20:51 UTC
Closing invalid issue.
Comment 10 pavel 2004-01-09 16:33:46 UTC
Thanks for your analyse!