LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-16-2002, 07:59 AM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Core


When I install the Red Hat 7.1 under my Home directory is the Core file. I can't open the file and can't executed. What is the purpose of that file?
 
Old 02-16-2002, 08:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
when a program crashes, it will frequently dump all of it's memory stack and instructions into a core file, using this developers can re run the code, and find exactly what caused it to crash.

you can safely delete it.
 
Old 02-16-2002, 08:17 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
when a program crashes, it will frequently dump all of it's memory stack and instructions into a core file, using this developers can re run the code, and find exactly what caused it to crash.

you can safely delete it.
 
Old 02-16-2002, 10:20 AM   #4
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Does is it possible to open the file and what is inside?
Thanks
 
Old 02-16-2002, 10:45 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
you need to use a debugger like gdb. it's not something to do unless you're the author really.
 
Old 02-16-2002, 11:50 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
if you don't want to mess with debbugers, you can retrieve a useful info from core file using strings command like
strings core
but depends on the size of the core file the output may just fly over your terminal and you end up in the end of t, so pipe the output of strings to less

strings core | less

and use backspace to scroll by page and return by line
 
Old 02-16-2002, 12:22 PM   #7
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
I don't think the solution is to just delete it unless you know why it's there. Since it was created by a program that crashed, you may want to send a bug report to the distro or direct to the developer. Use a debugger to find out what program crashed. If it was a program that came with the distro, go to that website and find out how to submit a bug report. Usually it's just an email with a description of the problem (maybe the core file or some output from the debugger). If it is a program you downloaded separate from the distro, go to that site and find out how to report problems.

If all users just automatically delete all core files, how will the developers know that there is a bug and be able to fix it?
 
Old 02-16-2002, 12:30 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
If all users just automatically delete all core files, how will the developers know that there is a bug and be able to fix it?
cos all the other ppl who think that the program is destorying their machine by making these funny nasty looking core files that look like a bomb in their file manager send them to them. Unless it's a very obscure program, sending a core won't ususally be met with gratitude i'd guess. most delveopers are quite aware of where their programs screw up.. hehe. imagine if IE made core files, heh, M$'s mail server would crash in minutes... generating a core no doubt.
 
Old 02-16-2002, 02:53 PM   #9
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
I suppose you're right about sending core files, but on the other hand, some of the more obscure programs like Netscape and Apache do have websites or mailing lists to handle end-user bug reports. Believe it or not, a lot of these folks are, unlike Microsoft, interested in things that make their babies spit up core files :-).

Personally, if I find a core file on my system, I want to know how and why it got there. But then again, I am more curious than a cat.
 
Old 02-17-2002, 02:33 PM   #10
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Yeah... but sending someone an unsolicted core file is just mean. That's usually a multi-Meg email attachment. I doubt many of these guys have time to go through them... but if your nice enough to parse through it yourself to figure out where the oops was...

A bug checker is usually a hated and thankless job, but that's usually not the case in Open Source.

Cheers,

Finegan
 
Old 02-17-2002, 03:47 PM   #11
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Arrow

I agree wholeheartedly that sending anyone an unsolicited corefile is a rather nasty thing to do. But that is not exactly what I said.

"Use a debugger to find out what program crashed. If it was a program that came with the distro, go to that website and find out how to submit a bug report. Usually it's just an email with a description of the problem (maybe the core file or some output from the debugger). If it is a program you downloaded separate from the distro, go to that site and find out how to report problems."

So, don't send one if they don't ask for it. If they ask for it, they should get it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 4 x86_64 on a Shuttle XPC SN25P with an AMD 64 X2 (Dual core) gwiesenekker Linux - Hardware 4 12-06-2005 11:53 PM
Fedora Core 4 (Test 3) to Core 4 Upgrade? Funx_88 Fedora 1 06-14-2005 03:22 AM
Install FEdora Core 3 over Fedorda Core 2 loninappleton Fedora - Installation 5 04-16-2005 03:17 PM
If i install Fedora Core 2, can i just update to Core 3 from internet? FocusedWolf Fedora 12 02-07-2005 01:03 PM
Fedora Core 1...can I update to core 2 w/out downloading all discs again? arctic123 Red Hat 3 09-05-2004 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration