X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=aiP8ULsWUc1QpS/W
	2JBLrWa3z5u4N/TKYgLHDLhaLJ67+tFVcfdZm/awl9qd1YUZXmvOd6p/fUk8Yle5
	qP0xPsYQthVlb63L0z9IjGVmmQI0eHRjDuVIEd5iMCWZZH60cc196uZCJ3acwF1s
	G1FI6ncOoEW7yOOMZLeEMTPejJU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=GYVsyI6AuH7GBjU+N4KdIW
	l1q6U=; b=N5qa35WofN0NfDnUA1T8wnCSdryaYXrfo36vkiD87Rht21wfzxzq4l
	Vzgpg9tr5b/szKP9+BzguO5oqWR0W7jA5JreLzfpWa4SLon7brSwkKbhsZEHboHo
	+nZ1xZkAcxzqbv60LClRQjxhhb8tzlRvDyDJTV8iCRakx3RD2DtIM=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*RU:sk:mailsrv, HX-HELO:sk:mailsrv, H*r:sk:mailsrv, Hx-spam-relays-external:sk:mailsrv
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss@cs.umass.edu
Subject: Re: rebase segmentation fault
References: <EC918951-4A16-4469-B057-5DEC00041699@Denis-Excoffier.org>
To: cygwin@cygwin.com
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <8c4637af-09b1-18dc-2ff8-7dabfbc6824b@cs.umass.edu>
Date: Sun, 16 Jul 2017 13:39:38 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <EC918951-4A16-4469-B057-5DEC00041699@Denis-Excoffier.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 7/16/2017 1:16 PM, Denis Excoffier wrote:
> Hello,
>
> I have a Cygwin installation under Windows 7 (32 bits).
>
> After 'rebase-trigger full' and 'Setup', autorebase seems to finish okay, but the /etc/rebase.db.i386 remains absent after that.
> Not a real problem after all (since rebase was functioning well until some recent date and all is already rebased), but some
> third party builds (like e.g. perl) insist on the presence of the /etc/rebase.db.i386 database.
>
> Indeed, rebase segfaults in rebase.c and nothing is rebased. This occurs (see rebase-4.4.2) immediately after "Skip trailing
> entries as long as there is no hole." because at some point, all img_info_list[end].base are equal to 0, the while() is getting
> always true, and the variable 'end' is decremented by 1 at every iteration, until it reaches -1 where the segfault occurs.
>
> I must confess that my system contains all the available packages (except for debuginfo ones), and the rebase_all contains 9275 lines.
> Later, i uninstalled a few packages (a few categories in fact), and my rebase_all contained 8337 lines, rebase worked well and
> /etc/rebase.db.i386 was present.
>
> Question: how is 'rebase' supposed to notify the user that the list of files is too large (i.e. that the overall amount of DLL sizes
> is more than 0x070000000)? In source code, i found no specific message to indicate this.

I would find notification of such overflow useful as well.

And once I have over-committed by installing too many packages,
I have found it rather difficult to figure out what to remove
that will actually help, given the general snarl of dependencies
of one thing on another ...  Maybe there is room for another tool
that works over the database and helps determine what can be done.

Regards - Eliot Moss

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

