Home page logo

nmap-dev logo Nmap Development mailing list archives

Ncat regression testing on Windows - results
From: Jacek Wielemborek <wielemborekj1 () gmail com>
Date: Thu, 8 Aug 2013 21:17:11 +0200


I recently ran ncat-test.pl under Cygwin and found quite a lot of
unexpected failures and some MSVC crash windows. In order to capture
them all, I set up a video recording program on the VM. Here's the
copied error message:

Microsoft Visual C++ Debug Library
Debug Error!

Program: ...n\home\d33tah\shared\ncat\ncat-env-ncatins\ncat\test\ncat.exe


- abort() has been called

(Press Retry to debug the application)
Abort   Retry   Ignore

The aborts happened on the following tests:

PASS --broker mode (tcp)
PASS --broker mode (tcp ssl)
FAIL --max-conns 1 --keep-open with exec (tcp)
FAIL --max-conns 1 --keep-open with exec (tcp ssl)
FAIL --max-conns 10 --keep-open with exec (tcp)
FAIL --max-conns 10 --keep-open with exec (tcp ssl)

Note that the tests happened on my ncat-env-conninfo branch, but my
previous tests on the code without my patches looked almost the same.
Also, I modified ncat-test.pl a bit, removing most of the sctp tests.
I made sure that the line numbers didn't change, though. Here's the

--- fixed-ncat-test.pl  2013-08-07 21:11:07.198800000 +0200
+++ ncat-test.pl        2013-08-07 21:11:08.519800000 +0200
@@ -16,7 +16,7 @@
 use IPC::Open3;
 use strict;

-my $NCAT = "./ncat.exe";
+my $NCAT = "../ncat";
 my $HOST = "localhost";
 my $IPV6_ADDR = "::1";
 my $PORT = 40000;
@@ -180,11 +180,11 @@
 # Like server_client_test, but run the test once each for each mix of TCP, UDP,
 # SCTP, and SSL.
 sub server_client_test_all {
-       server_client_test_multi(["tcp", "udp", "tcp ssl"], @_);
+       server_client_test_multi(["tcp", "udp", "sctp", "tcp ssl",
"sctp ssl"], @_);

 sub server_client_test_tcp_sctp_ssl {
-       server_client_test_multi(["tcp", "tcp ssl"],@_);
+       server_client_test_multi(["tcp", "sctp", "tcp ssl", "sctp ssl"], @_);

 sub server_client_test_tcp_ssl {
@@ -192,7 +192,7 @@

 sub server_client_test_sctp_ssl {
-#      server_client_test_multi(["sctp", "sctp ssl"], @_);
+       server_client_test_multi(["sctp", "sctp ssl"], @_);

 # Set up a proxy running on $PROXY_PORT. Start a server on $PORT and connect a
@@ -370,11 +370,11 @@

 sub max_conns_test_all {
-       max_conns_test_multi(["tcp", "udp", "tcp ssl"], @_);
+       max_conns_test_multi(["tcp", "udp", "sctp", "tcp ssl", "sctp ssl"], @_);

 sub max_conns_test_tcp_sctp_ssl {
-       max_conns_test_multi(["tcp", "tcp ssl"], @_);
+       max_conns_test_multi(["tcp", "sctp", "tcp ssl", "sctp ssl"], @_);

 sub max_conns_test_tcp_ssl {

Oh, there's also problem with "--send-only client" tests - although in
the attached log they succeeded, in reality I had to kill Ncat for the
tests to continue because they obviously fell into an infinite loop.

I can re-run the tests if there's any more info you need. I can share
the video as well (30 megabytes).

Jacek Wielemborek

Attachment: test.log

Sent through the dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]