From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18638 invoked by alias); 19 Nov 2013 05:35:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18626 invoked by uid 89); 19 Nov 2013 05:35:13 -0000 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 Received: from Unknown (HELO nm21-vm3.bullet.mail.ne1.yahoo.com) (98.138.91.151) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 19 Nov 2013 05:35:12 +0000 Received: from [98.138.101.130] by nm21.bullet.mail.ne1.yahoo.com with NNFMP; 19 Nov 2013 05:35:04 -0000 Received: from [98.138.89.160] by tm18.bullet.mail.ne1.yahoo.com with NNFMP; 19 Nov 2013 05:35:04 -0000 Received: from [127.0.0.1] by omp1016.mail.ne1.yahoo.com with NNFMP; 19 Nov 2013 05:35:04 -0000 Received: (qmail 15029 invoked by uid 60001); 19 Nov 2013 05:35:04 -0000 Received: from [66.44.227.150] by web125203.mail.ne1.yahoo.com via HTTP; Mon, 18 Nov 2013 21:35:03 PST Message-ID: <1384839303.14356.YahooMailNeo@web125203.mail.ne1.yahoo.com> Date: Tue, 19 Nov 2013 05:35:00 -0000 From: Gabriel Marcano Reply-To: Gabriel Marcano Subject: cygcheck -svc segfaults on Windows 8.1 with cygwin64 To: "cygwin@cygwin.com" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-11/txt/msg00334.txt.bz2 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 th= is issue: 1610=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 strcat (osnam= e, products[prod]); (gdb) list 1605=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (prod =3D=3D PRO= DUCT_UNLICENSED) 1606=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 strcat (osnam= e, "Unlicensed"); 1607=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 else if (prod > PRO= DUCT_PROFESSIONAL_WMC) 1608=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 strcat (osnam= e, ""); 1609=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 else 1610=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 strcat (osnam= e, products[prod]); 1611=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } 1612=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 else 1613=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 { 1614=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } (gdb) p prod $1 =3D 101 (gdb) p sizeof(products)/sizeof(void*) $2 =3D 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 to= ols (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 version= s alleviated the issue (and since the snapshot is stripped of debugging sym= bols and the symbols I have do not match it, I couldn't debug it, other tha= n the fact it crashed with a segfault with the same output as the other cas= es). I have been trying to compile cygwin on my computer, but I have not had muc= h success yet. I will continue to try in the mean time. Thanks in advance f= or 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