Skip to content

Instantly share code, notes, and snippets.

@Buristan
Created April 5, 2023 06:06
Show Gist options
  • Save Buristan/e6552b57e43ed4dc0e9e2d132fd639f4 to your computer and use it in GitHub Desktop.
Save Buristan/e6552b57e43ed4dc0e9e2d132fd639f4 to your computer and use it in GitHub Desktop.
Testcase for the LuaJIT commit "FFI: Fix missing cts->L initialization in argv2ctype()."
LUA_PATH="src/?.lua" gdb --args src/luajit -Ohotloop=1 -jdump=i -e '
local ffi = require "ffi"
local t = {}
local i = 1
while i < 5 do
t[i] = ffi.new("uint64_t", i)
i = i * 2
end
print(t)
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment