Quote:
Originally Posted by jailbait
The -c parameter is specified as 1024 byte increments. So if you want to set the limit to 20MB then you need:
ulimit -c 20480
-----------------
Steve Stites
|
Still the core file exceeds the ulimit value
I use the following code to dump core,
char *value = (char *)malloc(30*1024*1024)
char *invalid = NULL
*invalid=1
after I set ulimit -c 20480 , i get a core file
-rw------- 1 root root 31510528 Oct 4 10:26 core.484