www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/15/06:25:12

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 15 Jan 2013 12:24:06 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rebase segfault
Message-ID: <20130115112406.GA13752@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <50F516C8 DOT 9050602 AT gmail DOT com> <20130115100745 DOT GC2353 AT calimero DOT vinschen DOT de> <50F5312A DOT 2040503 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <50F5312A.2040503@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Jan 15 11:36, marco atzeri wrote:
> On 1/15/2013 11:07 AM, Corinna Vinschen wrote:
> >On Jan 15 09:43, marco atzeri wrote:
> >>rebase is segfaulting on two dlls of new package
> >>
> >>postgresql-contrib-9.2.2-1
> >>
> >>Full packages here
> >>http://matzeri.altervista.org/cygwin-1.7/postgresql/
> >>
> >>Just the two dll's here:
> >>http://matzeri.altervista.org/works/rebase/
> >>
> >>for i in *.dll; do echo $i ; rebase -O  $i ; done
> >>
> >>dict_snowball.dll
> >>Segmentation fault (core dumped)
> >>
> >>ltree.dll
> >>Segmentation fault (core dumped)
> >
> >I don't know exactly what's going on here, but there's a common
> >factor:
> > [...]
> >Both DLLs have a section .gnu_deb, whatever that one is good for.
> >Rebase crashes both times when trying to relocate this .gnu_deb section.
> >As you can see, the .gnu_deb section is pretty small, only 28 resp. 20
> >bytes.  What happens is that the relocation information for the .gnu_deb
> >section appears to be too big.  In case of dict_snowball.dll, the reloc
> >info covers 44 relocation entries.  The segfault occurs as soon as one
> >entry translates into a memory address which is beyond the committed
> >area of the file memory map.
> >[...]
> 
> It seems the result of the .dbg creation, that trunks
> wrongly the sections.
> [...]
> for what I can see a dll with debug symbols
> should have a .gnu_debuglink sections:

Right.  Something's scrambled.  AFAIK, the .gnu_debuglink is not
relocatable, it only contains a path.  ".gnu_deb" appears to be
a result of using only the fixed 8 bytes of the section name.
Yaakov, do you have any idea what's going on here?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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