Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: dspence on January 13, 2023, 08:02:26 AM
-
How do I get Tiny Core to generate a core dump file when something crashes?
Where would I find the core dump?
-
Hi dspence
You need to use ulimit to set the allowable size for a core dump file:
ulimit -c unlimited
By default it is set to zero which means the kernel will not write a core dump file:
tc@E310:~$ ulimit -a
-f: file size (blocks) unlimited
-t: cpu time (seconds) unlimited
-d: data seg size (kb) unlimited
-s: stack size (kb) 8192
-c: core file size (blocks) 0
-m: resident set size (kb) unlimited
-l: locked memory (kb) 64
-p: processes 24156
-n: file descriptors 1024
-v: address space (kb) unlimited
-w: locks unlimited
-e: scheduling priority 0
-r: real-time priority 0
tc@E310:~$
The core dump should show up in the directory you used to run the file.