Public bug reported:

Using Ubuntu 21.04 on bare metal. When attempting to perform a scan of
an entire subnet, I receive the following error:

sudo nmap -sn 192.168.0.1/24
Starting Nmap 7.80 ( https://nmap.org ) at 2021-10-14 10:14 EDT
nmap: Target.cc:503: void Target::stopTimeOutClock(const timeval*): Assertion 
`htn.toclock_running == true' failed.
Aborted

However, if I specify a smaller range, the scan is successful:

sudo nmap -sn 192.168.0.1-30
Starting Nmap 7.80 ( https://nmap.org ) at 2021-10-14 10:14 EDT
Nmap scan report for _gateway (192.168.0.1)
Host is up (0.0071s latency).
MAC Address: XXXXXX (XXXXXX)
Nmap scan report for 192.168.0.26
Host is up (0.047s latency).
MAC Address: XXXXXX (XXXXXX)
Nmap done: 30 IP addresses (2 hosts up) scanned in 1.15 seconds

Adding --min-parallelism=100 also results in a successful scan on the
entire subnet.


apt-cache policy nmap
nmap:
  Installed: 7.91+dfsg1+really7.80+dfsg1-1
  Candidate: 7.91+dfsg1+really7.80+dfsg1-1
  Version table:
 *** 7.91+dfsg1+really7.80+dfsg1-1 500
        500 http://us.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
        100 /var/lib/dpkg/status

nmap -V
Nmap version 7.80 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.1.1f nmap-libssh2-1.8.2 libz-1.2.11 
libpcre-8.39 libpcap-1.10.0 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select

** Affects: nmap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947165

Title:
  nmap crashes when scanning /24 subnet

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1947165/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to