Crash of ROOT program on Ubuntu only

Hello,

I have a larger ROOT application, which runs nicely on all tested platforms, only on Ubuntu it immediately crashes with the following output:

#0 0xb660c8f0 in FT_Get_Module () from /ext/root/lib/libGraf.so
#1 0xb66151ca in tt_get_interface () from /ext/root/lib/libGraf.so
#2 0xb660790c in ft_module_get_service () from /ext/root/lib/libGraf.so
#3 0xb664bcb5 in t1_decoder_init () from /ext/root/lib/libGraf.so
#4 0xb661b632 in T1_Load_Glyph () from /ext/root/lib/libGraf.so
#5 0xb660c3e2 in FT_Load_Glyph () from /ext/root/lib/libGraf.so
#6 0xb663d110 in af_latin_metrics_init_widths () from /ext/root/lib/libGraf.so
#7 0xb663d586 in af_latin_metrics_init () from /ext/root/lib/libGraf.so
#8 0xb663c5a7 in af_autofitter_load_glyph () from /ext/root/lib/libGraf.so
#9 0xb660c45e in FT_Load_Glyph () from /ext/root/lib/libGraf.so
#10 0xb4cfcd6c in XftFontLoadGlyphs () from /usr/lib/libXft.so.2
#11 0xb4cf9f7b in XftGlyphExtents () from /usr/lib/libXft.so.2
#12 0xb4cfa65c in XftTextExtents8 () from /usr/lib/libXft.so.2
#13 0xb4b658d3 in TGX11TTF::TextWidth () from /ext/root/lib/libGX11TTF.so
#14 0xb563435e in TGFontPool::MakeFont () from /ext/root/lib/libGui.so
#15 0xb56347eb in TGFontPool::GetNativeFont () from /ext/root/lib/libGui.so
#16 0xb5635300 in TGFontPool::GetFont () from /ext/root/lib/libGui.so
#17 0xb56aafb0 in TGResourcePool::TGResourcePool () from /ext/root/lib/libGui.so
#18 0xb560482d in TGClient::TGClient () from /ext/root/lib/libGui.so
#19 0xb57052e4 in TRootApplication::TRootApplication () from /ext/root/lib/libGui.so
#20 0xb5725ee5 in TRootGuiFactory::CreateApplicationImp () from /ext/root/lib/libGui.so
#21 0xb758d31f in TApplication::InitializeGraphics () from /ext/root/lib/libCore.so
#22 0xb758f326 in TApplication::TApplication () from /ext/root/lib/libCore.so
#23 0x08049946 in main ()

Has anybody ever seen this, and an idea what the problem might be?
I will try to recompile ROOT in debug mode next…

I am using root v5.22 on Ubuntu 8.04 (VirtualBox).

Thanks,
Andreas

This crash is deep inside the Freetype library.
When you run ROOT on this machine, does it work ? are you able to produce some text output ?

Hi all,

To prevent the crash I have to set UseXft to false, e.g.
gEnv->SetValue(“X11.UseXft”, “false”);

I assume its a Xft bug, not a Root bug, since it works without problems on other systems.

Ciao,
Andreas

I guess you can also change $ROOTSYS/etc/system.rootrc. In my I have:

X11.UseXft: no

I am not sure whether it is the default or not.