Lost newline somehow.
compiling trunk currently fails: This is TIE, CWEB Version 2.4. (Web2C 7.5.6) Copyright (c) 1989,1992 by THD/ITI. All rights reserved. (../../../src/texk/web2c/pdftexdir/pdftex.web) (../../../src/texk/web2c/pdftexdir/tex.ch0) (../../../src/texk/web2c/tex.ch) (../../../src/texk/web2c/pdftexdir/pdftex.ch) ....500....1000....1500....2000....2500....3000....3500....4000....4500....5000....5500....6000....6500....7000....7500....8000....8500....9000....9500....10000....10500....11000....11500....12000....12500....13000....13500....14000....14500....15000....15500....16000....16500....17000....17500....18000....18500....19000....19500....20000....20500....21000....21500....22000....22500....23000....23500....24000....24500....25000....25500....26000....26500....27000....27500....28000....28500....29000....29500....30000....30500....31000....31500....32000....32500....33000....33500....34000....34500....35000....35500....36000....36500....37000....37500....38000....38500....39000.. (No errors were found.) ./tangle ../../../src/texk/web2c/pdftexdir/pdftex.web pdftex.ch This is TANGLE, Version 4.5 (Web2C 7.5.6) *1*17*25*38*54*72*99*110*128*133*151*180*191*217*221*225*229*238*274*290*311*319*322*343*354*388*430*492*515*539*567*611*620*673*680*692*696*705*729*813*853*872*892*941*986*1035*1065*1074*1093*1116*1141*1154*1203*1230*1311*1383*1474*1507*1515*1517*1634*1855*1864*1866*1878*1887*1890 Writing the output file.....500.....1000.....1500.....2000.....2500.....3000.....3500.....4000.....4500.....5000.....5500.....6000.....6500.....7000.....7500.....8000.....8500.....9000.....9500.....10000.....10500.....11000.....11500.....12000.....12500 Done. 1781 strings written to string pool file. (No errors were found.) srcdir=../../../src/texk/web2c /bin/sh ../../../src/texk/web2c/web2c/convert pdftex Lost newline somehow. ../../../src/texk/web2c/web2c/convert: conversion of pdftex.p failed, moving dregs: ../../../src/texk/web2c/web2c/convert: mv pdftex[0-9].c pdftexini.c pdftexd.h pdftexcoerce.h /tmp make[1]: *** [pdftexd.h] Error 1 make[1]: Leaving directory `/home/ms/tex/pdftex/svn/trunk/source/build/texk/web2c' make: *** [pdftexbin] Error 2 What does this "Lost newline somehow." mean, i.e. what's wrong? TIA Martin
"Martin Schröder"
compiling trunk currently fails:
This is TIE, CWEB Version 2.4. (Web2C 7.5.6) Copyright (c) 1989,1992 by THD/ITI. All rights reserved. (../../../src/texk/web2c/pdftexdir/pdftex.web) (../../../src/texk/web2c/pdftexdir/tex.ch0) (../../../src/texk/web2c/tex.ch) (../../../src/texk/web2c/pdftexdir/pdftex.ch) ....500....1000....1500....2000....2500....3000....3500....4000....4500....5000....5500....6000....6500....7000....7500....8000....8500....9000....9500....10000....10500....11000....11500....12000....12500....13000....13500....14000....14500....15000....15500....16000....16500....17000....17500....18000....18500....19000....19500....20000....20500....21000....21500....22000....22500....23000....23500....24000....24500....25000....25500....26000....26500....27000....27500....28000....28500....29000....29500....30000....30500....31000....31500....32000....32500....33000....33500....34000....34500....35000....35500....36000....36500....37000....37500....38000....38500....39000.. (No errors were found.) ./tangle ../../../src/texk/web2c/pdftexdir/pdftex.web pdftex.ch This is TANGLE, Version 4.5 (Web2C 7.5.6) *1*17*25*38*54*72*99*110*128*133*151*180*191*217*221*225*229*238*274*290*311*319*322*343*354*388*430*492*515*539*567*611*620*673*680*692*696*705*729*813*853*872*892*941*986*1035*1065*1074*1093*1116*1141*1154*1203*1230*1311*1383*1474*1507*1515*1517*1634*1855*1864*1866*1878*1887*1890 Writing the output file.....500.....1000.....1500.....2000.....2500.....3000.....3500.....4000.....4500.....5000.....5500.....6000.....6500.....7000.....7500.....8000.....8500.....9000.....9500.....10000.....10500.....11000.....11500.....12000.....12500 Done. 1781 strings written to string pool file. (No errors were found.) srcdir=../../../src/texk/web2c /bin/sh ../../../src/texk/web2c/web2c/convert pdftex Lost newline somehow. ../../../src/texk/web2c/web2c/convert: conversion of pdftex.p failed, moving dregs: ../../../src/texk/web2c/web2c/convert: mv pdftex[0-9].c pdftexini.c pdftexd.h pdftexcoerce.h /tmp make[1]: *** [pdftexd.h] Error 1 make[1]: Leaving directory `/home/ms/tex/pdftex/svn/trunk/source/build/texk/web2c' make: *** [pdftexbin] Error 2
What does this "Lost newline somehow." mean, i.e. what's wrong?
No newline at end of file? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum
2008/1/7, Martin Schröder
../../../src/texk/web2c/web2c/convert pdftex
What does this "Lost newline somehow." mean, i.e. what's wrong?
What's happening is that in this pipeline in convert
eval 'cat ../../../src/texk/web2c/web2c/common.defines
../../../src/texk/web2c/web2c/texmf.defines
../../../src/texk/web2c/pdftexdir/pdftex.defines pdftex.p |
./web2c/web2c -htexmfmp.h -t -cpdftexcoerce | ./web2c/fixwrites
-t pdftex | ./web2c/splitup -i -l 11500 pdftex '
the first web2c segfaults.
gdb gives this:
Program received signal SIGSEGV, Segmentation fault.
0x00002b62d7b2a20c in vfprintf () from /lib64/libc.so.6
(gdb) bt
#0 0x00002b62d7b2a20c in vfprintf () from /lib64/libc.so.6
#1 0x00002b62d7b33468 in fprintf () from /lib64/libc.so.6
#2 0x000000000040252b in yyparse () at
../../../../src/texk/web2c/web2c/web2c.y:192
#3 0x0000000000401892 in main (argc=4, argv=0x7fffd31dce38) at
../../../../src/texk/web2c/web2c/main.c:264
192 fprintf(coerce, "#define %s_regmem register memoryword
*eqtb=zeqtb;\n",
193 my_routine);
(gdb) p my_routine
$1 = "closefilesandterminate\000ge", '\0'
"Martin Schröder"
2008/1/8, Martin Schröder
: Most likely some limit in web2c is reached...
This is confusing: It works on SUSE 10.1, OpenBSD 4.1, Debian 3.1 & 4.0, but fails on SUSE 10.2 and 10.3... %-(
Well, if it is a buffer overflow, the effects will depend on library layout and allocation mechanisms. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum
participants (2)
-
David Kastrup
-
Martin Schröder