X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <499EBABE.8080303@gmail.com>
Date: Fri, 20 Feb 2009 14:14:22 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: Dave Korn <dave.korn.cygwin@googlemail.com>
CC: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] [1.7] Updated: file-5.00-1
References: <announce.20090210093102.GB11175@calimero.vinschen.de> <499E2B9A.5030907@cwilson.fastmail.fm> <20090220095916.GA759@calimero.vinschen.de> <499EB5A6.5000707@gmail.com>
In-Reply-To: <499EB5A6.5000707@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Korn wrote:
> Corinna Vinschen wrote:

>> Apparently.  I rebased the DLL alone and afterwards file simply stopped
>> working.  The DLL has a base address of 0x6a500000.  Even rebasing to
>> the very same address results in a coredump!

>   Nope, I can't reproduce it yet.  

  I can now, but not by rebasing to the exact same address; did something just
go amiss in your testing of that particular case maybe?


DKAdmin@ubik /bin
$ rebase -v -b 0x6b500000 ./cygmagic-1.dll
./cygmagic-1.dll: new base = 6b500000, new size = 20000

DKAdmin@ubik /bin
$ ./file.exe ./file.exe
      1 [main] file 1556 _cygtls::handle_exceptions: Error while dumping state
(probably corrupted stack)
Segmentation fault (core dumped)


  It's reversible, too!


DKAdmin@ubik /bin
$ rebase -v -b 0x6a500000 ./cygmagic-1.dll
./cygmagic-1.dll: new base = 6a500000, new size = 20000

DKAdmin@ubik /bin
$ ./file.exe ./file.exe
./file.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit

DKAdmin@ubik /bin
$ rebase -v -b 0x6b500000 ./cygmagic-1.dll
./cygmagic-1.dll: new base = 6b500000, new size = 20000

DKAdmin@ubik /bin
$ ./file.exe ./file.exe
      1 [main] file 1404 _cygtls::handle_exceptions: Error while dumping state
(probably corrupted stack)
Segmentation fault (core dumped)

DKAdmin@ubik /bin
$ rebase -v -b 0x6a500000 ./cygmagic-1.dll
./cygmagic-1.dll: new base = 6a500000, new size = 20000

DKAdmin@ubik /bin
$ ./file.exe ./file.exe
./file.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit

DKAdmin@ubik /bin

  Ok, now I'll try debugging it.

    cheers,
      DaveK


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

