i am currently working on one application which is generating core dump files. Application is compiled using icpc(2013) and running on Intel(R) Xeon(R) E5-2670 processor. if i am using return 0 then application is generating core dump file but instead of return 0; if i use exit(EXIT_SUCCESS); then no core dump files are generated. In case of return 0; application is executed successfully(correct output) without giving segmentation fault or any other error message.
i read that, processor will generate core dump only when application is terminated abnormally. Please provide possible solution and also mention other causes when processor generates core dump file.
Note: application is MPI + OpenMP.