I have a arm executable[ (Debug build) ELF 32 bit LSB executable, ARM version (SYSV)] process executing on ARM Cortex A9 target having Linux OS(KErnel 2.6.38.8 )
The process has user id root groupid root
Even when the process crashes after getting SIGSEGV, there is no core file generated. Now I have read this question to ensure it has file system is writable, ulimit -c is unlimited, user is root and has permissions, but still something is missing.
Here are few outputs of certain varaibles of my process and system, related to a core file creation :
cat /proc//coredump_filter is 00000033
cat /proc/sys/kernel/core_pattern is core
cat /proc/sys/kernel/core_uses_pid is 0
I have tried everything but stumped.
Could there be any kernel config/build option disabling the core creation?
Any other pointers?
EDIT: I did simple test as below and it created a core file, but my process crash still does not dump core file.
sleep 20 &
killall -SIGSEGV sleep
atexit()
or other hook. You can wrap your code in a shell script to verify if it exits normally or not. – artless noisestrace
, or some other way? Whatever tool you are using may circumvent the core generation. – artless noise