odd segfault with my c program using cygwin 1.7

Andy Koppe andy.koppe@gmail.com
Wed Dec 2 06:35:00 GMT 2009


2009/12/2 jeffunit:
> My program ran fine under cygwin 1.5 as well as many versions of linux
> including
> mandriva 2009, mandriva 2009.1 and mandriva 2010.0
>
> When compiled with
> gcc cal.c -o cal
> and run with
> cal 2009
> I get a segmentation fault.
> When I uncomment line 62, the program runs successfully.

It's the line after that that has the bug: it's writing to index 432
of a 432-element array.

> I have had other problems with recent versions of cygwin 1.7 which makes me
> suspect some kind of error outside my programs.

The First Rule of Programming: It's Always Your Fault
http://www.codinghorror.com/blog/archives/001079.html

;) Andy

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



More information about the Cygwin mailing list