Pango crash with cross compilation
- From: Julien Grossholtz <jg powerlinux fr>
- To: gtk-i18n-list gnome org
- Subject: Pango crash with cross compilation
- Date: Wed, 15 Jul 2009 10:45:12 +0200
Hello,
I'm trying to use Clutter on an embedded device, to do so I've cross
compiled Pango and fontconfig. I'm not using X. I've used these options
to cross compile pango :
./configure --prefix=/opt/pango --exec-prefix=/opt/pango --host=
$host_alias --with-x=no
The problem comes when I try to execute a program with some text, I get
a crash :
./SimpleText
*** glibc detected *** ./SimpleText: munmap_chunk(): invalid pointer:
0x000827e8 ***
======= Backtrace: =========
/lib/libc.so.6[0x40a57af4]
./SimpleText[0x21a70]
./SimpleText[0xf35c]
./SimpleText(
FcConfigSubstituteWithPat+0x59c)[0xfa5c]
./SimpleText(FcConfigSubstitute+0x30)[0xfdc0]
/opt/pango/lib/libpangocairo-1.0.so.0[0x40211f8c]
I'm able to use fc-match,fc-cache, fc-cat and fc-list, and so to
configure fontconfig. fc-match returns decent answers so I guess it's
working.
The first time I've executed my program it tells this :
(./SimpleText:2682): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
'/opt/pango/etc/pango/pango.modules'
You should create this file by running:
pango-querymodules > '/opt/pango/etc/pango/pango.modules'
I did it, and it has worked because I've put my libraries in /opt on the
2 systems. But I think that my crash could be related with the content
of pango.modules on the embedded system :
/opt/pango/lib/pango/1.6.0/modules/pango-hebrew-fc.so
HebrewScriptEngineFc PangoEngineShape PangoRenderFc hebrew:*
/opt/pango/lib/pango/1.6.0/modules/pango-syriac-fc.so
SyriacScriptEngineFc PangoEngineShape PangoRenderFc syriac:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
devaIndicScriptEngineLang PangoEngineLang PangoRenderNone devanagari:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
bengIndicScriptEngineLang PangoEngineLang PangoRenderNone bengali:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
guruIndicScriptEngineLang PangoEngineLang PangoRenderNone gurmukhi:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
gujrIndicScriptEngineLang PangoEngineLang PangoRenderNone gujarati:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
oryaIndicScriptEngineLang PangoEngineLang PangoRenderNone oriya:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
tamlIndicScriptEngineLang PangoEngineLang PangoRenderNone tamil:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
teluIndicScriptEngineLang PangoEngineLang PangoRenderNone telugu:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
kndaIndicScriptEngineLang PangoEngineLang PangoRenderNone kannada:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
mlymIndicScriptEngineLang PangoEngineLang PangoRenderNone malayalam:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-lang.so
sinhIndicScriptEngineLang PangoEngineLang PangoRenderNone sinhala:*
/opt/pango/lib/pango/1.6.0/modules/pango-khmer-fc.so KhmerScriptEngineFc
PangoEngineShape PangoRenderFc khmer:*
/opt/pango/lib/pango/1.6.0/modules/pango-tibetan-fc.so
TibetanScriptEngineFc PangoEngineShape PangoRenderFc tibetan:*
/opt/pango/lib/pango/1.6.0/modules/pango-hangul-fc.so
HangulScriptEngineFc PangoEngineShape PangoRenderFc hangul:*
/opt/pango/lib/pango/1.6.0/modules/pango-basic-fc.so BasicScriptEngineFc
PangoEngineShape PangoRenderFc latin:* cyrillic:* greek:* armenian:*
georgian:* runic:* ogham:* bopomofo:* cherokee:* coptic:* deseret:*
ethiopic:* gothic:* han:* hiragana:* katakana:* old-italic:*
canadian-aboriginal:* yi:* braille:* cypriot:* limbu:* osmanya:*
shavian:* linear-b:* ugaritic:* glagolitic:* cuneiform:* phoenician:*
common:
/opt/pango/lib/pango/1.6.0/modules/pango-arabic-fc.so
ArabicScriptEngineFc PangoEngineShape PangoRenderFc arabic:* nko:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so devaScriptEngineFc
PangoEngineShape PangoRenderFc devanagari:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so bengScriptEngineFc
PangoEngineShape PangoRenderFc bengali:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so guruScriptEngineFc
PangoEngineShape PangoRenderFc gurmukhi:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so gujrScriptEngineFc
PangoEngineShape PangoRenderFc gujarati:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so oryaScriptEngineFc
PangoEngineShape PangoRenderFc oriya:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so tamlScriptEngineFc
PangoEngineShape PangoRenderFc tamil:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so teluScriptEngineFc
PangoEngineShape PangoRenderFc telugu:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so kndaScriptEngineFc
PangoEngineShape PangoRenderFc kannada:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so mlymScriptEngineFc
PangoEngineShape PangoRenderFc malayalam:*
/opt/pango/lib/pango/1.6.0/modules/pango-indic-fc.so sinhScriptEngineFc
PangoEngineShape PangoRenderFc sinhala:*
/opt/pango/lib/pango/1.6.0/modules/pango-arabic-lang.so
ArabicScriptEngineLang PangoEngineLang PangoRenderNone arabic:*
/opt/pango/lib/pango/1.6.0/modules/pango-thai-fc.so ThaiScriptEngineFc
PangoEngineShape PangoRenderFc thai:* lao:*
This is the modules list :
ls /opt/pango/lib/pango/1.6.0/modules/
pango-arabic-fc.la pango-arabic-lang.so pango-hangul-fc.la
pango-hebrew-fc.so pango-indic-lang.la pango-khmer-fc.so
pango-thai-fc.la pango-tibetan-fc.so
pango-arabic-fc.so pango-basic-fc.la pango-hangul-fc.so
pango-indic-fc.la pango-indic-lang.so pango-syriac-fc.la
pango-thai-fc.so
pango-arabic-lang.la pango-basic-fc.so pango-hebrew-fc.la
pango-indic-fc.so pango-khmer-fc.la pango-syriac-fc.so
pango-tibetan-fc.la
Maybe these modules are not supposed to be on the embeded system and
comes from the host and so they are causing the crash ?
How can I check that this list of modules is related with my embedded
system and not with the host system ? If they are not I guess I must set
an option to create only the needed modules.
Or maybe I'm doing something else wrong ?
Best regards,
Julien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]