Solaris 8: Error "access exceeded protections" - SEGV
Hello:
I getting this error " access exceeded protections" - SEGV, when I am doing a memset. The structure which is being memset is of 2M size.
Code Snipets:
abc_tabc;
memset((char*)&abc, '\0', sizeof(abc_t));
The abc_t struct consists of many variable of type int, char and more structures. Its max size is 2M.
Now, here are things which I have already tried:
Increasing the stack size to unlimited, or using the setrlimit from the running process. But still it fails.
Help is appritiated at this front, as I am unable to get it fixed in prod. Currenlty i have a work-around to put everything on the HEAP.
-K_P

