[lltx] endless loop
Khaled Hosny
khaledhosny at eglug.org
Thu Feb 17 14:06:18 CET 2011
On Thu, Feb 17, 2011 at 01:07:59PM +0100, Manuel Pégourié-Gonnard wrote:
> Le 17/02/2011 12:53, Khaled Hosny a écrit :
> >> May I suggest that you add to the code a global counter of how many times
> >> database (re-)generation was attempted and stop trying if it reaches, say 3.
> >> This way, future similar bugs would not trigger an endless loop. (Interestingly
> >> enough, on my Linux machine, I rapidly got a stack overflow, while on the
> >> windows (virtual) box, I had to kill the process after a few minutes.)
> >
> > The loop itself was the bug, it shouldn't be looping at all (I was
> > simply calling a function1 that calls function2 but function2 were in
> > turn calling function1 again :) The new version already uploaded to
> > CTAN.
> >
> I understand that. I just wanted to suggest an additional safety net so that, if
> another similar bug ever happens, it is catched more cleanly.
The database generation code should already run at most once, but here
it didn't get executed actually, it was looping very early.
Regards,
Khaled
--
Khaled Hosny
Egyptian
More information about the lualatex-dev
mailing list