I compiled protobuf for lua under Mac OS, one of my post-dissector require to load protobuf.lua file. After finish loading wireshark will crash with Bus Error 10 without giving any details. my lua script run fine without here is the protobuf-for-lua repo https://github.com/sean-lin/protoc-gen-lua Is there a flag i can use to check the error in detail ? alternatively , is there any scripting language i can use other than lua for dissector ? I know there is already protobuf-dissector for wireshark , but it require re-compiling which is hard to do in Mac. asked 16 Jul '14, 04:01 24hours edited 16 Jul '14, 17:18 Guy Harris ♦♦ |
One Answer:
" Did you get a stack trace? I.e., when it crashed with the bus error, did a window pop up with details? And this doesn't appear to be a Wireshark bug, but rather something in protobuf-for-lua. Are you supposed to be using " There is no other scripting language for Wireshark other than Lua. What is it you're trying to do exactly? Create a new dissector? Create a tap? Why did you need protobuf-for-lua? answered 16 Jul '14, 07:16 Hadriel |
Wireshark simply fail with bus error 10 and nothing else.
Im trying to reverse engineer a client-server model using protobuf (proto file already reversed and obtained ). yes, I used
required "myprogram_proto"
to parse the udp data. and myprogram_proto.lua require protobuf I tried to loadrequired "myprogram_proto"
using lua interpreter and does not encounter any error.https://code.google.com/p/protobuf-wireshark/ Im trying to replicate the function above without having to recompile wireshark , since compiling in MacOS seems to be a pain.
protobuf-for-lua require pb.so file which link lua to c implementation, the most likely reason is I compile pb.c and linked to different Lua version with wireshark
If you open up the Console application (in the Utilities subfolder of Applications), does it show a crash report for "wireshark-bin" under "User Diagnostic Reports"?