This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Dynamic stack allocation bug, or am I doing something wrong?
Iggy Veresov wrote:-
> # ulimit -a
> core file size (blocks) unlimited
> data seg size (kbytes) unlimited
> file size (blocks) unlimited
> max memory size (kbytes) unlimited
> stack size (kbytes) unlimited
> cpu time (seconds) unlimited
> max user processes 256
> pipe size (512 bytes) 8
> open files 1024
> virtual memory (kbytes) 4194302
>
> Btw, such effect occurs if the size of the array is bigger than 2M.
> It looks like some kind of limitation but I just can't pin point where
> it is..
Well, it looks to me like you have unlimited stack, but only 4M of
virtual memory, of which stack is a part. So you do have an upper
limit on stack space.
Neil.