]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
drd: Avoid that an assertion failure is triggered if clone() fails.
authorBart Van Assche <bvanassche@acm.org>
Thu, 2 Feb 2012 10:14:30 +0000 (10:14 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 2 Feb 2012 10:14:30 +0000 (10:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12363

drd/drd_main.c

index 364795e06a8819a92f1ea1eb2116f07e76e1eea4..3ac34df700a51766b548dc5fc78106fe1c2c668b 100644 (file)
@@ -639,7 +639,14 @@ static void drd_thread_finished(ThreadId vg_tid)
 {
    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)())