Nmap Development mailing list archives
Re: Assertion error related to Lua garbage collection of nsock pcap objects
From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 30 Jul 2012 23:38:21 -0400
On Mon, Jul 30, 2012 at 6:35 PM, Daniel Miller <bonsaiviking () gmail com> wrote:
A different solution would be to make sure that the Lua garbage collector can reach the nsock_iod from the nse_nsock_udata.
This is already in the code: lua_getuservalue(L, 1); /* the socket user value */ lua_pushvalue(L, -2); /* the pcap socket nsiod */ lua_pushboolean(L, 1); /* dummy variable */ lua_rawset(L, -3); The pcap nsiod is anchored in the nsock userdata's uservalue (what used to be a userdata environment in Lua 5.1). What is the callstack for the error? -- - Patrick Donnelly _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Assertion error related to Lua garbage collection of nsock pcap objects Daniel Miller (Jul 30)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects Daniel Miller (Jul 30)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects Patrick Donnelly (Jul 30)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects Daniel Miller (Jul 31)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects Patrick Donnelly (Jul 31)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects Daniel Miller (Jul 31)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects jah (Jul 31)
- Re: Assertion error related to Lua garbage collection of nsock pcap objects Daniel Miller (Jul 31)