--- Begin Message ---
Package: texlive-binaries
Version: 2009-8+b1
Severity: normal
Tags: sid
To reproduce
$ > foo.tex # but any other .tex file will do
$ tex foo.tex
This is TeX, Version 3.1415926 (TeX Live 2009/Debian)
Segmentation fault
This is due to an longstanding off-by-one error during initialization (even
before loading a .fmt file):
In Web (Pascal) source we have
mubyte_cswrite: array [0..127] of pointer;
and later this array is initialized with
for i:=0 to 128 do mubyte_cswrite[i]:=null;
Why hasn't this caused any problems before the latest (2009-8+b1) bin-NMU?
My guess is that the GNU linker now produces another memory layout.
Note that in the generated C source global variables like the above array are
only declared "extern halfword mubytecswrite[128]", but are never defined.
Hence their linkage is "common" and the linker is free to use any layout.
For me mubytecswrite [128] is at the same address as extramembot (C variable
names)
and the later the has the value -268435455L (that's what's used for Pascal's
"null").
This is very unfortunate because extramembot is supposed to be positive and
this leads to totally bogus pointer calculations resulting in a segfault.
Suggested patch attached.
Cheers, Roderich
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric
APT policy: (500, 'oneiric'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39.2 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages texlive-binaries depends on:
ii ed 1.5-1 The classic UNIX line editor
ii libc6 2.13-10 Embedded GNU C Library: Shared lib
ii libfontconfig1 2.8.0-3 generic font configuration library
ii libfreetype6 2.4.4-2 FreeType 2 font engine, shared lib
ii libgcc1 1:4.6.1-2 GCC support library
ii libkpathsea5 2009-8+b1 TeX Live: path search library for
ii libncurses5 5.9-1 shared libraries for terminal hand
ii libpaper1 1.1.24+nmu1 library for handling paper charact
ii libpng12-0 1.2.44-2 PNG library - runtime
ii libpoppler13 0.16.7-2 PDF rendering library
ii libstdc++6 4.6.1-2 GNU Standard C++ Library v3
ii libx11-6 2:1.4.3-2 X11 client-side library
ii libxaw7 2:1.0.9-2 X11 Athena Widget library
ii libxmu6 2:1.1.0-2 X11 miscellaneous utility library
ii libxpm4 1:3.5.9-1 X11 pixmap library
ii libxt6 1:1.1.1-2 X11 toolkit intrinsics library
ii perl 5.14.0-1 Larry Wall's Practical Extraction
ii tex-common 2.10 common infrastructure for building
ii texlive-common 2009-11 TeX Live: Base component
ii zlib1g 1:1.2.5.dfsg-1 compression library - runtime
texlive-binaries recommends no packages.
texlive-binaries suggests no packages.
-- no debconf information
--- a/texk/web2c/tex.ch 2011-07-07 21:26:55.779344956 +0200
+++ b/texk/web2c/tex.ch 2009-08-12 23:40:14.000000000 +0200
@@ -371,7 +371,7 @@
{Initialize enc\TeX\ data.}
for i:=0 to 255 do mubyte_read[i]:=null;
for i:=0 to 255 do mubyte_write[i]:=0;
-for i:=0 to 128 do mubyte_cswrite[i]:=null;
+for i:=0 to 127 do mubyte_cswrite[i]:=null;
mubyte_keep := 0; mubyte_start := false;
write_noexpanding := false; cs_converting := false;
special_printing := false; message_printing := false;
--- a/texk/web2c/xetexdir/xetex.ch 2011-07-07 21:26:55.779344956 +0200
+++ b/texk/web2c/xetexdir/xetex.ch 2011-07-07 21:26:55.779344956 +0200
@@ -335,7 +335,7 @@
{Initialize enc\TeX\ data.}
for i:=0 to 255 do mubyte_read[i]:=null;
for i:=0 to 255 do mubyte_write[i]:=0;
-for i:=0 to 128 do mubyte_cswrite[i]:=null;
+for i:=0 to 127 do mubyte_cswrite[i]:=null;
mubyte_keep := 0; mubyte_start := false;
write_noexpanding := false; cs_converting := false;
special_printing := false; message_printing := false;
--- End Message ---
--- Begin Message ---
Source: texlive-bin
Source-Version: 2009-9
We believe that the bug you reported is fixed in the latest version of
texlive-bin, which is due to be installed in the Debian FTP archive:
libkpathsea-dev_2009-9_amd64.deb
to main/t/texlive-bin/libkpathsea-dev_2009-9_amd64.deb
libkpathsea5_2009-9_amd64.deb
to main/t/texlive-bin/libkpathsea5_2009-9_amd64.deb
texlive-bin_2009-9.diff.gz
to main/t/texlive-bin/texlive-bin_2009-9.diff.gz
texlive-bin_2009-9.dsc
to main/t/texlive-bin/texlive-bin_2009-9.dsc
texlive-binaries_2009-9_amd64.deb
to main/t/texlive-bin/texlive-binaries_2009-9_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 633011@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated texlive-bin package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 21 Jul 2011 00:10:10 +0900
Source: texlive-bin
Binary: texlive-binaries libkpathsea5 libkpathsea-dev
Architecture: source amd64
Version: 2009-9
Distribution: unstable
Urgency: high
Maintainer: Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description:
libkpathsea-dev - TeX Live: path search library for TeX (development part)
libkpathsea5 - TeX Live: path search library for TeX (runtime part)
texlive-binaries - Binaries for TeX Live
Closes: 633011
Changes:
texlive-bin (2009-9) unstable; urgency=high
.
* Add 73_tex_segfault patch, closes: #633011 (Frank Küster)
urgency set to high to fix this RC bug and help with poppler transition
* add texlive-binaries.lintian to override embedded lib t1lib
Checksums-Sha1:
c5d7f93e7f117df226e5060c1a576f41a0d8fc36 1379 texlive-bin_2009-9.dsc
d1b6b093cbb817a17142539b726d57388a78f286 71914 texlive-bin_2009-9.diff.gz
b395742e844951eb91ce1bf08fc13f729ed68b68 8066356 texlive-binaries_2009-9_amd64.deb
287ef267b390ddfe81254691c05e66ff9645ce41 134854 libkpathsea5_2009-9_amd64.deb
6d79ec978d7a320e3e29d0a2296586a0d64ac0e6 178684 libkpathsea-dev_2009-9_amd64.deb
Checksums-Sha256:
c066b63c18851973803a807777764e2ea640e04041b49f192a9ab5063efbd3f7 1379 texlive-bin_2009-9.dsc
360d41f00116529bd1c0d797a866fbf105eba74bf4bd98898c609bc92114662d 71914 texlive-bin_2009-9.diff.gz
4f1e118901ad203ee01d11f848b68a3b3baa3d775a6356a82d754a893d9dcea3 8066356 texlive-binaries_2009-9_amd64.deb
a4148505cdb38f459301fdbe7f6084a5927a093d8e1e68d5a9aa6507a1bd53b0 134854 libkpathsea5_2009-9_amd64.deb
2f675242da0f97db551aa8ce3ddb43b3b60e534ed1a1f2a4ced17ce766ae6928 178684 libkpathsea-dev_2009-9_amd64.deb
Files:
bfcfa2614f986ff3539927b40c848fbe 1379 tex optional texlive-bin_2009-9.dsc
5f5afc81013723c473791cdd56ec7a2b 71914 tex optional texlive-bin_2009-9.diff.gz
c22deb74127ad9ec0368b0aacd247c6d 8066356 tex optional texlive-binaries_2009-9_amd64.deb
eb8203c4dc9cd0574dc907ca5ad84028 134854 libs optional libkpathsea5_2009-9_amd64.deb
402781aa60816ef7095edd33face81b6 178684 libdevel optional libkpathsea-dev_2009-9_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iD8DBQFOJwME0r9KownFsJQRAhFmAJ9bfx/xm4L421l1CCaxIIhhrPjwFgCeJgzJ
7406459b3osC5LOSQ5OUtdU=
=vkoQ
-----END PGP SIGNATURE-----
--- End Message ---