Reputation: 13310
i did ulimit -c unlimited / some number proc... core_pattern is core and my rootfs and the apps are all debugversion [ not the kernel though] any idea why iam unable to get coredumps on kill -SIGABRT/SEGV pid
thanks Furion.
Upvotes: 2
Views: 2725
Reputation: 13310
i used prctl in the program to explicitly enable core dump (it sounds like a script is disabling coredumps ) and alls good now
Upvotes: 0
Reputation: 2942
Can you try to create the core using gdb as follows?
$ gdb --pid=1234
(gdb) gcore
Saved corefile core.1234
(gdb) detatch
gdb doesn't care about the settings. If you are wondering what is detach. Since you have attached the process to gdb, detatch it using gdb control using detatch command
Upvotes: 2
Reputation: 4339
Check to see if core dumps are enabled for your kernel:
CONFIG_ELF_CORE=y
Here's some documentation of the configuration item.
Upvotes: 1
Reputation: 1669
Maybe the application in question itself changes the core dump size ?
Upvotes: 0
Reputation:
Ensure the current directory (getcwd()) of the process is writable by the process and contains enough space to hold the core dump file.
Upvotes: 0