lua-users home
lua-l archive

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


> On 2021-11-25 16:03, Roberto Ierusalimschy wrote:
> 
> > But, if the bad thing happens in free_unlocked, then maybe the
> > problem is being caused by memory corruption somewhere else in the
> > program?
> 
> Running this
> [...]
> produces
> [...]
> Practically the same. So the contents of the C-module are probably
> irrelevant.

I was thinking a memory corruption somewhere else, not necessarily
in the C module. Can you comment out the call to dlclose (inside
function lsys_unloadlib in file loadlib.c:129), just to check
whether everything else is Ok?

-- Roberto