Welcome to the Builder Academy

Question Core files no longer generating

More
04 Apr 2024 20:36 #10376 by Salty
Greetings,

I don't know why, but I don't get core dumps on crashes any longer.

syslog.CRASH says core is dumped, but it's nowhere to be found.

My autorun.sh is unchanged other than changing the port number.
My Makefile is unchanged.

Thanks for the help,

Salty

Please Log in or Create an account to join the conversation.

More
07 Apr 2024 21:35 #10377 by thomas
Highly likely that you've gotten a limit on the corefile size. Check with
Code:
ulimit -a
. Adjust with
Code:
ulimit -c unlimited

Please Log in or Create an account to join the conversation.

More
09 Apr 2024 20:25 - 09 Apr 2024 20:25 #10381 by Salty
You're right.

Previously I set the core size as unlimited with: 

ulimit -c unlimited

Apparently that was only for the current session due to ssh user privileges

I added a line into /etc/security/limits.conf stating:

username - core unlimited
root - core unlimited

Taken from this answer on stack exchange.

Works after this change.  Thanks for the help!
Last edit: 09 Apr 2024 20:25 by Salty.

Please Log in or Create an account to join the conversation.

More
13 Apr 2024 07:42 #10383 by Salty
Code:
salty@OMG:~$ 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) 62659 max locked memory       (kbytes, -l) 65536 max memory size         (kbytes, -m) unlimited open files                      (-n) 100000 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) 62659 virtual memory          (kbytes, -v) unlimited file locks                      (-x) unlimited

Still no cores being generated.

Any more ideas?

Please Log in or Create an account to join the conversation.

More
13 Apr 2024 14:50 #10384 by thomas
Ok, if that didn't work, we need to dig deeper.

Do you use systemd? What is the output of `sysctl -a | grep core_pattern` ?
- if this gives output, your corefiles are probably being stored in `/var/lib/systemd/coredump/`

Otherwise:
When you crash, what are the last two-three lines of your log?
What is the output of `uname -a` and `gcc -v` ?

Please Log in or Create an account to join the conversation.

More
14 Apr 2024 02:14 - 14 Apr 2024 03:22 #10385 by Salty
I believe I am running systemd as ubuntu migrated to systemd in v15.04 ?
Code:
salty@OMG:~$ ps --no-headers -o comm 1 systemd salty@OMG:~$ file /sbin/init /sbin/init: symbolic link to /lib/systemd/systemd


Code:
salty@OMG:~$ sudo sysctl -a | grep core_pattern [sudo] password for salty: kernel.core_pattern = |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E
Code:
salty@OMG:/var/lib/systemd/coredump$ ls -al total 0 drwxr-xr-x  2 root root   6 Feb  1  2021 . drwxr-xr-x 12 root root 237 Jul 17  2021 ..

The simple list of the group is throwing errors.  Here is a sample of my syslog.CRASH for the most recent
Code:
Apr 13 00:24:14 2024 :: SYSERR: simple_list() forced to reset itself. Apr 13 00:24:19 2024 :: SYSERR: simple_list() forced to reset itself. Apr 13 00:25:32 2024 :: Wick killed by Xochitl the Spectral Jaguar at Xochitl's Vigil Segmentation fault (core dumped)
Here's a parse from syslog.5, a previous crash.
Code:
Apr 12 23:08:00 2024 :: Salty (level 105) has 43 objects (max 10000). Apr 12 23:11:14 2024 :: nusage: 7   sockets connected, 7   sockets playing Apr 12 23:13:32 2024 :: Bick killed by Xolotl, the Dog-Headed God at The Bridge of Bones Segmentation fault (core dumped)
Code:
salty@OMG:~/omg$ uname -a Linux OMG 5.4.0-155-generic #172-Ubuntu SMP Fri Jul 7 16:10:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Code:
salty@OMG:~/omg$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:hsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.2' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-9QDOt0/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)

Thanks for the help!
Last edit: 14 Apr 2024 03:22 by Salty.

Please Log in or Create an account to join the conversation.

Time to create page: 0.239 seconds