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:from:content-type:content-transfer-encoding
	:mime-version:date:subject:message-id:to; q=dns; s=default; b=cX
	iYe05eBwr6p5MkZ7UbPJXb4yx+r2Q1sV9rphuMFpWVe/yguEcuFiPHLF9G90XpZ4
	J9+BXfjt/mpuTxvVxuXQEPPbFpi3UDpdXFkj9lQV2/LyljFN4girA6fkqHK+gcjF
	IYG593p4arAnrkIgJej2NbxT/Zstxttcyw6mXM7lY=
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:from:content-type:content-transfer-encoding
	:mime-version:date:subject:message-id:to; s=default; bh=hd9wFzMw
	UlRhvZCzuaUy0DWiG2c=; b=RFZoeDeDBHZqAfWuDKkRXKw8UlGt1Wf0YmZsAHAS
	jayDo8GsKt/zFHcDzPFBwZO4a/VucvqGioEPmXDZZGBHI71mmPlNPlJqjZi6XYxQ
	LJN854rcDGNrD5DDm6qjRX4i4xsiMcqGnNlEZXYoZZ8WsaR8WCVKY+fpm0GMVuNT
	KRw=
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=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=confess, functioning, categories, insist
X-HELO: smtp5-g21.free.fr
From: Denis Excoffier <cygwin@Denis-Excoffier.org>
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Sun, 16 Jul 2017 19:16:53 +0200
Subject: rebase segmentation fault
Message-Id: <EC918951-4A16-4469-B057-5DEC00041699@Denis-Excoffier.org>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v6GHH8t4032145

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.

Regards,

Denis Excoffier.


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


