Nmap Development mailing list archives

Re: Lua 5.2: "error in __gc metamethod (bad argument #1 to '?' (dnet expected, got userdata))"


From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 28 May 2012 17:50:22 -0400

On Mon, May 28, 2012 at 4:57 PM, David Fifield <david () bamsoftware com> wrote:
I'm getting a reproducible error:

./nmap --script broadcast-ping -d

Starting Nmap 6.01 ( http://nmap.org ) at 2012-05-28 13:50 PDT
PORTS: Using top 1000 ports found open (TCP:1000, UDP:0, SCTP:0)
--------------- Timing report ---------------
 hostgroups: min 1, max 100000
 rtt-timeouts: init 1000, min 100, max 10000
 max-scan-delay: TCP 1000, UDP 1000, SCTP 1000
 parallelism: min 0, max 0
 max-retries: 10, host-timeout: 0
 min-rate: 0, max-rate: 0
---------------------------------------------
NSE: Loaded 1 scripts for scanning.
NSE: Script Pre-scanning.
NSE: Starting runlevel 1 (of 1) scan.
NSE: Starting broadcast-ping.
Initiating NSE at 13:50
NSE: Finished broadcast-ping.
NSE: Finished broadcast-ping.
Completed NSE at 13:50, 3.12s elapsed
NSE: Script Engine Scan Aborted.
An error was thrown by the engine: error in __gc metamethod (bad argument #1 to '?' (dnet expected, got userdata))
Pre-scan script results:
| broadcast-ping:
|   IP: 192.168.0.4    MAC: 3c:07:54:09:f1:de
|   IP: 192.168.0.190  MAC: 00:16:cb:ae:d4:ac
|_  Use --script-args=newtargets to add the results as targets
NSE: Script Post-scanning.
NSE: Starting runlevel 1 (of 1) scan.
Read from /home/david/nmap-git: nmap-services.
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 3.17 seconds
          Raw packets sent: 0 (0B) | Rcvd: 0 (0B)

This is happening since the Lua 5.2 change. Reverting back to r28685
makes it go away.

This should be fixed in 28735.

Once, I saw this slightly different error:
nse_restore: WAITING_TO_RUNNING error!
error in __gc metamethod (bad argument #1 to '?' (dnet expected, got userdata))

Because it's an error in a __gc metamethod, it can occur anywhere at
anytime. So this isn't something to worry about.

-- 
- 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: