From users-return-20977-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Sun Mar 2 21:50:14 2014 Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A38AD10515 for ; Sun, 2 Mar 2014 21:50:14 +0000 (UTC) Received: (qmail 64105 invoked by uid 500); 2 Mar 2014 21:50:14 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 64045 invoked by uid 500); 2 Mar 2014 21:50:13 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 64038 invoked by uid 99); 2 Mar 2014 21:50:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2014 21:50:13 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of luke1410@gmx.de designates 212.227.17.22 as permitted sender) Received: from [212.227.17.22] (HELO mout.gmx.net) (212.227.17.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2014 21:50:06 +0000 Received: from [127.0.0.1] ([89.0.29.105]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MN604-1WI3Sy148W-006g59; Sun, 02 Mar 2014 22:49:44 +0100 Message-ID: <5313A775.1040502@gmx.de> Date: Sun, 02 Mar 2014 22:49:41 +0100 From: Stefan User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: =?UTF-8?B?VGhvcnN0ZW4gU2Now7ZuaW5n?= , users@subversion.apache.org Subject: Re: Can't move temporary on update. References: <52D45348.7000807@gmx.de> <52D45B64.80502@gmx.de> <52D46EAD.4040307@reser.org> <5313017E.8010907@gmx.de> <53130A91.9020905@gmx.de> <531322C5.4070402@wandisco.com> <5313854C.6030605@gmx.de> <1342428770.20140302212201@am-soft.de> In-Reply-To: <1342428770.20140302212201@am-soft.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 140302-1, 02/03/2014), Outbound message X-Antivirus-Status: Clean X-Provags-ID: V03:K0:aYAWy7fpJ6swauTtWxMglDxCISFbHvfY8g7cNgnkyB3h2eUMOjE 5l0uOyGepsgrHBYnRr6rMLax5VgZUwcbmsoZ5q2xGyvRgevTAImgTLLUY66zdpVwJ1IoipN 1Ex4Pb9hR07Du0bG5sYf8U79Xt084+ne+AMI4QjycIvVdi5fQUSZa5fdJpODzBH3EdbjD2E rXB0XWQSpcOhVQx9yOscg== X-Virus-Checked: Checked by ClamAV on apache.org Hi Thorsten, >> and wouldn't suspect that it is doing that. >> Is there some code path I'd trace down to confirm it's actually the >> virusscanner causing the rename? Where in the code path would the tmp-file be generated? > I would first try to use Process Monitor to see activity in the file > system, one time with and the other time without Avast or in the > latter case at least with your working copy excluded for Avast. The > MoveFileEx error should be easy to find using ERROR_FILE_NOT_FOUND and > from that point you "just" need to scroll upwards to see if files are > renamed by Avast or such. > > Avast will surely not modify Subversions code, but hook Windows > functions instead and that may be hard to debug. I found Process > Monitor really helpful in such cases, that's what it's designed for. > > http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx > > Mit freundlichen Grüßen, > > Thorsten Schöning Should have thought about using process monitor earlier... Thanks for the hint. However, I'm not getting much out there. Here's the summary from what I see in process manager from the svn-BDF57639 temp file and the corresponding trzBF17.tmp-file which in-deed is created by Avast. The problem is I don't see where the svn-BDF57639-file would be renamed or deleted. I'd gladly send the log captured with Process Monitor just to make sure I didn't overlook anything. Quick sum-up of the log: TortoiseSVN creates the file: .svn\tmp\svn-BDF57639 (SUCCESS) - Generic Read/Write access - create [...] TortoiseSVN reads the file contest of the problematic exe file: print_options.exe [...] TortoiseSVN writes the contest of that file excluding the final junk to svn-BDF57639 TortoiseSVN reads the file contents of the problematic print_options.exe-file again (EOF) [...] TortoiseSVN writes the last junk of the svn-BDF57639 file and closes the file [...] Avast creates file access to svn-BDF57639 - Read Attributes/Synchronize, Open Avast queries name information file on svn-BDF57639 Avast closes the svn-BDF57639 file Avast creates file access to svn-BDF57639 - Read Attributes, Open Avast operation: FileSystemControl - Control: FSCTL READ FILE USN DATA on svn-BDF57639 Avast closes the svn-BDF57639 file [...] Avast creates file .svn/tmp/trzBF17.tmp and closes it directly - Generic Read, Create Avast creates file access on .svn/tmp/trzBF17.tmp - Read Attributes/Delete, Open Avast queries attribute tag file - Attributes: ANCI, Reparse Tag: 0x0 on trzBF17.tmp-file Avast sets disposition information file on trzBF17.tmp - Delete: True Avast closes file access to trzBF17.tmp [...] Avast queries directory information on .svn/tmp - svn-BDF57639 is returned as existing [...] Avast queries tries to open trzBF17.tmp - file not found is returned Avast recreates the trzBF17.tmp file and writes a junk of 81.920 bytes (size of the actual print_options.exe-file) [...] Avast queries tmp-directory for svn-BDF57639 - file exists TortoiseSVN closes file access to print_options.exe [...] TortoiseSVN tries to open .svn/tmp/svn-BDF57639 - NAME NOT FOUND Regards, Stefan