Last active
July 12, 2024 08:22
-
-
Save lucmann/20f51abe687c3438283afa2dd209a77d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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) 0 | |
-m: resident set size (kbytes) unlimited | |
-u: processes 31178 | |
-n: file descriptors 1024 | |
-l: locked-in-memory size (kbytes) 65536 | |
-v: address space (kbytes) unlimited | |
-x: file locks unlimited | |
-i: pending signals 31178 | |
-q: bytes in POSIX msg queues 819200 | |
-e: max nice 0 | |
-r: max rt priority 0 | |
-N 15: rt cpu time (microseconds) unlimited | |
$ cat /proc/sys/kernel/core_pattern | |
$ sudo sed -i '$akernel.core_pattern=/var/crash/%E.%p.%t.%s\n' /etc/sysctl.conf && sysctl -p # customize core dump path | |
$ cat /etc/systemd/coredump.conf # if systemd-coredump daemon is running on your system | |
$ ls -ltr /var/lib/systemd/coredump # systemd-coredump would compress core dump as lz4 | |
$ lz4 -d core.xxxxx.lz4 | |
$ sudo gdb -core core.xxxxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment