|
From: <sv...@va...> - 2005-08-16 10:20:09
|
Author: tom
Date: 2005-08-16 11:19:58 +0100 (Tue, 16 Aug 2005)
New Revision: 4435
Log:
Don't assert if execve fails. Fixes bug #110875.
Modified:
trunk/coregrind/m_syswrap/syswrap-generic.c
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2005-08-16 03:42:44 UTC (=
rev 4434)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2005-08-16 10:19:58 UTC (=
rev 4435)
@@ -2412,8 +2412,9 @@
=20
/* If we got here, then the execve failed. We've already made too
much of a mess of ourselves to continue, so we have to abort. */
+ vg_assert(FAILURE);
VG_(message)(Vg_UserMsg, "execve(%p(%s), %p, %p) failed, errno %d",
- ARG1, ARG1, ARG2, ARG3, -RES);
+ ARG1, ARG1, ARG2, ARG3, RES_unchecked);
VG_(message)(Vg_UserMsg, "EXEC FAILED: I can't recover from "
"execve() failing, so I'm dying.");
VG_(message)(Vg_UserMsg, "Add more stringent tests in PRE(sys_execve)=
, "
|