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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-01-2007, 02:40 AM
|
#1
|
Member
Registered: Oct 2006
Posts: 132
Rep:
|
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
|
|
|
10-01-2007, 03:24 AM
|
#2
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
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.
|
|
|
10-06-2007, 01:48 AM
|
#3
|
Member
Registered: Oct 2006
Posts: 132
Original Poster
Rep:
|
core dump
Quote:
Originally Posted by jlliagre
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
|
|
|
10-06-2007, 03:26 AM
|
#4
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
Quote:
Originally Posted by dayalan_cse
Sorry, I could not find core file current working directory.
|
How did you look for the core file and what failed ?
My suggestion is still to use coreadm. Did you have a look at this command ?
|
|
1 members found this post helpful.
|
12-29-2014, 05:39 AM
|
#5
|
LQ Newbie
Registered: Dec 2014
Posts: 1
Rep:
|
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
|
|
|
12-29-2014, 08:56 AM
|
#6
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
Welcome to LQ, thanks for the feedback and Happy Holidays !
|
|
|
All times are GMT -5. The time now is 04:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|