[tlbuild] ptex ini creation seg faults on OpenBSD

Peter Breitenlohner peb at mppmu.mpg.de
Tue Jul 20 16:53:59 CEST 2010


On Tue, 20 Jul 2010, Edd Barrett wrote:

> * making pLaTeX format
> *
> **************************
> (/home/texlive/root/texmf-dist/tex/platex/base/plcore.ltx
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000041ff39 in zgetjfmpos (kcode=41377, f=0) at ptex0.c:7337
> 7337      if ( ( fontinfo [ctypebase [f ]+ sp ].hh .v.RH <= jc ) && ( jc <=
> (gdb) bt
> #0  0x000000000041ff39 in zgetjfmpos (kcode=41377, f=0) at ptex0.c:7337

Hi Edd,

seems to be a bug/glitch because get_jfm_pos should certainly not be called
with f=0= null_font!

> #1  0x000000000044f8cc in maincontrol () at ptex0.c:24011

   curl = getjfmpos ( curchr , mainf ) ;
from ptex-base.ch l.7517:
   cur_l:=qi(get_jfm_pos(KANJI(cur_chr),main_f));

===============

for f=null_font=0 we obtain in get_jfm_pos
   sp = 1;
   ep = fontnumext[0]-1 = -1;
and accessing
   fontinfo[ctypebase[f]+ep] = fontinfo[-1]
may or may not cause a segfault (seems it does so for OpenBSD).

Regards
Peter Breitenlohner <peb at mppmu.mpg.de>


More information about the tlbuild mailing list