delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/18/11:58:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 18 Jun 2002 12:00:03 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: Rebase 1.5-1: Causes invalid page fault
In-reply-to: <20020618153547.16867.qmail@web21010.mail.yahoo.com>
To: Nicholas Wourms <nwourms AT yahoo DOT com>
Cc: cygwin AT cygwin DOT com
Mail-followup-to: Nicholas Wourms <nwourms AT yahoo DOT com>, cygwin AT cygwin DOT com
Message-id: <20020618160003.GH1568@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <20020618143435 DOT GG1568 AT tishler DOT net>
<20020618153547 DOT 16867 DOT qmail AT web21010 DOT mail DOT yahoo DOT com>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019