[pdftex] segfault when not using a format file
Thomas Esser
te at dbs.uni-hannover.de
Tue Jun 17 07:28:21 CEST 2003
Hm... It does not work. Maybe, this should be fixed?
$ cat rr.tex
\pdfoutput=1
\pdfoptionpdfminorversion=4
\catcode`\{=1
\catcode`\}=2
\pdfximage{sample2e.pdf}
\setbox0=\hbox{\pdfrefximage\pdflastximage}%
\pdfpagewidth=\wd0
\pdfpageheight=\ht0
\shipout\box0
\end
This works ok:
$ pdftex rr
This is pdfTeX, Version 3.14159-1.11a-beta-20030615 (Web2C 7.5.2)
...
nts/type1/bluesky/cm/cmr17.pfb>
Output written on rr.pdf (1 page, 57830 bytes).
Transcript written on rr.log.
It even works with an "empty" format file:
$ pdftex -ini /dev/null \\dump
...
Transcript written on null.log.
$ pdftex \&null rr
...
Output written on rr.pdf (1 page, 57830 bytes).
Transcript written on rr.log.
Running pdftex -ini rr does not work:
$ gdb pdftex
GNU gdb 5.3
...
(gdb) run -ini rr
Starting program: /build/X/texk/web2c/pdftex -ini rr
This is pdfTeX, Version 3.14159-1.11a-beta-20030615 (Web2C 7.5.2) (INITEX)
(./rr.tex [0 <./sample2e.pdf
Program received signal SIGSEGV, Segmentation fault.
0x080a2473 in fm_read_info () at /t/src/tetex-src/texk/web2c/pdftexdir/mapfile.c:284
284 if (*n == 0) {
(gdb) bt
#0 0x080a2473 in fm_read_info () at /t/src/tetex-src/texk/web2c/pdftexdir/mapfile.c:284
#1 0x080a368c in lookup_fontmap (bname=0x82faa20 "ADKMPD+CMR17")
at /t/src/tetex-src/texk/web2c/pdftexdir/mapfile.c:530
#2 0x080b2fd3 in copyFont (tag=0x82fad68 "F15", fontRef=0xbfffea5c)
at /t/src/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc:424
#3 0x080b33eb in copyFontResources (obj=0xbffff344) at /t/src/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc:457
#4 0x080b46c8 in write_epdf () at /t/src/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc:999
#5 0x080b2305 in writeimage (img=0) at /t/src/tetex-src/texk/web2c/pdftexdir/writeimg.c:310
#6 0x08079e3c in zpdfwriteimage (n=1) at pdftex1.c:7118
#7 0x0807eaf8 in zpdfshipout (p=1004, shippingpage=1) at pdftex1.c:9191
#8 0x0807fa6c in zshipout (p=1004) at pdftex1.c:9625
#9 0x08090d3e in zboxend (boxcontext=1073742336) at pdftex2.c:6900
#10 0x0809119f in zbeginbox (boxcontext=1073742336) at pdftex2.c:7055
#11 0x080911e7 in zscanbox (boxcontext=1073742336) at pdftex2.c:7070
#12 0x0809bc93 in maincontrol () at pdftex3.c:1981
#13 0x08058508 in mainbody () at pdftexini.c:4612
#14 0x0809f82e in main (ac=3, av=0xbffff5b4) at pdftexextra.c:294
#15 0x400a1ca6 in __libc_start_main (main=0x809f810 <main>, argc=3, ubp_av=0xbffff5b4,
init=0x811af50 <__libc_csu_init>, fini=0x811af80 <__libc_csu_fini>, rtld_fini=0x400158c0 <_rtld_local>,
stack_end=0xffc) at ../sysdeps/generic/libc-start.c:152
Thomas
More information about the pdftex
mailing list