Your message dated Fri, 18 Nov 2005 16:14:11 +0100
with message-id <[EMAIL PROTECTED]>
and subject line gcc-4.0-base: Large local arrays in function lead to
segmentation fault
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Oct 2005 00:46:19 +0000
>From [EMAIL PROTECTED] Thu Oct 20 17:46:19 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp1.nodak.edu [134.129.111.50]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1ESl34-00060Y-00; Thu, 20 Oct 2005 17:46:18 -0700
Received: from bison.physics.ndsu.nodak.edu (bison.physics.ndsu.NoDak.edu
[134.129.87.6])
by smtp1.nodak.edu (8.11.6/8.11.6) with ESMTP id j9L0kHA17244;
Thu, 20 Oct 2005 19:46:17 -0500
Received: from alex by bison.physics.ndsu.nodak.edu with local (Exim 4.54)
id 1ESl32-0001Vl-Da; Thu, 20 Oct 2005 19:46:16 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Alexander Wagner <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: gcc-4.0-base: Large local arrays in function lead to segmentation fault
X-Mailer: reportbug 3.17
Date: Thu, 20 Oct 2005 19:46:16 -0500
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: gcc-4.0-base
Version: 4.0.2-2
Severity: important
When I compile and run the following program the definition of the
arrays in the function leads to a segmentation fault when I try to
access the "i" array. gdb tells me "Cannot access memeory address"
Here is a minimal test program that shows the error (at least on my
system):
#include <stdio.h>
#include <stdlib.h>
#define xdim 1000
#define ydim 1000
void analysis(){
double ddphi[xdim][ydim],mu[xdim][ydim];
int i[3];
i[1]=1;
}
int main(int argc, char *argv[]){
analysis();
return 0;
}
Presumably a work around is to avoid large local arrays and to replace
them with global arrays, or if there is not enough space with allocated
pointers. But I use these programs while teaching Physics, and the first
option makes the programs less readable and the second option excceds
the ability of many students.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
-- no debconf information
---------------------------------------
Received: (at 334942-done) by bugs.debian.org; 18 Nov 2005 15:14:14 +0000
>From [EMAIL PROTECTED] Fri Nov 18 07:14:14 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.cs.tu-berlin.de ([130.149.17.13] ident=root)
by spohr.debian.org with esmtp (Exim 4.50)
id 1Ed7wM-0003p0-EC
for [EMAIL PROTECTED]; Fri, 18 Nov 2005 07:14:14 -0800
Received: from mailhost.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.17.13])
by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id QAA04247
for <[EMAIL PROTECTED]>; Fri, 18 Nov 2005 16:14:12 +0100 (MET)
Received: from localhost (localhost [127.0.0.1])
by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 2A25DF20C
for <[EMAIL PROTECTED]>; Fri, 18 Nov 2005 16:14:12 +0100 (MET)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
id 25290-37 for <[EMAIL PROTECTED]>;
Fri, 18 Nov 2005 16:14:11 +0100 (MET) 14016
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
by mailhost.cs.tu-berlin.de (Postfix) with ESMTP
for <[EMAIL PROTECTED]>; Fri, 18 Nov 2005 16:14:11 +0100 (MET)
Received: (from [EMAIL PROTECTED])
by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id jAIFEB88011683;
Fri, 18 Nov 2005 16:14:11 +0100 (MET)
From: Matthias Klose <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 18 Nov 2005 16:14:11 +0100
To: [EMAIL PROTECTED]
Subject: Re: gcc-4.0-base: Large local arrays in function lead to segmentation
fault
X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Not a bug, you need to increase the stack size of the process, which
is set to 8k by default.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]