LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-27-2007, 03:16 AM   #1
suhas7860
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
core dump source info


I have some queries related to core dump my kernel version 2.6.17

1. When there is little space left on the storage less then the require size, will core
be written partially on the disk? Or will it not be written at all?

2.In linux kernel where is source code and configuration file for core dump.
I want to update core dump so that depending on the space left on the disk
it generates
a) full core dump
b) register value + stack
c) register value only
Expecting your help.
 
Old 03-28-2007, 07:08 AM   #2
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
Quote:
Originally Posted by suhas7860
1. When there is little space left on the storage less then the require size, will core
be written partially on the disk? Or will it not be written at all?
If you look at http://lxr.linux.no/source/arch/x86_...32_aout.c#L131
the comments imply that it tries to dump various parts of the core file in order until one of them fails. There is an initial check to see whether there is enough space in "rlimit", but I suspect this is what's set by ulimit -c rather than the space left on the device (note the device is the current directory's device). If there is not enough space in rlimit, it dumps parts of the data, assuming they fit.

So I read all this to mean that the core file would fill the filesystem device, then fail. So you would get a partial (corrupt) core file. But I've never tried it!

Quote:
2.In linux kernel where is source code and configuration file for core dump.
ia32_aout.c appears to be the place, assuming we're talking Intel architecture. There will presumably be equivalents in the other architecture sources.

HTH,
-nick
 
  


Reply



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
what is core dump and how to do it dayalan_cse Programming 3 11-03-2006 12:59 AM
looking for a way to dump line number info jbreazeale Linux - Software 2 09-22-2004 12:02 PM
RH9 reinstall - dump/restore - DNS info not seen gandalf2041 Red Hat 0 02-08-2004 04:16 PM
core dump tomservo Linux - General 4 09-23-2002 05:35 PM
core dump lacrimae Linux - General 3 02-19-2002 01:43 PM

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

All times are GMT -5. The time now is 08:58 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