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

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



On 21.11.11 Matthew Wakeling (matthew@wakeling.homeip.net) wrote:

Hi,

> If I run detex with the argument "--version", then I get:
> 
> detex: warning: unknown option ignored - -
> detex: warning: unknown option ignored - v
> detex: warning: unknown option ignored - r
> detex: warning: unknown option ignored - i
> detex: warning: unknown option ignored - o
> Segmentation fault
> 
> While this may seem an odd thing to do, the segfault is worrying,
> and should be investigated.  A locally-compiled version of detex
> 2.8 downloaded from upstream does not exhibit the same problem - it
> produces the following:
> 
> detex: warning: unknown option ignored - -
> detex: warning: unknown option ignored - v
> detex: error: -e option requires and argument
> 
Just for the records: I can reproduce the problem using unstable.
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’

H.
-- 
sigmentation fault

Attachment: signature.asc
Description: Digital signature


Reply to: