ChargePoint / wireshark-v2g

Dissector for the V2G Protocols
Other
43 stars 18 forks source link

Lua error: dissect_tcp_pdus dissect_func: ... v2g.lua:166: attempt to index a nil value #41

Closed skrtre closed 1 year ago

skrtre commented 1 year ago

Build standalone plugin for Linux (Ubuntu 22.04, Wireshark 4.0.3). No errors or warnings during build process but when analyzing V2GTP packets the Lua error. Any ideas how to fix?

Gomox11 commented 1 year ago

@skrtre I run into the exact same issue with "main" and the "0.6.0" tag. Makes the plugin impossible to use for me. Did you find any solution yourself? Or does another developer have any advice?

malsyned commented 1 year ago

This is an error that I get when Wireshark can find v2g.lua but can't find v2gexi.so. Where did you copy each of those files to?

jhart-cpi commented 1 year ago

The Lua script has been integrated into the package now. I've found that if you have the Lua script in local plugins that Wireshark scans for, it can conflict with the integrated package version if you have previously installed the Lua plugin manually.

Gomox11 commented 1 year ago

So here is what I did from a "clean" state (no wireshark installed, no plugins installed, Ubuntu 20.04 LTS).

Standalone

Following the README for a standalone plugin installation:

... which ends in:

Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/lib/wireshark/plugins/4.0/epan/v2gexi.so
-- Set runtime path of "/usr/local/lib/wireshark/plugins/4.0/epan/v2gexi.so" to ""
-- Installing: /usr/local/lib/wireshark/plugins/4.0/../v2g.lua

But if I then try to run wireshark, it says:

wireshark          
wireshark: symbol lookup error: wireshark: undefined symbol: wslua_plugins_get_descriptions
chardin-cpi commented 1 year ago

This should be fixed now - loaded a Wireshark with a standalone and got the plugin registered with the symbols