DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th December 2021
RJPugh RJPugh is offline
Port Guard
 
Join Date: Jun 2008
Location: Culpeper, VA
Posts: 45
Default Help with *.core file?

Hello.

I recently re-installed FreeBSD after a long absence, and the process wasn't without incident. I have five large "*.core" files in my /home directory, which I assume are core dumps from system or app crashes.

How do I use these? I assume there is a way to use them to identify problems. None of these crashes caused my system to implode; I've been able to work around them so far. But I hope to avoid repeat performances.

I'm using FreeBSD 13.0 Stable. I've also installed gdb, which I've read can help with *.core files, but to be honest I don't know how to use it yet. I'm not a complete newbie, but this core dump thing is new territory for me.

Thanks,
RJPugh
Reply With Quote
  #2   (View Single Post)  
Old 18th December 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,633
Default

These <program-name>.core files are copies of memory stored for a post-mortem analysis at the moment of a failure of <program-name>. If you are a programmer, these can be used to help determine a root cause for the failure. The Gnu Debugger -- gdb -- can read the .core file and the program's compiled binary file to produce helpful information. If you have the source code and compile the program with its symbol tables, you can use gdb to step through the program and .core file, line by line, and see values change in individual variables and CPU registers. See the gdb(1) man page and `$ info gdb` for more information.

If you are not a programmer, delete the .core files, they will not be of any use. You can set your shell to prevent these .core files from being saved at all, e.g. `$ ulimit -c 0`. See your shell's man page for more information.
Reply With Quote
Reply

Tags
*.core, freebsd, gdb

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
openbsd 5.8 KDE core pawkolor OpenBSD General 3 26th August 2015 07:10 PM
Uploading a file using ftp and/or a .netrc file from the command line J65nko Guides 3 16th February 2013 11:53 AM
How total remove .core file during a dump? aleunix OpenBSD Packages and Ports 3 20th May 2012 06:38 PM
PHP read file contents - Maximum file size cksraj Programming 1 21st September 2009 11:38 AM
how can I get a core file out of this program TerryP FreeBSD General 4 25th February 2009 07:28 AM


All times are GMT. The time now is 11:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick