From a20bfbc62fab0a464a95f9e80a64e6ee1d0adf8b Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 16 Sep 2013 11:09:02 -0400 Subject: [PATCH] Debugging patch for bug 916757 to get some information about the case where the failure happens Landed on a CLOSED TREE --- nsprpub/pr/src/md/windows/w95thred.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nsprpub/pr/src/md/windows/w95thred.c b/nsprpub/pr/src/md/windows/w95thred.c index be92e2089f9e4..687bea1dd3dde 100644 --- a/nsprpub/pr/src/md/windows/w95thred.c +++ b/nsprpub/pr/src/md/windows/w95thred.c @@ -5,6 +5,8 @@ #include "primpl.h" #include /* for _beginthreadex() */ +#include +#include #if defined(_MSC_VER) && _MSC_VER <= 1200 /* @@ -217,6 +219,10 @@ _PR_MD_CLEAN_THREAD(PRThread *thread) if (thread->md.handle) { rv = CloseHandle(thread->md.handle); + if (!rv) { + fprintf(stderr, "CloseHandle failed, handle: %x, last error: %x\n", + (void*)thread->md.handle, GetLastError()); + } PR_ASSERT(rv); thread->md.handle = 0; }