[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Thread leak in shell extension (Windows 10)

From: Martin Glass <mab893_at_hotmail.com>
Date: Mon, 1 May 2017 11:08:01 -0700 (PDT)

It appears to me that there is a thread leak in the Explorer shell extension under Windows 10 (64-bit).

Version information:
TortoiseSVN 1.9.5, Build 27581 - 64 Bit , 2016/11/26 09:18:58
Subversion 1.9.5, -release
apr 1.5.2
apr-util 1.5.4
serf 1.3.9
OpenSSL 1.0.2j 26 Sep 2016
zlib 1.2.8
SQLite 3.14.1

I'm using the Windows 10 task manager (Details tab) to show the thread count for explorer.exe. Every time I right-click on a folder or file, the thread count increases by 2. Whether I cancel the context menu, or select an option (TortoiseSVN or otherwise), the thread count generally does not decrease, even after an extended period of time. After doing a lot of TortoiseSVN work, I have observed an explorer thread count of over 2600. This makes most other applications noticeably slower, especially in UI responsiveness.

In observing the explorer.exe process using Process Monitor (Sysinternals), the thread IDs shown on the ThreadCreate function calls never show a corresponding ThreadClose call. These same ThreadCreate function calls are immediately followed by calls (CreateFile) to read "C:\Program Files\TortoiseSVN\bin\dbghelp.dll", which is why it appears that the leaked threads are associated with TortoiseSVN.

Restarting explorer.exe appears to be the only workaround.

Thanks,
Martin

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3233200

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2017-05-01 20:09:40 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.