|
From: <sv...@va...> - 2012-02-02 10:19:10
|
Author: bart
Date: 2012-02-02 10:14:30 +0000 (Thu, 02 Feb 2012)
New Revision: 12363
Log:
drd: Avoid that an assertion failure is triggered if clone() fails.
Modified:
trunk/drd/drd_main.c
Modified: trunk/drd/drd_main.c
===================================================================
--- trunk/drd/drd_main.c 2012-02-01 14:59:14 UTC (rev 12362)
+++ trunk/drd/drd_main.c 2012-02-02 10:14:30 UTC (rev 12363)
@@ -639,7 +639,14 @@
{
DrdThreadId drd_tid;
+#if 0
+ /*
+ * The assert statement below doesn't hold if this function is invoked
+ * because thread creation failed. See e.g.
+ * coregrind/m_syswrap/syswrap-amd64-linux.c
+ */
tl_assert(VG_(get_running_tid)() == vg_tid);
+#endif
drd_tid = DRD_(VgThreadIdToDrdThreadId)(vg_tid);
if (DRD_(thread_get_trace_fork_join)())
|