开发者

unable to coredump - embedded linux

开发者 https://www.devze.com 2023-01-31 16:24 出处:网络
i did ulimit -c unlimited / some number proc... core_pattern is core a开发者_开发技巧nd my rootfs and the apps are all debugversion [ not the kernel though]

i did ulimit -c unlimited / some number proc... core_pattern is core a开发者_开发技巧nd 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.


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


Check to see if core dumps are enabled for your kernel:

CONFIG_ELF_CORE=y

Here's some documentation of the configuration item.


Ensure the current directory (getcwd()) of the process is writable by the process and contains enough space to hold the core dump file.


Maybe the application in question itself changes the core dump size ?


i used prctl in the program to explicitly enable core dump (it sounds like a script is disabling coredumps ) and alls good now

0

精彩评论

暂无评论...
验证码 换一张
取 消