LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


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

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, 02:24 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 02:38 AM.
 
Old 10-06-2007, 12:48 AM   #3
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 132

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, 02:26 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 ?
 
1 members found this post helpful.
Old 12-29-2014, 04:39 AM   #5
topquality
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Thumbs up Found core

Hi jlliagre,

10 years later your post still helps !
On my old Solaris, I have found the core file hidden in a temporary directory using your command pwdx.
I had to add a system("read i") in my C source code as the core dump was too fast to get the process Id.

Thanks a lot!
Yvan
 
Old 12-29-2014, 07:56 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Welcome to LQ, thanks for the feedback and Happy Holidays !
 
  


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 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 12:59 AM
Core Dump File squinn Linux - Software 1 02-18-2005 12:41 PM
SuSE 8.1 won't dump core file Caius Linux - Software 0 08-03-2004 06:00 PM
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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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