I'm running a fortran program on ubuntu 18.04, and got a segmentation fault but no core generated. I've already tried the previous suggestion as below:
echo "1" > /proc/sys/kernel/core_uses_pid
echo "core" > /proc/sys/kernel/core_pattern
ulimit -c unlimited
here is the result:
root@goodluck:# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15415
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15415
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
root@goodluck:# gdb LPDM_gnu_omp
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
(gdb) run
Starting program: /home/yufei/LPDM/work/democode/LPDM_gnu_omp
During startup program terminated with signal SIGSEGV, Segmentation fault.
but the core file still not generated, and when I got the segmentation fault, I didn't get this
segmentation fault(core dumped)
instead I got this:
segmentation fault
Could someone help me? I searched all the internet but got no clues. Thanks a lot!