[tex-live] laulatex quiting: fix your writable cache path

Taco Hoekwater taco at elvenkind.com
Wed Jun 26 09:46:37 CEST 2013

On 06/26/2013 12:43 AM, Dan Luecking wrote:
> On Tue, Jun 25, 2013 at 02:03:22 CEST, Karl Berry <karl at freefriends.org>
> wrote
>>     \documentclass{article}
>>     \usepackage{graphicx}
>>     \begin{document}
>>     \includegraphics[width=0.9\textwidth]{1-4.jpg}
>>     \end{document}
>> Regrettably, it also crashes for me on i386-linux, with both the
>> lualatex released with TL13 (beta-0.76.0-2013052801) and the "bug fix"
>> binary (beta-0.76.0-2013061720).
> My version works and it is numerically between your two:
> (beta-0.76.0-2013061707).
> Also, my system is Windows 7, 32bit, so unless I hit a narrow window
> where only that binary lacks the bug, this opinion:

(w32 has a different build system from everything else. )

>> It is likely a problem with some variable size difference between 32bit
>> and 64bit (and it seems likely that all 32bit platforms crash).
> (from Taco) would seems not to be completely correct.

Karl sent me an unstripped crashing binary, and I could use gdb to
inspect the data at the time of the crash. The problem seems to be
that during compilation of some files, off_t is 32bits, and in other
files 64bits (see backtrace below).

Looking at the two files, one of them loads <kpathsea/c-auto.h>,
but the other one does not. Assuming that off_t should be 64bits,
this should do the trick:

Index: source/texk/web2c/luatexdir/image/writejpg.w
--- source/texk/web2c/luatexdir/image/writejpg.w	(revision 4639)
+++ source/texk/web2c/luatexdir/image/writejpg.w	(working copy)
@@ -25,6 +25,8 @@

  #include <assert.h>
  #include "ptexlib.h"
+#include <kpathsea/c-auto.h>
  #include "image/image.h"
  #include "image/writejpg.h"

Could someone test that please?

Unfortunately, there may be other files with the same problem, so I 
wonder, would it not be better to add  <kpathsea/c-auto.h> to
ptexlib.h instead?

Best wishes,
(who is a little bit annoyed at yet another LARGE_FILE bug after having
been assured again and again that it would not be a problem at all)

Program received signal SIGABRT, Aborted.
0xf7fdb430 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fdb430 in __kernel_vsyscall ()
#1  0xf7e071df in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xf7e0a825 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xf7e00085 in ?? () from /lib/i386-linux-gnu/libc.so.6
#4  0xf7e00137 in __assert_fail () from /lib/i386-linux-gnu/libc.so.6
#5  0x080b31b4 in write_jpg (pdf=0x90a5008, idict=0x92bde48) at 
#6  0x080b018c in write_img (pdf=0x90a5008, idict=0x92bde48) at 
#7  0x080c019d in pdf_end_page (pdf=0x90a5008) at 
#8  0x080c5855 in ship_out (pdf=0x90a5008, p=461, 
shipping_mode=SHIPPING_PAGE) at 
#9  0x080d6ff1 in box_end (box_context=1073872897) at 
#10 0x080d7e58 in handle_right_brace () at 
#11 0x080d5eb8 in main_control () at 
#12 0x080d31d0 in main_body () at 
#13 0x080af280 in main (ac=2, av=0xffffd424) at 
(gdb) up 5
#5  0x080b31b4 in write_jpg (pdf=0x90a5008, idict=0x92bde48) at 
300	../../../texk/web2c/luatexdir/image/writejpg.w: No such file or 
(gdb) p sizeof(off_t)
$1 = 4
(gdb) up 1
#6  0x080b018c in write_img (pdf=0x90a5008, idict=0x92bde48) at 
589	../../../texk/web2c/luatexdir/image/writeimg.w: No such file or 
(gdb) p sizeof(off_t)
$2 = 8

More information about the tex-live mailing list