www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/05/23/17:37:37

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <20000523213715.27986.qmail@web119.yahoomail.com>
Date: Tue, 23 May 2000 14:37:15 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Snapshot 20000522
To: cygwin-developers AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- Chris Faylor <cgf AT cygnus DOT com> wrote:
> On Tue, May 23, 2000 at 01:43:53PM -0700, Earnie Boyd wrote:
> >--- Chris Faylor <cgf AT cygnus DOT com> wrote:
> >> But both of these are not recent problems and one may not even be a
> >> problem at all.
> >> 
> >> I can't duplicate the problems with zip but I'm using the CD version, not
> >> the CygUtils version.
> >
> >Hmm...  Actually, may not be related.  Anyway I've a cut version of a strace
> >showing the problem attached.  It seems the cached win32 value isn't
> correct. 
> >The file of interest is cardfile.c.
> 
> From the strace log, the problem is that this:
> 
> \home\boyde\prj\ncurses\test\cardfile.c
> 
> is being passed to stat().  This is a MS-DOS path spec that is not translated
> to
> a cygwin spec due to Corinna's recent changes (which I asked for).
> 
> I don't know where in gdb this path is being munged so strangely but that is
> what the problem is.  It actually looks like a gdb bug.

But, gdb is passing /home/boyde/prj/ncurses/build/objects/../../test/cardfile.c
to open as confirmed by:
 1469 83266416 [main] gdb 1006 _open: open
(/home/boyde/prj/ncurses/build/objects/../../test/cardfile.c, 0x10000)

Later we see

  201 83270897 [main] gdb 1006 mount_info::conv_to_win32_path:
d:\Cygwin-1.1\hom
e\boyde\prj\ncurses\test\cardfile.c(rel),
d:\Cygwin-1.1\home\boyde\prj\ncurses\t
est\cardfile.c(abs) 0x2(flags) = conv_to_win32_path
(/home/boyde/prj/ncurses/bui
ld/objects/../../test/cardfile.c)

which indicates that the path was converted correctly, once.


It appears, and I'm not used to looking at strace, that gdb is opening
cardfile.c a second time with the same path as above.  It's this second open
that isn't correct.

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

- Raw text -


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