[PATCH] Fixed a segfault when unsinking 64-bit pointers.

  • From: Thibault Charbonnier <thibaultcha@xxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 10 May 2019 19:33:17 -0700

This is a multi-part message in MIME format.Hello,

I don't believe this bug has been reported here yet.

A few weeks ago, Luke Gorrie and myself had fun investigating a segfault
in GC64 mode. The fix has been committed to RaptorJIT[1] and OpenResty's
fork of LuaJIT[2].

Attached are two patches: the fix itself and the test case committed to
luajit2-test-suite[3].

We hope that this patch makes it way upstream or into other existing
forks out there.

Cheers,
Thibault


[1]:
https://github.com/raptorjit/raptorjit/commit/73323b7c6a5003c67f32bffe7345c31e8a8c5204

[2]:
https://github.com/openresty/luajit2/commit/83c82b550ec0f59d4c73231a8594fd83165d6f54

[3]:
https://github.com/openresty/luajit2-test-suite/commit/907c536c210ebe6a147861bb4433d28c0ebfc8cd

Other related posts:

  • » [PATCH] Fixed a segfault when unsinking 64-bit pointers. - Thibault Charbonnier