[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug in Lua 5.1.4 with GC, userdata and fenv
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 3 Aug 2010 17:00:06 -0300
> > Actually the method works very well with the exception of the Lua
> > termination. If I terminate the Lua top level with ctrl-D
> > (end-of-file) it seems that the whole machinery fails to ensure the
> > proper order for finalizers.
>
> It seems that I've found the cause of the problem but it is still very
> unclear to me. The problem arise in the function lua_close, shown
> below:
>
> [...]
I think the proper solution would be to elliminate the references from
plot to lines (or at least to elliminate the use of such references when
finalizing a plot). Surely a plot may exist without a line, because it is
created first (when there are no lines around).
-- Roberto