[NTG-pdftex] [pdftex-Bugs][2068] format is not portable
pdftex-bugs at sarovar.org
pdftex-bugs at sarovar.org
Sun Jul 13 13:28:45 CEST 2008
Bugs item #2068, was opened at 2008-07-13 00:49
>Status: Closed
Priority: 5
Submitted By: Martin Schröder (oneiros)
Assigned to: The Thanh Han (hanthethanh)
Summary: format is not portable
>Resolution: Fixed
Group: v1.40.8
Category: web2c
Initial Comment:
The format is not portable anymore.
Tested with x86 and amd64
x86 with amd64 format:
------------------
This is pdfTeX, Version 3.1415926-1.40.8 (Web2C 7.5.7)
/opt/tex/bin/i686-pc-linux-gnu/pdflatex: fatal: Could not undump 1
4-byte item(s).
Breakpoint 2, 0xf7dbc2b6 in exit () from /lib/libc.so.6
(gdb) bt
#0 0xf7dbc2b6 in exit () from /lib/libc.so.6
#1 0x080c1d61 in do_undump (p=0x83bce84 "", item_size=4, nitems=1, in_file=0x83cd7e0)
at pdftexextra.c:1930
#2 0x080583a1 in loadfmtfile () at pdftexini.c:4294
#3 0x0805dc78 in mainbody () at pdftexini.c:5493
#4 0x080be9c6 in main (ac=Cannot access memory at address 0x2
) at pdftexextra.c:422
(gdb) up
------------------
4289 pdfmem = xreallocarray ( pdfmem , integer , pdfmemsize ) ;
4290 undumpint ( pdfmemptr ) ;
4291 {register integer for_end; k = 1 ;for_end = pdfmemptr - 1 ; if ( k <=
4292 for_end) do
4293 {
4294 undumpint ( pdfmem [k ]) ;
4295 }
4296 while ( k++ < for_end ) ;}
4297 undumpint ( objtabsize ) ;
4298 undumpint ( objptr ) ;
(gdb) p k
$5 = 17
-----------------
amd64 bin with x86 format:
------------------
This is pdfTeX, Version 3.1415926-1.40.8 (Web2C 7.5.7)
!pdfTeX error: /opt/tex/bin/i686-pc-linux-gnu/pdflatex: unknown type of image
==> Fatal error occurred, no output PDF file produced!
Breakpoint 2, 0x00002b17ff02d1e0 in exit () from /lib64/libc.so.6
(gdb) bt
#0 0x00002b17ff02d1e0 in exit () from /lib64/libc.so.6
#1 0x000000000048a55d in pdftex_fail (fmt=0x57b41f "unknown type of image")
at ../../../../src/texk/web2c/pdftexdir/utils.c:244
#2 0x00000000004a0bf3 in undumpimagemeta (pdfversion=4, pdfinclusionerrorlevel=0)
at ../../../../src/texk/web2c/pdftexdir/writeimg.c:568
#3 0x000000000041194c in loadfmtfile () at pdftexini.c:4287
#4 0x00000000004161cf in mainbody () at pdftexini.c:5493
#5 0x0000000000481098 in main (ac=2, av=0x7fffabd1e858) at pdftexextra.c:422
------------------
4282 #ifdef INITEX
4283 trienotready = false
4284 #endif /* INITEX */
4285 ;
4286 {
4287 undumpimagemeta ( eqtb [18248 ].cint , eqtb [18251 ].cint ) ;
4288 undumpint ( pdfmemsize ) ;
4289 pdfmem = xreallocarray ( pdfmem , integer , pdfmemsize ) ;
4290 undumpint ( pdfmemptr ) ;
(gdb) p eqtb [18248 ]
$1 = {gr = 8.491318209736172e-314, hh = {v = {LH = 6750208, RH = 4}, u = {B1 = 0, B0 = 103}}, u = {
junk = 6750208, CINT = 4}, v = {junk = 6750208, QQQQ = {u = {B3 = 4 '\004', B2 = 0 '\0', B1 = 0 '\0',
B0 = 0 '\0'}}}}
(gdb) p eqtb [18251 ]
$2 = {gr = 3.3350458750827492e-317, hh = {v = {LH = 6750208, RH = 0}, u = {B1 = 0, B0 = 103}}, u = {
junk = 6750208, CINT = 0}, v = {junk = 6750208, QQQQ = {u = {B3 = 0 '\0', B2 = 0 '\0', B1 = 0 '\0',
B0 = 0 '\0'}}}}
------------------
----------------------------------------------------------------------
>Comment By: Martin Schröder (oneiros)
Date: 2008-07-13 13:28
Message:
Fixed in 1.40.9
----------------------------------------------------------------------
Comment By: The Thanh Han (hanthethanh)
Date: 2008-07-13 10:02
Message:
fixed by patch 2069
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2008-07-13 00:55
Message:
I've attached x86 and amd64 binaries and formats for easier testing.
----------------------------------------------------------------------
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=493&aid=2068&group_id=106
More information about the ntg-pdftex
mailing list