resultsway
resultsway

Reputation: 13310

unable to coredump - embedded linux

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

Answers (5)

resultsway
resultsway

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

New to Rails
New to Rails

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

waffleman
waffleman

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

Demiurg
Demiurg

Reputation: 1669

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

Upvotes: 0

user335938
user335938

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

Related Questions