|
2 | 2 | created_at: '2020-06-25T01:10:40Z'
|
3 | 3 | tags:
|
4 | 4 | - corefile
|
5 |
| -- coredump |
| 5 | +- troubleshooting |
6 | 6 | title: What is a '.core' file?
|
7 |
| -vote_count: 0 |
8 |
| -vote_sum: 0 |
9 |
| -zendesk_article_id: 360001584875 |
10 |
| -zendesk_section_id: 360000039036 |
11 | 7 | ---
|
12 | 8 |
|
13 |
| -.core files are created when a program fails in a way that can't be |
14 |
| -handled by the program's regular error handling. Normally these failures |
15 |
| -are memory-related, such as the program asking for too much memory or |
16 |
| -for memory it can't legally access. The creation of a core file is |
17 |
| -called a 'core dump'. |
| 9 | +`.core` files are created when a program fails in a way that can't be |
| 10 | +handled by the program's regular error handling. |
18 | 11 |
|
19 |
| -.core files are a record of the working memory at time of failure, and |
| 12 | +Your application may crash with an error like, `Segmentation fault (core dumped)`. |
| 13 | + |
| 14 | +These failures are memory-related, such as the program asking for more memory than allocated or |
| 15 | +for memory it can't legally access. |
| 16 | +Your first step in troubleshooting should be checking if this is the case, |
| 17 | +see [Finding Job_Efficiency](../../Getting_Started/Next_Steps/Finding_Job_Efficiency.md) |
| 18 | + |
| 19 | +`.core` files are a record of the working memory at time of failure, and |
20 | 20 | can be used for
|
21 | 21 | [debugging](../../Scientific_Computing/Profiling_and_Debugging/Debugging.md).
|
22 |
| -MPI jobs will usually create a .core file for each task. |
| 22 | +MPI jobs will usually create a `.core` file for each task. |
| 23 | + |
| 24 | +The creation of a `.core` file is called a 'core dump' is files is **disabled by default**, |
| 25 | + |
| 26 | +You can enable the creation of core dumps with `ulimit -c unlimited`. |
23 | 27 |
|
24 |
| -As .core files are usually very large, you should delete the ones you |
25 |
| -don't plan on using them to avoid filling up your storage quota. |
| 28 | +As `.core` files are large, you should delete the ones you |
| 29 | +don't plan on using them to avoid filling up your storage quota. |
0 commit comments