I'm running kernel 2.6.35 on a custom embedded device (ARMv7). I'm trying to get a core dump but it appears core dumps are disabled.
My kernel config can be found here:
https://pastebin.com/XXZ8YyaA
My test application is the following:
int main() {
return 1/0;
}
I expect the following:
Floating point exception (core dumped)
But instead get this:
Floating point exception
Meaning core dumps are disabled. How can I enable them for my platform? It looks like the option to toggle functionality in the kernel
CONFIG_COREDUMP
wasn't added till kernel version 3.7 . Is it not always enabled in previous kernels?
# ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8192
-c: core file size (blocks) unlimited
-m: resident set size (kbytes) unlimited
-u: processes 1710
-n: file descriptors 1024
-l: locked-in-memory size (kbytes) 64
-v: address space (kbytes) unlimited
-x: file locks unlimited
-i: pending signals 1710
-q: bytes in POSIX msg queues 819200
-e: max nice 0
-r: max rt priority 0
-N 15: unlimited
# ./crash
Floating point exception
Asked by dangeroushobo
(707 rep)
Jan 3, 2019, 04:59 PM
Last activity: Jul 24, 2024, 08:51 AM
Last activity: Jul 24, 2024, 08:51 AM