Re: [RFC] kernel random segmentation fault?

2015-05-06 Thread Jan Engelhardt
On Wednesday 2015-05-06 05:46, long.wanglong wrote: > >int main(int argc, char** argv) >{ >rlim.rlim_cur=20 MB; >rlim.rlim_max=20 MB; >ret = setrlimit(RLIMIT_AS, ); >[...] >char tmp[20 MB]; >for (i = 0; i < 20 MB; i++) >tmp[i]=1; if tmp already takes 20 MB, where

Re: [RFC] kernel random segmentation fault?

2015-05-06 Thread long.wanglong
On 2015/5/6 16:20, Hillf Danton wrote: >> >> Hi all: >> >> I meet a kernel problem about the random segmentation fault(x86_64). In my >> testcase, the size of local variables exceeds 20MB. >> when run the testcase, it will cause segmentation fault(because the default >> stack size limit is

Re: [RFC] kernel random segmentation fault?

2015-05-06 Thread Hillf Danton
> > Hi all: > > I meet a kernel problem about the random segmentation fault(x86_64). In my > testcase, the size of local variables exceeds 20MB. > when run the testcase, it will cause segmentation fault(because the default > stack size limit is 8192KB). > when I increase the stack size limit

Re: [RFC] kernel random segmentation fault?

2015-05-06 Thread long.wanglong
On 2015/5/6 16:20, Hillf Danton wrote: Hi all: I meet a kernel problem about the random segmentation fault(x86_64). In my testcase, the size of local variables exceeds 20MB. when run the testcase, it will cause segmentation fault(because the default stack size limit is 8192KB). when I

Re: [RFC] kernel random segmentation fault?

2015-05-06 Thread Hillf Danton
Hi all: I meet a kernel problem about the random segmentation fault(x86_64). In my testcase, the size of local variables exceeds 20MB. when run the testcase, it will cause segmentation fault(because the default stack size limit is 8192KB). when I increase the stack size limit to

Re: [RFC] kernel random segmentation fault?

2015-05-06 Thread Jan Engelhardt
On Wednesday 2015-05-06 05:46, long.wanglong wrote: int main(int argc, char** argv) { rlim.rlim_cur=20 MB; rlim.rlim_max=20 MB; ret = setrlimit(RLIMIT_AS, rlim); [...] char tmp[20 MB]; for (i = 0; i 20 MB; i++) tmp[i]=1; if tmp already takes 20 MB, where will

[RFC] kernel random segmentation fault?

2015-05-05 Thread long.wanglong
Hi all: I meet a kernel problem about the random segmentation fault(x86_64). In my testcase, the size of local variables exceeds 20MB. when run the testcase, it will cause segmentation fault(because the default stack size limit is 8192KB). when I increase the stack size limit to

[RFC] kernel random segmentation fault?

2015-05-05 Thread long.wanglong
Hi all: I meet a kernel problem about the random segmentation fault(x86_64). In my testcase, the size of local variables exceeds 20MB. when run the testcase, it will cause segmentation fault(because the default stack size limit is 8192KB). when I increase the stack size limit to