lua-users home
lua-l archive

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


Thanks for the report. See
http://lua-users.org/lists/lua-l/2022-04/msg00027.html

On Mon, 15 Aug 2022 at 18:11 Kurt Jung <kurt.w.jung@gmail.com> wrote:
When compiling multiple Lua files with luac (5.4.4) on Ubuntu I
encounter the following:

> free(): double free detected in tcache 2
> Aborted

I think this happens because of the line

> luaM_freearray(L,f->lineinfo,f->sizelineinfo);

in the combine() function of luac.c. At least, when that line is
commented, valgrind reports no errors and no unfreed memory.

-- Kurt Jung