WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to get a core dump?  (Read 346 times)

Offline dspence

  • Newbie
  • *
  • Posts: 25
How to get a core dump?
« 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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10432
Re: How to get a core dump?
« Reply #1 on: January 13, 2023, 08:18:27 AM »
Hi dspence
You need to use  ulimit  to set the allowable size for a core dump file:
Code: [Select]
ulimit -c unlimited
By default it is set to zero which means the kernel will not write a core dump file:
Code: [Select]
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.