Hi everybody,
I have a problem with generating core dumps on a tx1 board. No matter what I do, no core dumps are generated. To make a long story short, here are things I already did (with reboots, service restarts etc. Hopefully I didn’t forget any steps I made):
- coredump limits (using ulimit with options -c, -Sc and -Hc) set to unlimited
- check /var/crash, where the ubuntu-default apport is supposed to put core dumps
- check if the kernel has built-in core dumps by issuing
zgrep COREDUMP /proc/config.gz
(got CONFIG_COREDUMP=y)
- disable apport by changing enabled=0 in /etc/default/apport and putting "manual" in a newly created /etc/init/apport.override file
- changing values of kernel.core_uses_pid, kernel.core_pattern and fs.suid_dumpable through /etc/sysctl.conf (and reloading by issuing sysctl -p) and directly writing to corresponding /proc files (mainly core_pattern, different variants including paths starting with "/" as well as just "core" with % options. Tried putting paths to the internal emmc memory, sd card and a cifs mounted network drive with all writing permissions)
With each setting I issued (as a normal user as well as root) either
sleep 5 & sudo killall -SEGV sleep
(the result was Segmentation fault, but no (Core dumped) info),
had a program for segfaults:
main() {
int a = *(int*)0;
}
or had programs going in an infinite loop (like e.g. yes) and pressing CTRL+.
The only thing I get is info in dmesg (but only after running my program for segfaults):
root@tegra-ubuntu:~# ./a.out
Segmentation fault
root@tegra-ubuntu:~# dmesg -c
[ 1159.881097] a.out[2564]: unhandled level 3 translation fault (11) at 0x00000000, esr 0x92000007
[ 1159.881106] pgd = ffffffc0ca074000
[ 1159.881116] [00000000] *pgd=000000014ad7c003, *pmd=000000014a003003, *pte=0000000000000000
[ 1159.881132]
[ 1159.881139] CPU: 2 PID: 2564 Comm: a.out Not tainted 3.10.96-tegra #1
[ 1159.881145] task: ffffffc0ce192040 ti: ffffffc0ca060000 task.ti: ffffffc0ca060000
[ 1159.881153] PC is at 0x83c4
[ 1159.881158] LR is at 0xf75e3633
[ 1159.881163] pc : [<00000000000083c4>] lr : [<00000000f75e3633>] pstate: 60000030
[ 1159.881167] sp : 00000000ff955bc0
[ 1159.881171] x12: 00000000ff955c50
[ 1159.881177] x11: 0000000000000000 x10: 00000000f76f0000
[ 1159.881185] x9 : 0000000000000000 x8 : 0000000000000000
[ 1159.881193] x7 : 00000000ff955bc0 x6 : 00000000f76af000
[ 1159.881200] x5 : 0000000000000000 x4 : 0000000000000000
[ 1159.881207] x3 : 0000000000000000 x2 : 00000000ff955d2c
[ 1159.881214] x1 : 00000000ff955d24 x0 : 0000000000000001
[ 1159.881221]
[ 1159.881229] Library at 0x83c4: 0x8000 /root/a.out
[ 1159.881238] Library at 0xf75e3633: 0xf75cc000 /lib/arm-linux-gnueabihf/libc-2.19.so
[ 1159.881245] vdso base = 0xf76ed000
but no sign of core dumps…
I’m running Ubuntu 14.04.1 LTS with 3.10.96-tegra kernel (what a surprise).
Also all the things mentioned above where issued through an ssh session, though it shouldn’t matter (but for me at this moment all information seems relevant).
Thanks in advance for any help.