about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-10-02 01:48:51 +0200
committerGitHub <noreply@github.com>2019-10-02 01:48:51 +0200
commit5b45fc5921f25fd5bd2fe216e4c22d7f3988dfa9 (patch)
treee7af070369eeaec0663e3efdc8193ae3b70aa021 /src
parent19afe50efab221282bfde5993d59c47f98f7c8f9 (diff)
parentc8d3d813ff0a6ec15b1951a90e0870f283e06ee8 (diff)
downloadafl++-5b45fc5921f25fd5bd2fe216e4c22d7f3988dfa9.tar.gz
Merge pull request #73 from mattz0rt/static_compilation
Build statically-linked binaries
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index 220433fc..c0fa928e 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -178,7 +178,16 @@ u8 run_target(char** argv, u32 timeout) {
     if ((res = read(fsrv_st_fd, &status, 4)) != 4) {
 
       if (stop_soon) return 0;
-      RPFATAL(res, "Unable to communicate with fork server (OOM?)");
+      SAYF("\n" cLRD "[-] " cRST
+           "Unable to communicate with fork server. Some possible reasons:\n\n" 
+           "    - You've run out of memory. Use -m to increase the the memory limit\n"
+           "      to something higher than %lld.\n"
+           "    - The binary or one of the libraries it uses manages to create\n"
+           "      threads before the forkserver initializes.\n"
+           "    - The binary, at least in some circumstances, exits in a way that\n"
+           "      also kills the parent process - raise() could be the culprit.\n\n"
+	   "If all else fails you can disable the fork server via AFL_NO_FORKSRV=1.\n", mem_limit);
+      RPFATAL(res, "Unable to communicate with fork server");
 
     }