diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2017-02-14 12:07:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 12:07:26 +0000 |
commit | 449d520c07a4d2a356b155f593d9e39db76e6c85 (patch) | |
tree | 4ca2bf6d7d0764b8658156d96ae058b45cbffd9a | |
parent | 1ad94f58e76168552c2e3007f02cda4d0e4573a6 (diff) | |
parent | 7f422041c56685fa60b39ec926ac18dbbc4bc050 (diff) | |
download | klee-449d520c07a4d2a356b155f593d9e39db76e6c85.tar.gz |
Merge pull request #590 from ccadar/stp-fork-error
Added error message when STP fails to fork.
-rw-r--r-- | lib/Solver/STPSolver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Solver/STPSolver.cpp b/lib/Solver/STPSolver.cpp index e1d41eba..5893c28e 100644 --- a/lib/Solver/STPSolver.cpp +++ b/lib/Solver/STPSolver.cpp @@ -17,6 +17,7 @@ #include "klee/util/ExprUtil.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/Errno.h" #include "llvm/Support/ErrorHandling.h" #include <errno.h> @@ -231,7 +232,7 @@ runAndGetCexForked(::VC vc, STPBuilder *builder, ::VCExpr q, fflush(stderr); int pid = fork(); if (pid == -1) { - klee_warning("fork failed (for STP)"); + klee_warning("fork failed (for STP) - %s", llvm::sys::StrError(errno).c_str()); if (!IgnoreSolverFailures) exit(1); return SolverImpl::SOLVER_RUN_STATUS_FORK_FAILED; |