LuaJIT / LuaJIT

Mirror of the LuaJIT git repository

Home Page:http://luajit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0022 CRASH detected in str due to a fault at or near 0x00005555557f4920 leading to SIGSEGV

pwnhacker0x18 opened this issue · comments

                       405: GCRef gc_sweep(g = (global_State *)0x7ffff7e533f0, p = (GCRef *)0x7ffff74f65d0, lim = (uint32_t)<optimized out>) {

                       |||:

                       |||: /* Local reference: GCobj * o = 0x7ffff70800d0; */

                       |||: /* Local reference: global_State * g = 0x7ffff7e533f0; */

                       422:       if (o == gcref(g->gc.root))

                       423:     setgcrefr(g->gc.root, o->gch.nextgc);  /* Adjust list anchor. */

                       424:       gc_freefunc[o->gch.gct - ~LJ_TSTR](g, o);

                       |||:

                       ---: }

                       at lj_gc.c:424

poc.txt

The poc.txt does not reproduce for me (using git head, 5790d25).

Looks like a duplicate of #1152. The issue is not reproduced on defe61a ("Rework stack overflow handling.") and leads to the crash right before.