public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygcheck -svc segfaults on Windows 8.1 with cygwin64
@ 2013-11-19  5:35 Gabriel Marcano
  2013-11-19 10:03 ` Corinna Vinschen
  0 siblings, 1 reply; 16+ messages in thread
From: Gabriel Marcano @ 2013-11-19  5:35 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-11-20 10:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19  5:35 cygcheck -svc segfaults on Windows 8.1 with cygwin64 Gabriel Marcano
2013-11-19 10:03 ` Corinna Vinschen
2013-11-19 16:38   ` Warren Young
2013-11-19 17:13     ` Corinna Vinschen
2013-11-19 18:23       ` Charles Wilson
2013-11-19 19:03         ` Corinna Vinschen
2013-11-19 19:21           ` Larry Hall (Cygwin)
2013-11-19 20:30             ` Corinna Vinschen
2013-11-19 20:36               ` Corinna Vinschen
2013-11-19 21:06               ` Andrey Repin
2013-11-19 21:51                 ` Corinna Vinschen
2013-11-19 22:34                   ` Corinna Vinschen
2013-11-19 23:41               ` Jim Garrison
2013-11-20  8:59                 ` Csaba Raduly
2013-11-19 23:08       ` Warren Young
2013-11-20 10:04         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).