Snapshot 20000522

Chris Faylor
Tue May 23 14:42:00 GMT 2000

On Tue, May 23, 2000 at 02:37:15PM -0700, Earnie Boyd wrote:
>--- Chris Faylor <> wrote:
>> On Tue, May 23, 2000 at 01:43:53PM -0700, Earnie Boyd wrote:
>> >--- Chris Faylor <> 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:
>est\cardfile.c(abs) 0x2(flags) = conv_to_win32_path
>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.

cardfile.c is being opened once and it is being opened correctly,
AFAICT.  It is being stat'ed twice and both times the path has been
converted from using slashes to backslashes.


More information about the Cygwin-developers mailing list