LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2009, 09:28 PM   #1
goodkodiak
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Core dump is larger than file space left on disk?


Does anyone know why/how a core dump file (in my case core.770) could be bigger than the file size left on the drive? My core dump was over 1GB and I only have 800MB on that partition. I have a script that runs when a core dumps and it zips it into a tar.gz file. This has always worked correctly. I looked at the core file in a hex editor and it was mostly all zeroes at the end which explains the size. Running gdb didn't seem to get me anywhere so I'm guessing the file is corrupt so I can't see what the problem is with my executable. I'm just wondering how the core size > disk space could even happen. Any thoughts or suggestions are greatly appreciated. Thanks!
 
Old 01-23-2009, 01:58 PM   #2
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
Well, I suppose the first point is that a core dump will include the data in memory, rather than the data on the disk, so potentially if your program enters some infinite loop doing some calculation when it shouldn't, there is no particular limit to how much data from disk the core dump could include (perhaps in that case it would be limited to how much RAM you have rather than how much data you have on disk).
 
Old 01-24-2009, 01:06 AM   #3
goodkodiak
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you. The RAM on the system is 256MB and the disk space is 800MB. Is there a way that I can make the core readable. By taking out all the xtra zeroes at the end. Is there an end byte for core dumps or something that I could delete everything after in a hex editor? I would love to see the stack in gdb like I usually can see.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find how much free space left on my hard disk? DataSheet Linux - Newbie 5 01-06-2007 11:35 PM
No space left on disk rtaft Linux - Software 5 12-27-2006 01:28 PM
Very newbie - no disk space left, help! tbob Linux - Software 5 11-15-2005 04:12 AM
easiest way to know how much disk space is left on partition el jue Linux - Newbie 2 04-07-2004 10:19 PM
/var file space too low need to make it larger hoodman10 Linux - Newbie 1 11-25-2002 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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