Wireshark-bugs: [Wireshark-bugs] [Bug 12328] New: Crash when reloading Lua script when Field is
Date: Fri, 08 Apr 2016 22:13:22 +0000
Bug ID 12328
Summary Crash when reloading Lua script when Field is gone
Product Wireshark
Version Git
Hardware All
OS All
Status CONFIRMED
Severity Major
Priority Low
Component Dissection engine (libwireshark)
Assignee bugzilla-admin@wireshark.org
Reporter peter@lekensteyn.nl
CC hadrielk@yahoo.com, stig@bjorlykke.org

Build Information:
v2.1.0rc0-2643-g57b2a84
--
During reloading of Lua scripts, Wireshark crashes if Lua scripts referencing
other fields are gone.

Steps to reproduce:
1. gdb -ex r -q --args wireshark -r test/captures/dns_port.pcap
-Xlua_script:test/lua/dissector.lua
2. (if https://code.wireshark.org/review/14870 is already applied, quick hack
to remove fields:) chmod -r test/lua/dissector.lua
3. Reload Lua plugins (Ctrl+Shift+L)
4. (Restore permissions as needed:) chmod +r test/lua/dissector.lua

Expected results:
Lua script is not loaded anymore, previously Fields are not referenced anymore.

Actual results:
Crash because fields are still primed.

Additional info:
It has something to do with lua_prime_all_fields.
I tried to extend wslua_cleanup with means to detach the tap listener, free the
dfilter, but then it crashes somewhere else.


You are receiving this mail because:
  • You are watching all bug changes.