On 4 May 2016 at 22:40, Vincent Belaïche <[email protected]> wrote:
>> $ etex '\toks0={\input test.texi}\the\toks0'
>> This is e-TeX, Version 3.141592-2.2 (Web2C 7.5.4)
>> entering extended mode
>>
>> *x
>> *** Error in `etex': malloc(): memory corruption: 0x09d4f6d0 ***
>>
>> ============
>> (I typed the "x" here as input.) I may try upgrading to a newer
>> version and see if the same happens.
>
>
> That is defintely a bug : any crash is a bug. You should try
>
> etex '\toks0={\input toto.texi\relax}\the\toks0'
>
> because otherwise when \the\toks0 is expanded, then the \input command
> is waiting from input to conclude the filename, as the filename has to
> be terminated by a space or \relax.
>
> The bug is probably that with the \input expansion etex reads past the
> end of the argument string an ``infinite'' file name and doing so corrupt
> somehow the memory.

Thanks, your suggestion worked for me. As you say the filename needs
to be terminated.
>
>    Vincent.

Reply via email to