delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/18/12:06:44

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 18:04:31 +0200
From: Pavel Tsekov <ptsekov AT syntrex DOT com>
Reply-To: Pavel Tsekov <cygwin AT cygwin DOT com>
Organization: Syntrex, Inc.
X-Priority: 3 (Normal)
Message-ID: <14931402774.20020618180431@syntrex.com>
To: Nicholas Wourms <nwourms AT yahoo DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re[2]: Rebase 1.5-1: Causes invalid page fault
In-Reply-To: <20020618153547.16867.qmail@web21010.mail.yahoo.com>
References: <20020618153547 DOT 16867 DOT qmail AT web21010 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

[snip]

NW> Hmm gdb wouldn't let me set a breakpoint on ReBaseImage (it says the
NW> symbol can't be found), so I just set it to line 58.  When I step through
NW> the execution, I discover that the pathname argument prints out to:
NW> "C:\\Cygnus\\cygwin\\bin\\cygXpm-noX4.dll\000

You printed just the first argument.  There is a total of 11 arguments
to this function.

BOOL ReBaseImage(
  PSTR CurrentImageName,  
  PSTR SymbolPath,      
  BOOL fReBase,          
  BOOL fRebaseSysfileOk,  
  BOOL fGoingDown,       
  ULONG CheckImageSize,  
  ULONG *OldImageSize,  
  ULONG_PTR *OldImageBase,  
  ULONG *NewImageSize,  
  ULONG_PTR *NewImageBase,  
  ULONG TimeStamp        
);

It'll be good to look at all of them. The most dangerous should be the
pointer arguments though. Btw do you have the MS rebase.exe ? If you
have it, you can try it to see, if it crashes the same way as Jason's
tool. If this is the case, then maybe there is something wrong with
these APIs on WindowsMe or the image you're trying to rebase itself.


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