Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Thu, 14 Dec 2000 18:39:57 -0500 From: Christopher Faylor To: Cygwin Developers List Subject: Re: Anyone having problems with the latest winsup/cygwin1.dll? Message-ID: <20001214183957.B20516@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: Cygwin Developers List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: ; from tailbert@yahoo.com on Thu, Dec 14, 2000 at 05:31:12PM -0500 On Thu, Dec 14, 2000 at 05:31:12PM -0500, edward wrote: >Hi CygPeeps, > >I'm having memory problems with the latest cygwin1.dll. I did a clean cvs co >winsup today at around 1pm. > >The problem occurs at line 618 of environ.cc (version 1.38) > >before that line, > >eq = 0xA010209 > >and after that line > >eq = 0x6100B622 > >The crash always happens there, but it depends on which environment >variables are set. In every case so far, line 617 never had to be executed, >so it goes from line 616 to 618 then 619. The crash happens because eq is >garbage by line 619. I suspect it's a memory problem because several >iterations of this particular code works OK. Anyone happen to have purify on >nt? > >Cheers, >edward. > > 615 char *eq; > 616 if ((eq = strchr (newp, '=')) == NULL) > 617 eq = strchr (newp, '\0'); > 618 if (!myself->ppid_handle) > 619 ucenv (newp, eq); Since this happens very early in the initialization phase and no other threads are running, it should be pretty easy to figure out what's happening. Single step until you see it happen... cgf