waterslang

Results 3 comments of waterslang

非常感谢,这样就编译出来的。 找到dump点了。只是还没有头绪。 我使用的是 lua5.1的版本,脚本那边是一个return语句后出错的。具体原因分析,我还在熟悉lua源码,你也可以参照一下。 这里的出错时的栈。 #0 ci2proto (ci=0x5555563d7700) at src/remotedebug/rdebug_hookmgr.cpp:51 #1 0x00007ffff6f32cd1 in hookmgr::break_update (this=0x55555628e038, hL=0x5555561d0008, ci=0x5555563d7700, event=1) at src/remotedebug/rdebug_hookmgr.cpp:165 #2 0x00007ffff6f32dd4 in hookmgr::break_hook_return (this=0x55555628e038, hL=0x5555561d0008, ar=0x7fffffffe5d0) at src/remotedebug/rdebug_hookmgr.cpp:182 #3...

break_update(hL, hL->base_ci + ar->i_ci, ar->event); 这句里面 ar->i_ci 的偏移值是0. 嗯,我用的lua是 lua-coco的版本。 使用我的lua是用我的lua文件替换项目的lua51目录么? 我先试一试。 比较奇怪的是,有些情况是可以正常运行的,做了一些修改后,就会dump。 ![image](https://user-images.githubusercontent.com/26756437/134321870-0e65e5f0-9eae-441a-b169-3cd2b7b58777.png) dump原因是这一句里的 func,是个未初始化的空值。

我排查一下,如果有结论,在回来知会。非常感谢你的帮助。