[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#649487: detex: segfault with argument "--version"



On Mon, 21 Nov 2011, Hilmar Preusse wrote:

Just for the records: I can reproduce the problem using unstable.

Thanks. For the record, it appears to be the "-e" option that causes trouble - it is expecting an argument, and if no further argument exists then there is a segfault.

Recompiling the texlive-binaries package does not solve the problem.
Then I download the detex package from
http://www.cs.purdue.edu/homes/trinkle/detex/ (it is not on CTAN
AFAICT), but failed to compile it

hille@sid:~/detex-2.8 $ make
sed -f states.sed detex.l > xxx.l
lex  xxx.l
rm -f xxx.l
mv lex.yy.c detex.c
cc -O    -c -o detex.o detex.c
xxx.l:77:7: error: conflicting types for ?malloc?

The latest version downloaded from source does not have this bug. What version is in texlive-binaries?

To get the compile to work, remove the line "char *malloc();" from detex.l. The return type char* conflicts with the Linux malloc return type of void*.

Matthew

--
The early bird gets the worm, but the second mouse gets the cheese.



Reply to: