delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/27/18:58:36

X-Spam-Check-By: sourceware.org
Message-ID: <BAY108-F134789F94E8381B865AE98BEF30@phx.gbl>
X-Sender: marchywka AT hotmail DOT com
In-Reply-To: <46AA5F93.4060404@tlinx.org>
From: "Mike Marchywka" <marchywka AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: file visible to Windoze but not Cygwin- possible causes?
Date: Fri, 27 Jul 2007 18:58:12 -0400
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,

I've got a short c++ program that is apparently corrupting memory as
I get link errors trying to overwrite the old executable after running it
because someone thinks the file is still in use by a process I can no longer 
find.
The program is not visible to cygwin "ls" and "find" complains

$ find -name "*"
find: ./a.exe: No such file or directory

I can see it in Windoze explorer and delete it after rebooting as Windoze
no longer things the file is busy. None of the processes that used the 
executable
seem to exist with "ps" or task manager.

What is going on with the file? Sometimes I get file-busy problems
while the anti-virus software is scanning giga-byte files I'm trying to
throw out but otherwise haven't seen a problem like this.


It seems to be a very specific failure mode as the program doesn't die
and moving around code and changing optimization flags just changed
the datasets on which the problem occurs. I haven't been able to
get it to occur with no optimizations specified but possibly I haven't found
the right data. Kind of odd for a flakey bug to be so specific.

I'm quite certain I have a simple dumb bug in my code but I am
curious about the specific problem it seems to generate.


Thanks.

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one 
place! http://maps.live.com/?wip=69&FORM=MGAC01


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019