[ pdftex-Bugs-917 ] pdftex 1.40.6: "invalid argument" on parsing pdftex.map
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: Closed 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
Comment By: Martin Schröder (oneiros) Date: 2008-02-14 16:43
Message:
Logged In: YES
user_id=421
Then your compile was broken. We'll fix that in 1.50.0 :-)
----------------------------------------------------------------------
Comment By: Allin Cottrell (allin)
Date: 2008-02-14 16:32
Message:
Logged In: YES
user_id=4856
"Are you by chance trying to produce a pdf larger then 2GiB?"
Ah, now we're getting somewhere! No, the test file I was
using resulted in a pdf of only 4K, but... when I built
pdftex I was using a version of build.sh that I had
previously modified and saved, and it did not contain
the configure flag "--disable-largefile", which I see is
in the current build.sh. I added that flag, recompiled
pdftex, and now it works fine.
----------------------------------------------------------------------
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
participants (1)
-
noreply@sarovar.org