Invalid free in luac 5.4.4
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Invalid free in luac 5.4.4
- From: Kurt Jung <kurt.w.jung@...>
- Date: 2022年8月15日 18:11:21 -0400
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