From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12276 invoked by alias); 9 Jun 2006 00:47:33 -0000 Received: (qmail 12267 invoked by uid 22791); 9 Jun 2006 00:47:32 -0000 X-Spam-Check-By: sourceware.org Received: from gw1.asahi-kasei.co.jp (HELO gw1.asahi-kasei.co.jp) (138.212.124.220) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Jun 2006 00:47:29 +0000 Received: from gw80.asahi-kasei.co.jp (localhost [127.0.0.1]) by gw1.asahi-kasei.co.jp (Postfix) with ESMTP id 743BA1A506; Fri, 9 Jun 2006 09:47:15 +0900 (JST) Received: from ns8.ag.asahi-kasei.co.jp (ns8.ag.asahi-kasei.co.jp [10.82.100.110]) by gw80.asahi-kasei.co.jp (Postfix) with ESMTP id 4F04718C01; Fri, 9 Jun 2006 09:47:15 +0900 (JST) Received: from dc.ag.asahi-kasei.co.jp (unknown [10.82.162.12]) by ns8.ag.asahi-kasei.co.jp (Postfix) with ESMTP id 3796227F95; Fri, 9 Jun 2006 09:47:15 +0900 (JST) Received: from dc.ag.asahi-kasei.co.jp (apc622 [10.82.169.22]) by dc.ag.asahi-kasei.co.jp (Postfix) with ESMTP id 89089A492F; Fri, 9 Jun 2006 09:47:15 +0900 (JST) Message-ID: <4488C513.BDA5201B@dc.ag.asahi-kasei.co.jp> Date: Fri, 09 Jun 2006 01:13:00 -0000 From: Hayashi Eisuke X-Mailer: Mozilla 4.78 [ja] (Windows NT 5.0; U) MIME-Version: 1.0 To: gcc-bugs@gcc.gnu.org Cc: Jim Wilson , Andrew Pinski , Tetsuo Tokuda Subject: Re: bug report References: <448787FB.57CC0D55@dc.ag.asahi-kasei.co.jp> <44889517.60108@specifix.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01005.txt.bz2 List-Id: DEAR Sir : GNU I am writing to you regarding bug report It resulted based on the last point when having experimented ..the following... #include #include void subroutine(int n) { int buf[n]; fprintf(stderr, "%d (%d)\n", (int)sizeof(buf), (unsigned long)buf); } int main( int argc, char **argv) { int i, value[] = {2000000, 2500000, 3000000}; for (i=0; i<3; i++) { fprintf(stderr, "%d: ", value[i]); subroutine(value[i]); } exit(0); } $B-!!!(Bgcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110) $B!!!!(Bstacksize 8192 kbytes 2000000: 8000000 (-1081748336) 2500000: segmentation$B!!(Bfault (core$B!!(Bdumped) $B-"!!(Bgcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52) stacksize 10240 kbytes 2000000: 8000000 (-1081748128) 2500000: 10000000 (-1083748128) 3000000: segmentation fault (core dumped) It was not bug of gcc but it was a problem of stacksize. Thanks. Sincerely yours, EISUKE$B!!(BHAYASHI Jim Wilson wrote: > > Hayashi Eisuke wrote: > > 1000000: 4000000 (-1077752048) > > 2092728: Segmentatioin error (core dumped) > > The process is dying because you are exceeding unix process stack space > limits. You probably have an 8MB per process limit, and the number you > are using is a tad less than 2MB. > > If you are using bash, see the documentation for the "ulimit" command. > If csh, I think it is "limits". > -- > Jim Wilson, GNU Tools Support, http://www.specifix.com