X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4B165777.2060201@cs.umass.edu> References: <20071202162155 DOT XNVY20104 DOT mta10 DOT adelphia DOT net AT dual-xeon DOT weasel DOT com> <20091202013344138 DOT XZWP20286 AT cdptpa-omta02 DOT mail DOT rr DOT com> <416096c60912012235h2e5290c3q4ad720134d4f0422 AT mail DOT gmail DOT com> <4B165777 DOT 2060201 AT cs DOT umass DOT edu> Date: Wed, 2 Dec 2009 07:16:25 -0500 Message-ID: Subject: Re: odd segfault with my c program using cygwin 1.7 From: mike marchywka To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 12/2/09, Eliot Moss wrote: > Andy Koppe wrote: >> 2009/12/2 jeffunit: >>> >>> 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 disagree -- I uncommented the line to verify, but it's clear > that j<6*72 keeps j within the array. The program compiles and > runs fine in my up-to-date cygwin 1.7 setup under Windows 7. > There must be something else going on for the OP. > Does OP get a consistent failure mode with different compiler options? > Best wishes -- Eliot Mos > > -- > 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 > > -- marchywka AT gmail DOT com Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 415-264-8477 (w)<- use this 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency only marchywka AT hotmail DOT com Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: hotmail is censoring incoming mail using random criteria beyond my control and often hangs my browser but all my subscriptions are here..., try also marchywka AT yahoo DOT com -- 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