[tex-live] pdftex 1.40.4

George N. White III gnwiii at gmail.com
Mon Jul 23 23:13:28 CEST 2007


On 7/22/07, Akira Kakuto <kakuto at fsci.fuk.kindai.ac.jp> wrote:

> >     texfonts.map is missed by the "pdftex -recorder" option.
> >
> > I think we need to add
> >
> > if (kpse_record_input)
> >   kpse_record_input (*filenames);
> >
> > to the loop in read_all_maps in kpathsea/fontmap.c, but I can't test it
> > right now.  If one of you has a chance to do that, that would be great.
>
> I think it will be better to add the kpse_record_input()
> when the file is actually opened (not tested):
>
> --- fontmap.c.orig      Mon Jul 23 10:01:12 2007
> +++ fontmap.c   Mon Jul 23 10:07:34 2007
> @@ -28,6 +28,7 @@
>  #include <kpathsea/line.h>
>  #include <kpathsea/pathsearch.h>
>  #include <kpathsea/str-list.h>
> +#include <kpathsea/recorder.h>
>  #include <kpathsea/tex-file.h>
>
>  /* We have one and only one fontmap, so may as well make it static
> @@ -81,7 +82,10 @@
>    char *orig_l;
>    unsigned map_lineno = 0;
>    FILE *f = xfopen (map_filename, FOPEN_R_MODE);
> -
> +
> +  if (kpse_record_input)
> +    kpse_record_input (map_filename);
> +
>    while ((orig_l = read_line (f)) != NULL) {
>      string filename;
>      string l = orig_l;

I just tried Akira's suggested patch (using clean texfonts.map files):

Building pdftex.fmt with '-recorder' and the broken texfonts.map gave:

[...]
Preloading the plain format: codes, registers, parameters, fonts,***
glibc detected *** pdftex: free(): invalid pointer: 0x09291ff9 ***

$ cat pdftex.fls
PWD /Data/u/gwhite/T/test/TLsvn/ini
INPUT /Data/opt/tex/texlive/svn/Master/texmf/web2c/texmf.cnf
INPUT /Data/opt/tex/texlive/svn/Master/texmf/web2c/pdftex.pool
INPUT /Data/opt/tex/texlive/svn/Master/texmf-dist/tex/plain/config/pdftex.ini
OUTPUT pdftex.log
INPUT /home/gwhite/.texlive2007/texmf-config/tex/generic/config/pdftexconfig.tex
INPUT /Data/opt/tex/texlive/svn/Master/texmf-dist/tex/plain/base/plain.tex
INPUT ./texfonts.map

This would have make it easier to suspect texfonts.map (a file I sort of assumed
was not part of a modern TeX).

My free time is rather unpredictable (bugs that prevent getting real
work done take
priority!), but I'll try to look for a fix for the free(<invalid>) problem.

-- 
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia


More information about the tex-live mailing list