This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Bug in ln / cygwin1.dll
- From: "Chris January" <chris at atomice dot net>
- To: <cygwin-patches at cygwin dot com>
- Date: Sat, 4 May 2002 14:13:16 +0100
- Subject: Re: Bug in ln / cygwin1.dll
- References: <011901c1f2fb$1fbf5330$0100a8c0@advent02> <20020504042742.GI32261@redhat.com>
> >When I run 'make -f Makefile.cvs' with QT3, I find that ln segfaults
trying
> >to create a symlink. I've included the output of strace showing the
problem,
> >output of cygcheck and also the stackdump ln produces. I can reproduce
this,
> >so if you need any more information, please ask. The problem occurs with
the
> >latest Cygwin CVS.
> >ln is 'ln (fileutils) 4.1'.
> >cygwin is 'CYGWIN_NT-5.0 ADVENT02 1.3.11(0.52/3/2) 2002-05-03 15:18 i686
> >unknown'
>
> You're using a locally built version of cygwin. Please run it under gdb
> and pinpoint where the problem is occurring. You may find the techniques
> in how-to-debug-cygwin.txt useful.
This patch fixes the problem.
--- ChangeLog follows ---
2002-05-24 Christopher January <chris@atomice.net>
* path.h (path_conv::path_conv): Initialise normalized_path to NULL.
--- path.h.patch follows ---
Index: path.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/path.h,v
retrieving revision 1.39
diff -u -3 -p -u -p -w -r1.39 path.h
--- path.h 3 May 2002 02:43:45 -0000 1.39
+++ path.h 4 May 2002 13:07:33 -0000
@@ -126,7 +126,7 @@ class path_conv
check (src, opt | PC_NULLEMPTY, suffixes);
}
- path_conv (): path_flags (0), known_suffix (NULL), error (0), devn (0),
unit (0), fileattr (INVALID_FILE_ATTRIBUTES) {path[0] = '\0';}
+ path_conv (): path_flags (0), known_suffix (NULL), error (0), devn (0),
unit (0), fileattr (INVALID_FILE_ATTRIBUTES), normalized_path (NULL)
{path[0] = '\0';}
~path_conv ();
inline char *get_win32 () { return path; }