LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-18-2005, 12:27 PM   #1
squinn
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Rep: Reputation: 15
Core Dump File


If an application crashes and exits without any error message (just disappears) how can I retrieve a core dump file?
 
Old 02-18-2005, 12:41 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Most of the times the core file is created in the dir you ran the command from. Some use a special dir where corefiles are dumped.

But, some distro's disable/limit the creation of corefiles (most people don't need them).

Take a look in your /etc/profile for these (this from suse 8.2):

if test "$is" != "ash" ; then
#ulimit -c 20000 # only core-files less than 20 MB are written
#ulimit -d 15000 # max data size of a program is 15 MB
#ulimit -s 15000 # max stack size of a program is 15 MB
#ulimit -m 30000 # max resident set size is 30 MB
ulimit -Sc 0 # don't create core files
ulimit -Sd unlimited
# ksh does not support this command.
test "$is" != "ksh" && ulimit -Ss unlimited
ulimit -Sm unlimited
fi

Man bash/ksh for details.

Hope this helps.
 
  


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
SuSE 8.1 won't dump core file Caius Linux - Software 0 08-03-2004 06:00 PM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 12:04 PM
Core Dump MrPotatoHead AIX 3 01-14-2004 09:42 AM
core.2200 888.0 memory dump - file just appeared in my home directory Lakota Linux - Newbie 2 10-06-2003 09:25 AM
core dump tomservo Linux - General 4 09-23-2002 05:35 PM


All times are GMT -5. The time now is 07:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration