This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/7495: GCC generates crashing code when there is large static array
- From: gepeng at cheminfo dot pku dot edu dot cn
- To: gcc-gnats at gcc dot gnu dot org
- Date: 5 Aug 2002 11:32:31 -0000
- Subject: c/7495: GCC generates crashing code when there is large static array
- Reply-to: gepeng at cheminfo dot pku dot edu dot cn
>Number: 7495
>Category: c
>Synopsis: GCC generates crashing code when there is large static array
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Mon Aug 05 04:36:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: gepeng@cheminfo.pku.edu.cn
>Release: gcc-3.0
>Organization:
>Environment:
nearly every platform including sun 6.5, irix 6.3 linux redhat 7.2 cygnus win32
>Description:
when there is large static arrays in my program, GCC tends to generate crashing codes which will recieve SIGSEGV. when debugged, the crashing instruction is always refering to $esp, within the several lines after main(), suggesting stack and/or heap management error.
as we got the program from others and it is too much trouble to change arrays from static to dynamic, could you suggest me any alternative way to fix it?
the CC on sgi o2 workstation under irix 6.3 does not generate crashing codes when compiling the same program.
thanks,
Mannester GE
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: