This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in ln / cygwin1.dll


> >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; }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]