delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/22/13:23:04

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: Mon, 22 Dec 2003 10:21:28 -0800 (PST)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: rebaseall breaks zsh?
In-Reply-To: <20031222151939.GI1560@tishler.net>
Message-ID: <Pine.LNX.4.53.0312221015110.7948@gremlin.fruitbat.org>
References: <Law9-OE64jNIFVoaad5000074d3 AT hotmail DOT com> <20031222151939 DOT GI1560 AT tishler DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes

On Mon, 22 Dec 2003, Jason Tishler wrote:

> Rafael,
>
> Sorry for the delay...
>
> On Wed, Dec 10, 2003 at 01:26:07AM -0800, Rafael Kitover wrote:
> > I noticed that the rebaseall scripts rebases /usr/bin/libzsh-4.0.4.dll
> > and the modules in /usr/lib/zsh/4.1.1/zsh/*.dll, and that this breaks
> > zsh. Rebasing libzsh stops zsh from starting, and rebasing the modules
> > stops them from loading.
> >
> > If this is the case, and not just something messed up on my system,
> > adding:
> >
> > -e '/\/libzsh-.*\.dll$/d' -e '/\/lib\/zsh/d'
> >
> > To the sed filter on the script should fix it. Or perhaps making an
> > /etc/rebase.conf with exclusion filters. Want me to make a patch?
>
> Let's wait to see what the zsh maintainer comes up with.

I've reproduced the problem under a debugger and it's very interesting.
The segfault occurs before main even gets control.  From the looks of it,
the cygwin runtime faults trying to resolve some entry point that still
points to the old image base address, which is below the rebased image
base address (so no wonder it's faulting).  I'm trying to come up with a
simple test case, but I'm about to leave for the holidays, so I'll get
right back on it after the new year.

BTW, Merry Christmas and Happy New Year everyone!

> Thanks,
> Jason

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

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

- Raw text -


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