Wireshark mailing list archives
Re: Luacov with Wireshark Lua dissector plugin
From: Peter Wu <peter () lekensteyn nl>
Date: Fri, 2 Feb 2018 16:31:09 +0100
On Thu, Feb 01, 2018 at 04:14:33PM +0530, Shakthi Kannan wrote:
But, the plugin fails to load with the message "~/.luarocks/share/lua/5.1/luacov/hook.lua:26:attempt to index global 'debug' (a function value)". I had filed a query to Luacov at: https://github.com/keplerproject/luacov/issues/55 In luacov/hook.lua, the following debug function is being invoked: -- Get name of processed file local name = debug.getinfo(level, "S").source -- line #26 The Luacov author mentions that Wireshark is invoking the 'debug' function instead of the 'debug' module. How can this be resolved?
It looks like "console.lua" is setting the "debug" function. Perhaps those "helpers" should be removed or namespaced, as a workaround you can just comment the debug function: -- function debug(x) ... end -- Kind regards, Peter Wu https://lekensteyn.nl ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: Luacov with Wireshark Lua dissector plugin Shakthi Kannan (Feb 01)
- Re: Luacov with Wireshark Lua dissector plugin Peter Wu (Feb 02)
- Re: Luacov with Wireshark Lua dissector plugin Shakthi Kannan (Feb 04)
- Re: Luacov with Wireshark Lua dissector plugin Peter Wu (Feb 02)