Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure at calloc for 'ip_seen' on KVM VPSs? #1

Closed
collina opened this issue Aug 16, 2013 · 3 comments
Closed

Failure at calloc for 'ip_seen' on KVM VPSs? #1

collina opened this issue Aug 16, 2013 · 3 comments

Comments

@collina
Copy link

collina commented Aug 16, 2013

Compiled on a KVM based VPS for Ubuntu LTS and Centos 6.4, and have zmap die at the same point every time. Problems with calloc?

root@networkresearchnotabotnet:~/zmap/src# zmap -p 80 --dryrun --verbosity=5
Aug 16 21:42:18.256 [INFO] zmap: started
Aug 16 21:42:18.379 [DEBUG] zmap: no interface provided. will use eth0
Aug 16 21:42:18.380 [DEBUG] zmap: no source IP address given. will use 176.56.238.77
Aug 16 21:42:18.380 [DEBUG] cyclic: primitive root: 977842311
Aug 16 21:42:18.381 [DEBUG] cyclic: starting point: 24354
Aug 16 21:42:18.381 [TRACE] constraint: Initializing
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 0.0.0.0/8
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 10.0.0.0/8
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 100.64.0.0/10
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 127.0.0.0/8
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 169.254.0.0/16
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 172.16.0.0/12
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 192.0.0.0/24
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 192.0.2.0/24
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 192.88.99.0/24
Aug 16 21:42:18.381 [TRACE] blacklist: blacklisting 192.168.0.0/16
Aug 16 21:42:18.382 [TRACE] blacklist: blacklisting 192.18.0.0/15
Aug 16 21:42:18.382 [TRACE] blacklist: blacklisting 198.51.100.0/24
Aug 16 21:42:18.382 [TRACE] blacklist: blacklisting 203.0.113.0/24
Aug 16 21:42:18.382 [TRACE] blacklist: blacklisting 240.0.0.0/4
Aug 16 21:42:18.382 [TRACE] blacklist: blacklisting 255.255.255.255/32
Aug 16 21:42:18.382 [TRACE] blacklist: blacklisting 224.0.0.0/4
Aug 16 21:42:18.382 [TRACE] constraint: Optimizing constraints
Aug 16 21:42:18.383 [DEBUG] blacklist: 3702258432 addresses allowed to be scanned (86% of address space)
Aug 16 21:42:18.383 [DEBUG] send: will send from 1 address on 28233 source ports
Aug 16 21:42:18.383 [INFO] send: dryrun mode -- won't actually send packets
Aug 16 21:42:18.390 [TRACE] zmap: set thread 3124864768 affinity to core 0
Aug 16 21:42:18.390 [DEBUG] recv: thread started
Aug 16 21:42:18.390 [FATAL] recv: couldn't allocate address bitmap

@zakird
Copy link
Member

zakird commented Aug 16, 2013

I believe this is because you do not have enough memory. ZMap needs ~512 MB of RAM in order to keep a bitmap of hosts that have responded in order to not produce duplicates.

@collina
Copy link
Author

collina commented Aug 16, 2013

That was in fact the issue, thanks!

@jhalderm
Copy link

I added a note about memory requirements to INSTALL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants