[Gretl-devel] bug which is new in 1.7.4

Riccardo (Jack) Lucchetti r.lucchetti at univpm.it
Thu Apr 3 03:02:25 EDT 2008


On Thu, 3 Apr 2008, Riccardo (Jack) Lucchetti wrote:

> On Wed, 2 Apr 2008, Allin Cottrell wrote:
>
>>> BTW, during debugging (using a bunch of 'funcerr' statements), I
>>> stumbled over other quirks:
>>> 
>>> 1) At some point I got an error saying "IF depth exceeded" or
>>> something like that. Now I don't nest that many IF blocks, so I
>>> guess this happened because I repeatedly interrupted functions
>>> in the middle of IF blocks by using 'funcerr'. But that suggests
>>> that some "stacks" (or whatever they're called) are not properly
>>> cleaned up when a function exits with an error...
>> 
>> Yes, I suppose that must be the case.
>> 
>
> This probably isn't your case, but I remember I ran into this once, only to 
> discover, after many swearwords, that I had and "if" without an "endif" 
> somewhere.

tiny script exposing the problem:

<script>
nulldata 10
a = 3
loop 33
   if a>1
     print a
end loop
</script>


Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche

r.lucchetti at univpm.it
http://www.econ.univpm.it/lucchetti


More information about the Gretl-devel mailing list