freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] More crashes on ARM


From: Frank Meerkoetter
Subject: Re: [ft-devel] More crashes on ARM
Date: Mon, 30 Jan 2006 13:57:35 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0)

Quoting david turner <address@hidden>:

Hi,

Can you put a watchpoint on the cmap's "clazz" field to detect where it
is over-written ?
Really, it should give us meaningful information.

I'm not sure if i understand correctly what you wan't me to do.
The crash happens directly after cmap becomes available.

FT_EXPORT_DEF( FT_ULong )
  FT_Get_Next_Char( FT_Face   face,
                    FT_ULong  charcode,
                    FT_UInt  *agindex )
  {
 [...]
      FT_UInt32  code = (FT_UInt32)charcode;
      FT_CMap    cmap = FT_CMAP( face->charmap );           // <---


      gindex = cmap->clazz->char_next( cmap, &code );       // <--- crash
      result = ( gindex == 0 ) ? 0 : code;
    }
 [...]
  }

I tried it anyways but had no success.

Breakpoint 2, FT_Get_Next_Char (face=0x4bb90, charcode=0, agindex=0xbefff748)
    at ftobjs.c:2426
2426        FT_ULong  result = 0;
Current language:  auto; currently c
(gdb) n
2427        FT_UInt   gindex = 0;
(gdb) n
2430        if ( face && face->charmap )
(gdb) n
2432          FT_UInt32  code = (FT_UInt32)charcode;
(gdb) n
2433          FT_CMap    cmap = FT_CMAP( face->charmap );
(gdb) n
2436          gindex = cmap->clazz->char_next( cmap, &code );
(gdb) watch cmap->clazz
Watchpoint 3: cmap->clazz
(gdb) c
Continuing.
0x00000000 in ?? ()
Cannot access memory at address 0x0


Regards,
   Frank






reply via email to

[Prev in Thread] Current Thread [Next in Thread]