I am using Ubuntu 12.04 LTS. I wrote a simple program as follows to create crash
// null.c #include int main() { int *p = NULL; int k=*p;
You need to adjust your core dump size limit with following command:
ulimit -S -c maximum-core-dump-size
The the value is given in Kb.