masscan
masscan copied to clipboard
Segfault on macOS
OS: System Version: macOS 10.15.7 (19H2) Kernel Version: Darwin 19.6.0
masscan version (installed via brew): Masscan version 1.0.4 ( https://github.com/robertdavidgraham/masscan ) Compiled on: Oct 18 2019 14:47:44 Compiler: gcc 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.8) OS: Apple CPU: x86-Corei7 (64 bits) GIT version: unknown
Happened when running the following command:
masscan --rate 1000 -pT:0-500 -pU:0-500 -iL ~/dev/tmp/ips -oL ~/dev/tmp/res.txt
Seems to happen randomly about once every ~5 calls, most of the time it works perfectly.
Backtrace:
* thread #2, stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x0000000100021de6 masscan`payloads_lookup + 42
frame #1: 0x00000001000231f5 masscan`template_set_target + 171
frame #2: 0x000000010001f3e5 masscan`rawsock_send_probe + 75
frame #3: 0x000000010000acde masscan`transmit_thread + 978
frame #4: 0x00007fff6c4b8109 libsystem_pthread.dylib`_pthread_start + 148
frame #5: 0x00007fff6c4b3b8b libsystem_pthread.dylib`thread_start + 15
I have the same issue, installed with brew, masscan version 1.3.
I am getting segmentation fault way more often though, and when it runs with no-fault, I get 0 results. Not sure if it's the brew version of masscan that's faulty or what.
I suggest you build from master. If you can’t reproduce with master, this issue should be for the maintainers of the brew package