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 07-20-2013, 04:53 PM   #1
leoecco
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Rep: Reputation: Disabled
Incomplete core dump


I have a c++ application that is crashing. The core is being dumped but it is "incomplete". There is enough space in the hard drive and there is no limit for the size of the core dump file. Any ideas on how to solve this?

Code:
root@ubox:/home/ec/project1# ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 128077
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 128077
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

root@ubox:/home/ec/project1# gdb main core
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/ec/project1/main...done.
BFD: Warning: /home/ec/project1/core is truncated: expected core file size >= 5169152, found: 1114112.
[New LWP 10943]
 
Old 07-21-2013, 05:22 AM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I recently had the exact same symptom. In my case the /home directories were mounted via nfs from a file server. I don't really understand the issue. We were able to have files larger than 4GB on that file server, but we were not able to get core dump files larger than 4GB. As you are experiencing, it truncated to a 32-bit file size.

Without understanding the problem, we moved the work to a local partition and redid the operation that crashed and got the full size core dump file.

Our initial, probably incorrect, diagnosis was that the core file was being created in a sub directory of /var before being moved to where it belongs. Some documentation seemed to indicate that, but it was hard to tell which documentation was correct.
We have /var on a very small partition, so first we put in sym links for a few subdirectories of /var to larger partitions (we weren't sure exactly which sub directory of /var was used). When that didn't fix it, we moved the project off of the nfs to a large local partition, but didn't undo the /var changes. So possibly we needed both.

Last edited by johnsfine; 07-21-2013 at 05:31 AM.
 
  


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
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 5 12-29-2014 07:56 AM
[SOLVED] not getting any core dump ramsrambo Linux - Newbie 2 04-09-2012 06:49 PM
Creating a core dump from raw ram dump? cyent Programming 2 08-15-2010 05:57 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
Core dump in Ubuntu 8.04 (Empty core file) vineet7kumar Linux - Newbie 1 01-17-2009 05:52 PM

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

All times are GMT -5. The time now is 06:48 AM.

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