actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
435 stars 94 forks source link

lua crash #162

Closed fesily closed 1 year ago

fesily commented 2 years ago
require "luadebug" : start "@/Users/apple/func/typescripttolua_test/out/debug.sock" :event "wait"

local co =coroutine.create(function()
    coroutine.yield()
end)
coroutine.resume(co)
coroutine.resume(co)
fesily commented 2 years ago

试了内置的lua51和lua54,都是crash

actboy168 commented 2 years ago

无法重现

fesily commented 2 years ago

时序问题,我这边是带lldb运行必crash.不带lldb没事。

fesily commented 2 years ago

可能跟调试器断开这个事件有关系,因为我这边的有个比较大的程序一旦断开lua调试器就crash了,而且是在没有lldb调试的情况下。

fesily commented 2 years ago

Windows我试了的确不能复现,应该是mac的问题

actboy168 commented 2 years ago

我在macos下也无法重现

fesily commented 2 years ago

难道是M1的apple特有的问题,那我来想办法修一下

fesily commented 1 year ago

确定是ARM64下LUAJIT自身的问题,超出我的本事了,定位不出来,全是生成的汇编代码