X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18bs2yzSvxbS3AyQv2WJ/IM Date: Thu, 17 Jan 2013 19:35:22 -0500 From: Christopher Faylor To: The Cygwin Mailing List , Chris Sutcliffe Subject: Re: rtorrent and recent snapshots - apparent problem with msync() Message-ID: <20130118003522.GA1913@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: The Cygwin Mailing List , Chris Sutcliffe References: <20130117062415 DOT GB24529 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, Jan 17, 2013 at 04:42:36PM -0500, Chris Sutcliffe wrote: >On 17 January 2013 06:55, Chris Sutcliffe wrote: >> On 17 January 2013 01:24, Christopher Faylor wrote: >>> Is there a stackdump file? If not, I guess if you could make a strace >>> available for download that could be useful. >> >> The current snapshots do not produce a stackdump. I will execute an >> strace this evening when I get home and provide it. > >I've uploaded the strace for this issue here: > >http://dl.dropbox.com/u/5530441/cygwin/rtorrent.strace > >Please let me know if there is anything else I can do to help. Thanks. That helped. msync() is failing with an EACCESS errno. That translates to a windows error: ERROR_LOCK_VIOLATION. According to the ancient wisdom of google, it is not uncommon for the FlushViewOfFile() function to return with this error in some cases. I added a retry to the function fhandler_disk_file::msync and tried running rtorrent to download a debian iso (which seemed to be what you were doing). I could duplicate your problem before adding the retry but I don't see it now. The command I was using: rtorrent http://cdimage.debian.org/debian-cd/6.0.6/i386/bt-cd/debian-6.0.6-i386-CD-1.iso.torrent I'm generating a snapshot now. Please give it a try when it shows up. And, Corinna, please if the change I made to your function is wrong or you just don't like my variable names or comments please feel free to expunge what I did with extreme prejudice. I can't explain what in the newer snapshots would cause a difference in behavior other than the fact that they were being built with a newer compiler and a revamped configure script. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple