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:message-id:date:from:reply-to:subject:to
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=rbjRQHn8rNbrwXhyhWgXVomSZFTqFk/Krq1xFcI+xUQejc1TDi3wB
	IrLJNot/Ou2CEK9UIJa9eNv3mHVHXPcZ+5VX3HELtCkqgxMPYtXd/ria/6p3Yrvk
	HpG2HZ4p8aG1GKMn149apUBh3RWzTFXIfR0Uh4qs/FUSoi5TTnX7L8=
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:message-id:date:from:reply-to:subject:to
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=fIue3BE83mvG8st3/AmTJbq/DNM=; b=QA3jj1pPuZtOt04Xpg/uvk4b5OdP
	B4ykaHP/4INbhLZNQIgSD3tMucR8zSxUFQW2WIJC7Toycqk6Fw6DmgcB2g71EKWH
	7vta2QCQB0vXldjjb/YZuxw0APH83qWY9wRtCFT0ncb5g0rdCkLd3D+SSDa76jZg
	omEGg4gKmO6c498=
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.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RDNS_NONE autolearn=no version=3.3.2
X-HELO: nm21-vm3.bullet.mail.ne1.yahoo.com
Message-ID: <1384839303.14356.YahooMailNeo@web125203.mail.ne1.yahoo.com>
Date: Mon, 18 Nov 2013 21:35:03 -0800 (PST)
From: Gabriel Marcano <gabemarcano@yahoo.com>
Reply-To: Gabriel Marcano <gabemarcano@yahoo.com>
Subject: cygcheck -svc segfaults on Windows 8.1 with cygwin64
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id rAJ5ZeGD013234

cygcheck -svc causes a segfault on Windows 8.1 on line 1610 of cygcheck.cc, based on gdb output. I'm including some gdb output below that showcases this issue:


1610                    strcat (osname, products[prod]);
(gdb) list
1605                  if (prod == PRODUCT_UNLICENSED)
1606                    strcat (osname, "Unlicensed");
1607                  else if (prod > PRODUCT_PROFESSIONAL_WMC)
1608                    strcat (osname, "");
1609                  else
1610                    strcat (osname, products[prod]);
1611                }
1612              else
1613                {
1614                }
(gdb) p prod
$1 = 101
(gdb) p sizeof(products)/sizeof(void*)
$2 = 101


'products[prod]' in this case is accessing memory outside of the 'products' array. The odd thing is that a few lines back, the declaration of products includes 104 elements. I do not know why this discrepancy exists-- anyone have a clue?

So far I've tried installing the experimental release of the cygwin base tools (where I think cygcheck is found), some older version of the base tools, and even just by copying cygcheck from the latest snapshot and replacing the one I had in my /cygwin64/bin folder. None of these alternative versions alleviated the issue (and since the snapshot is stripped of debugging symbols and the symbols I have do not match it, I couldn't debug it, other than the fact it crashed with a segfault with the same output as the other cases).

I have been trying to compile cygwin on my computer, but I have not had much success yet. I will continue to try in the mean time. Thanks in advance for any help!


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


