[NTG-pdftex] [ pdftex-Bugs-917 ] pdftex 1.40.6: "invalid argument" on parsing pdftex.map

noreply at sarovar.org noreply at sarovar.org
Thu Feb 14 14:23:44 CET 2008


Bugs item #917, was opened at 2008-02-14 00:55
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=917&group_id=106

Category: None
Group: v1.40.6
Status: Open
Resolution: Works For Me
Priority: 5
Submitted By: Allin Cottrell (allin)
Assigned to: Martin Schröder (oneiros)
>Summary: pdftex 1.40.6: "invalid argument" on parsing pdftex.map

Initial Comment:
Using an admittedly quite old pdftex.map, pdftex 1.40.5
would product correct output but pdftex 1.40.6 fails to
parse the map file.  pdftex.map is attached; here is
interactive output:

waverley:~/mytex/misc$ cat bug.tex 
\documentclass{article}
\begin{document}

Hello.

\end{document}

waverley:~/mytex/misc$ pdflatex bug
This is pdfTeX, Version 3.141592-1.40.6 (Web2C 7.5.6)
 \write18 enabled.
(./bug.tex
LaTeX2e <2003/12/01>
Babel <v3.7h> and hyphenation patterns for american,
russian, spanish, italian,
 polish, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX
document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(./bug.aux) [1{/usr/share/texmf/f
onts/map/pdftex.map}pdflatex: Invalid argument


----------------------------------------------------------------------

>Comment By: Martin Schröder (oneiros)
Date: 2008-02-14 14:23

Message:
Logged In: YES 
user_id=421

Are you by chance trying to produce a pdf larger then 2GiB?

----------------------------------------------------------------------

Comment By: Martin Schröder (oneiros)
Date: 2008-02-14 10:10

Message:
Logged In: YES 
user_id=421

The error message probably comes from the kernel or libc;
the string "Invalid argument" is only in ttf2afm.c

allin, can you start a gdb, set a breakpoint in exit and get
a backtrace?



----------------------------------------------------------------------

Comment By: Taco Hoekwater (taco)
Date: 2008-02-14 09:10

Message:
Logged In: YES 
user_id=1608

Works for me as well.

The most likely candidate for creating this problem is the
pfb file, not the map file. The actual error message
probably comes from zlib, not the map file parser. 

Can you check that /usr/local/psfonts/bsr/cmr10.pfb is
exactly 26882 bytes long?


----------------------------------------------------------------------

Comment By: Allin Cottrell (allin)
Date: 2008-02-14 02:34

Message:
Logged In: YES 
user_id=4856

I've now tried using a much simpler map file, but that
didn't help.  Here what strace says, at the end of reading
the map file:

read(7, "wncysc10.pfb\nwncyss10 <wncyss10."..., 4096) = 783
read(7, "", 4096)                       = 0
close(7)                                = 0
munmap(0xb7fdc000, 4096)                = 0
write(1, "}", 1})                        = 1
brk(0x835e000)                          = 0x835e000
brk(0x838e000)                          = 0x838e000
write(6, "%PDF-1.4\n%\320\324\305\330\n3 0 obj
<<\n/Lengt"..., 156) = 156
write(2, "pdflatex: ", 10pdflatex: )              = 10
write(2, "Invalid argument\n", 17Invalid argument
)      = 17
write(5, "\relax \n", 8)               = 8
write(4, "This is pdfTeX, Version 3.141592"..., 1511) = 1511
exit_group(1)                           = ?




----------------------------------------------------------------------

Comment By: Allin Cottrell (allin)
Date: 2008-02-14 01:40

Message:
Logged In: YES 
user_id=4856

Minimal test file and log from pdftex 1.40.5 are added below.

----------------------------------------------------------------------

Comment By: Martin Schröder (oneiros)
Date: 2008-02-14 01:13

Message:
Logged In: YES 
user_id=421

I can't reproduce this; I can compile sample2e.tex with this
map file. Please attach a (minimal) test file. Also the log
of 1.40.5 for this file would be helpful.


----------------------------------------------------------------------

You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=917&group_id=106


More information about the ntg-pdftex mailing list