Hello!
2013/7/30 cheng zhou:
> 春哥好:
> 我试用了systemtap对5.2进行脚本堆栈 打印 仿照你的nginx-systemtap-lua-bt的脚本实现, 但是发现在5.1时
> 打印的lu_state的相关变量是正确的,但是5.2使用$L$打印出来lua_state的相关变量值都是些非正常值,
> 想请教下春哥是不是lua5.2对lua_state内存布局做了特殊处理, 还是systemtap使用的方式不正确, 谢谢
Lua 5.2 的内部实现发生了较大的变化。你需要重新把 Lua 5.2 的 lua_getstack 和 lua_getinfo
函数移植到 systemtap 脚本语言中来。欢迎贡献补丁 :)
同时抄送给 openresty 中文邮件列表:https://groups.google.com/group/openresty
Best regards,
-agentzh