Bug#484995: pango1.0: Pango-WARNING **: Error loading GPOS table 5503

2008-06-28 Thread Loïc Minier
forwarded 484995 http://bugzilla.gnome.org/show_bug.cgi?id=540617
stop

Hi,

On Sat, Jun 07, 2008, Carlo Wood wrote:
 While running the command doxygen for my project,
 which somewhere runs 'dot graph_legend.dot -Tpng:gd -o
 graph_legend.png', dot prints:
 Pango-WARNING **: Error loading GPOS table 5503

 Thanks, I've forwarded your detailed report upstream at the above URL;
 it would be nice to susbcribe to it directly in case upstream requests
 additional information.  Could you try reproducing the error with
 pango-view as to have a small test case?

   Thanks,
-- 
Loïc Minier



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484995: pango1.0: Pango-WARNING **: Error loading GPOS table 5503

2008-06-07 Thread Carlo Wood
Package: pango1.0
Version: 1.20.2
Severity: normal


While running the command doxygen for my project,
which somewhere runs 'dot graph_legend.dot -Tpng:gd -o
graph_legend.png', dot prints:
Pango-WARNING **: Error loading GPOS table 5503

This occurs because in line
pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:664,
error is set to HB_Err_Invalid_SubTable_Format:

663   default:
664 return ERR(HB_Err_Invalid_SubTable_Format);

This is a switch for the variable an-PosFormat in line 575:

575   switch ( an-PosFormat )

an-PosFormat has value 56 at that moment, and was read just
before on line 571:

571   an-PosFormat = GET_UShort();

GET_UShort is a macro that depends on stream-cursor

stream is at the point:

(gdb) p *stream
$112 = {base = 0x2b7330d17000 , size = 465256, pos = 454286,
descriptor = {value = 47773740265472, pointer = 0x2b7330d17000},
pathname = {value = 6732768, pointer = 0x66bbe0}, read = 0,
close = 0x2b732ee23b90, memory = 0x62b960, cursor = 0x2b7330d85e8e ,
limit = 0x2b7330d85e8e }

The file associated with this stream is:

(gdb) p *((char(*)[60])stream.pathname.pointer)
$77 = 
/usr/share/fonts/truetype/freefont/FreeSans.ttf\000\000\000\000\000\000\000\000\000q\000\000

 dpkg -S /usr/share/fonts/truetype/freefont/FreeSans.ttf
ttf-freefont: /usr/share/fonts/truetype/freefont/FreeSans.ttf
dpkg -l ttf-freefont
+++-==-==-
ii  ttf-freefont   20080323-3 Freefont Serif, Sans and Mono Truetype fonts
md5sum /usr/share/fonts/truetype/freefont/FreeSans.ttf
903788b0c6066dc3341fcb8bdd492ddc /usr/share/fonts/truetype/freefont/FreeSans.ttf

Backtrace at the moment that the error occurs:
(gdb) bt
#0  Load_Anchor (an=0x686ed0, stream=0x66c640) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:573
#1  0x2b732ec02df4 in Load_Mark2Array (m2a=0x685fa0, num_classes=2, 
stream=0x66c640) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:2803
#2  0x2b732ec0337f in Load_MarkMarkPos (st=0x685f50, stream=0x66c640) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:2927
#3  0x2b732ec0a3f1 in _HB_GPOS_Load_SubTable (st=0x685f50, stream=0x66c640, 
lookup_type=6) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:5878
#4  0x2b732ec0bcd1 in Load_SubTable (st=0x685f50, stream=0x66c640, 
table_type=HB_Type_GPOS, lookup_type=6) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-open.c:458
#5  0x2b732ec0c0d8 in Load_Lookup (l=0x685e70, stream=0x66c640, 
type=HB_Type_GPOS) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-open.c:536
#6  0x2b732ec0c3d6 in _HB_OPEN_Load_LookupList (ll=0x685918, 
stream=0x66c640, type=HB_Type_GPOS) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-open.c:618
#7  0x2b732ebfcc75 in HB_Load_GPOS_Table (font=0x66c6a0, retptr=0x6304b8, 
gdef=0x672920) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:141
#8  0x2b732ebed74d in pango_ot_info_get_gpos (info=0x630480) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/pango-ot-info.c:352
#9  0x2b732ebed80c in get_tables (info=0x630480, 
table_type=PANGO_OT_TABLE_GPOS, script_list=0x7fff7f41f878, feature_list=0x0) 
at /home/carlo/tmp/pango1.0-1.20.2/pango/pango-ot-info.c:385
#10 0x2b732ebed90e in pango_ot_info_find_script (info=0x630480, 
table_type=PANGO_OT_TABLE_GPOS, script_tag=1818326126, 
script_index=0x7fff7f41f8dc) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/pango-ot-info.c:433
#11 0x2b732ebee8a7 in pango_ot_ruleset_new_for (info=0x630480, 
script=PANGO_SCRIPT_LATIN, language=0x629950) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/pango-ot-ruleset.c:253
#12 0x2b732ebee99f in pango_ot_ruleset_new_from_description (info=0x630480, 
desc=0x7fff7f41f9e0) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/pango-ot-ruleset.c:299
#13 0x2b732ebee6d6 in pango_ot_ruleset_get_for_description (info=0x630480, 
desc=0x7fff7f41f9e0) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/pango-ot-ruleset.c:149
#14 0x2b7330b1647a in ?? () from 
/usr/lib/pango/1.6.0/modules/pango-basic-fc.so
#15 0x2b732ddedbbc in _pango_engine_shape_shape (engine=0x65e2e0, 
font=0x65c830, text=0x629b40 Inherited, length=9, analysis=0x630450, 
glyphs=0x665c80) at /home/carlo/tmp/pango1.0-1.20.2/pango/pango-engine.c:71
#16 0x2b732de03db1 in pango_shape (text=0x629b40 Inherited, length=9, 
analysis=0x630450, glyphs=0x665c80) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/shape.c:55
#17 0x2b732ddf558e in shape_run (line=0x65fde0, state=0x7fff7f41fcb0, 
item=0x630440) at /home/carlo/tmp/pango1.0-1.20.2/pango/pango-layout.c:3072
#18 0x2b732ddf582a in process_item (layout=0x62b000, line=0x65fde0, 
state=0x7fff7f41fcb0, force_fit=1, no_break_at_end=0) at 
/home/carlo/tmp/pango1.0-1.20.2/pango/pango-layout.c:3182
#19 0x2b732ddf6124 in process_line (layout=0x62b000, state=0x7fff7f41fcb0) 
at /home/carlo/tmp/pango1.0-1.20.2/pango/pango-layout.c:3475
#20