Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 2453] segmentation fault with wslua script

Date: Mon, 14 Apr 2008 14:34:02 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2453





--- Comment #8 from LEGO <luis.ontanon@xxxxxxxxx>  2008-04-14 14:34:00 GMT ---
(In reply to comment #7)
> One of my guess was the wslua garbage collector, so I added debug code into all
> gc functions, but none of them were called.
> 

However it is the garbage collection.

TreeItem objects are not __gced by lua, that is taken care by the Wireshark
core, we work with a pointer to the actual proto_tree* , that pointer is
NULLified whenever the TreeItem object becomes invalid (right after the
dissector returns). That to avoid bailing if a lua variable referencing it is
used afterwards.

I probably did something wrong in that part, as that is the part of code I did
not  replicate in the C dummy.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.