From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3365 invoked by alias); 18 Jun 2002 15:58:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3357 invoked from network); 18 Jun 2002 15:58:02 -0000 Received: from unknown (HELO smtp.comcast.net) (24.153.64.2) by sources.redhat.com with SMTP; 18 Jun 2002 15:58:02 -0000 Received: from althea.tishler.net (bgp572446bgs.eatntn01.nj.comcast.net [68.39.6.197]) by mtaout06.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with SMTP id <0GXW00GJRSCQIO@mtaout06.icomcast.net> for cygwin@cygwin.com; Tue, 18 Jun 2002 11:58:02 -0400 (EDT) Received: by althea.tishler.net (sSMTP sendmail emulation); Tue, 18 Jun 2002 12:00:03 -0400 Date: Tue, 18 Jun 2002 10:04:00 -0000 From: Jason Tishler Subject: Re: Rebase 1.5-1: Causes invalid page fault In-reply-to: <20020618153547.16867.qmail@web21010.mail.yahoo.com> To: Nicholas Wourms Cc: cygwin@cygwin.com Mail-followup-to: Nicholas Wourms , cygwin@cygwin.com Message-id: <20020618160003.GH1568@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: <20020618143435.GG1568@tishler.net> <20020618153547.16867.qmail@web21010.mail.yahoo.com> X-SW-Source: 2002-06/txt/msg00914.txt.bz2 Nicholas, On Tue, Jun 18, 2002 at 08:35:47AM -0700, Nicholas Wourms wrote: > [SNIP] > > > > Use gdb by setting a breakpoint ("b" command) at the call to ^^^^^^^^^^^^^^ > > ReBaseImage() and then printing ("p" command) out the arguments. Do ^^^^^^^^^^^^^ > > they look valid? > > Hmm gdb wouldn't let me set a breakpoint on ReBaseImage (it says the > symbol can't be found), so I just set it to line 58. You *did* as I suggested -- sorry, if I was unclear. > When I step through > the execution, I discover that the pathname argument prints out to: > "C:\\Cygnus\\cygwin\\bin\\cygXpm-noX4.dll\000???\030?\003x\000?... ^^^^ pathname is null terminated -- this is good. Is it null terminated for *all* DLLs? > Is all that extra junk supposed to be tacked on? pathname is defined as: char pathname[MAX_PATH + 1]; So, the "junk" is just the tail end of the character array. Jason -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/