From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4485 invoked by alias); 22 May 2006 18:11:45 -0000 Received: (qmail 4477 invoked by uid 22791); 22 May 2006 18:11:44 -0000 X-Spam-Check-By: sourceware.org Received: from out3.smtp.messagingengine.com (HELO out3.smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 22 May 2006 18:11:42 +0000 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 4567BD64CF8; Mon, 22 May 2006 14:11:40 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by frontend3.internal (MEProxy); Mon, 22 May 2006 14:11:41 -0400 Received: from [192.168.1.2] (unknown [59.144.23.34]) by mail.messagingengine.com (Postfix) with ESMTP id 8E5F31AF4; Mon, 22 May 2006 14:11:40 -0400 (EDT) From: Shriramana Sharma To: GCC Help List Subject: Re: Curious segmentation fault... Date: Mon, 22 May 2006 18:11:00 -0000 User-Agent: KMail/1.9.1 References: <200605222305.04058.samjnaa@gmail.com> In-Reply-To: <200605222305.04058.samjnaa@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1521136.GKWknhuaqs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605222341.26486.samjnaa@gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00216.txt.bz2 --nextPart1521136.GKWknhuaqs Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 999 Monday 22 May 2006 23:05 samaye, Shriramana Sharma alekhiit: > The only difference between the two source files monthpan.c and > monthpan-bug.c is that the latter contains the line: > char spicanaama[] =3D "Spica"; > *before* the start of the declarations of the two-dimensional arrays, whi= ch > for some reason seems to cause the zero element of the first > two-dimensional array to be out-of-bounds. I further investigated this and it becomes more and more curious.=20 If I place spica-name before graha-name then it faults, but not if I place = it=20 before tithi-name. If I push it to before nakshatra-name it faults again, b= ut=20 does not fault before yoga-name, and again faults before karana-name but do= es=20 not fault *after* karana-name.=20 In all the cases, it is memory location 0x726956 which faults with ... --=20 Tux #395953 resides at http://samvit.org playing with KDE 3.51 on SUSE Linux 10.1 $ date [] CCE +2006-05-22 W21-1 UTC+0530 --nextPart1521136.GKWknhuaqs Content-Type: application/pgp-signature Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEcf7OLOFFQi4zqy0RArPGAKCYoHumjTVotVeXpQ+IKHPCiicAEQCfbFPg Txn8sIMV7CWe7gCT9i8CNSM= =iUtH -----END PGP SIGNATURE----- --nextPart1521136.GKWknhuaqs--