LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 10-01-2007, 02:40 AM   #1
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 122

Rep: Reputation: 15
Core Dump on Solaris (Question about core file)


Hello All,

I am getting segmentation fault on Solaris 5.8 but i could not find where the core file is being created. I did the following,

step 1: I did not get core file so i used ulimit -c unlimited
step 2: now my program crashed at the end it says "Core Dumped" but where is the file?

Am i missing anything here? Please let me know your inputs, Thank you in advance.

Thanks,
Dayalan
 
Old 10-01-2007, 03:24 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
The core file is by default created into the process current directory. You can find what this directory is by using the pwdx command while the process is still alive.

You can also use the coreadm command to centralize core file storage.

Last edited by jlliagre; 10-01-2007 at 03:38 AM.
 
Old 10-06-2007, 01:48 AM   #3
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 122

Original Poster
Rep: Reputation: 15
core dump

Quote:
Originally Posted by jlliagre View Post
The core file is by default created into the process current directory. You can find what this directory is by using the pwdx command while the process is still alive.

You can also use the coreadm command to centralize core file storage.

Sorry, I could not find core file current working directory.

Any suggestions?

Thks,
Dayalan
 
Old 10-06-2007, 03:26 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by dayalan_cse View Post
Sorry, I could not find core file current working directory.
How did you look for the core file and what failed ?
Quote:
Any suggestions?
My suggestion is still to use coreadm. Did you have a look at this command ?
 
  


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
what is core dump and how to do it dayalan_cse Programming 3 11-03-2006 01:59 AM
Core Dump File squinn Linux - Software 1 02-18-2005 01:41 PM
SuSE 8.1 won't dump core file Caius Linux - Software 0 08-03-2004 07:00 PM
core.2200 888.0 memory dump - file just appeared in my home directory Lakota Linux - Newbie 2 10-06-2003 10:25 AM
core dump tomservo Linux - General 4 09-23-2002 06:35 PM


All times are GMT -5. The time now is 11: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration