This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: large array, ia64, "segmentation fault"


>I compile a source , when N=100, everything is good;
>but 
>when i modify N=1000, i got the info: segmentation
>fault. i am using icc 8.1.
>
>My sys info:
>RHEL3-64bit update 2.
>2.4.21-4.EL kernel
>4-way Iatnium2 .
>8G RAM.

You're trying to allocate a *large* amount of data off the stack int
hte function main, probably enought to blow the limit on the stack
size.  Look up the manual page for 'ulimit' and use that command (with
the appropriate parameters) to increase the stack size limit

Your other choice is to move the definition oft A,B,C outside of main
so they will be declared globally...

-- 
Peter Barada
peter@the-baradas.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]