LinuxQuestions.org
Visit Jeremy's Blog.
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 12-28-2007, 03:32 AM   #1
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 132

Rep: Reputation: 15
sun5.9 coredumps


Hello,

Are there any root(user) log file in Solaris5.9 os version get populated if there any core dump happens on Solaris. If so which file is that in Solaris?

I am facing core dump on Solaris, I would like to see what is the real issue happened when it coredumps by seeing some log file in /root area.

Please let me know.

Thanks & Regards
Dayalan
 
Old 12-28-2007, 04:21 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Have a look at the coreadm manual page.
 
Old 12-28-2007, 04:33 AM   #3
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by dayalan_cse View Post

I am facing core dump on Solaris, I would like to see what is the real issue happened when it coredumps by seeing some log file in /root area.
Apart from 'coreadm' you might also try 'appcrash'.
http://blogs.sun.com/gregns/
 
Old 01-04-2008, 06:18 AM   #4
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
if you are talking about the system crashing and not an app, then type dumpadm and not coreadm. dumpadm will tell you if dumps are enabled and where they are stored (/var/crash/machine_name by default).

You can use mdb to analyze them

ex:

cd /var/crash/mybox

mdb -k unix.0 vmcore.0

::status
$<msgbuf
$q

If you are talking about apps dying on you, run find / -name core and use mdb to analyze them as well.
 
Old 01-05-2008, 12:11 AM   #5
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 132

Original Poster
Rep: Reputation: 15
sun5.9 coredumps

Quote:
Originally Posted by javier.e.menendez View Post
if you are talking about the system crashing and not an app, then type dumpadm and not coreadm. dumpadm will tell you if dumps are enabled and where they are stored (/var/crash/machine_name by default).

You can use mdb to analyze them

ex:

cd /var/crash/mybox

mdb -k unix.0 vmcore.0

::status
$<msgbuf
$q

If you are talking about apps dying on you, run find / -name core and use mdb to analyze them as well.
Hi javier,

I am not sure whether the machine or application crashing, How to debug this issue using mdb? i dont have much experience with the mdb, it looks like difficult for me to debug under mdb, reason is, it displays assembly level instruction when i am debugging under mdb. so it makes little bit difficult for me to narrow down the issue.

here is the obsveration about the issue.

1. I am not able to re-produce the application core dump always, some times it coredump (90%) and sometimes it doesnt core dump (10%).
2. we have three SUN 5.9 boxes, only one box in SUN5.9 out of three boxes, the application crashes and it displays in free() it crashes in the stack trace. but based on my analysis it free(ptr) is not really corrupting the heap instead somewhere before itself it (i am not sure whether the app or machine) corrupted the heap so i get the crash on free(ptr) in someother code in the same application.
3. As i said earlier the app crashes on only one sun5.9 box out of three sun5.9 boxes under any debugger (dbx, purify, watchmalloc on sun5.9) i am not able to re-produce the coredump in the same box (where it crashed).


why it crashes in one machine, why not it crashing on other two sun5.9 boxes.
why it crashes when i invoke from the shell prompt (in app crashed sun5.9 box) but it is not crashing under any debugger in the same box (where it crashed). Any inputs on this?

Please let me know your inputs.

Thanks & Regards
Deenadayalan
 
Old 01-05-2008, 08:32 AM   #6
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
Hi:

If I understand this correctly, you have one application that dies occasionally in one machine out of three. So it is not the system that panics but the app that dies by itself.

If the app dies in one machine and not the others, check out for differences in configuration files or patches. Else, perhaps you have less resources on that particular machine (less memory, swap and so on).

Have you looked at /var/adm/messages at all or have you called the company that makes the app?

Just a few ideas...

J.
 
Old 01-11-2008, 07:46 AM   #7
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 132

Original Poster
Rep: Reputation: 15
Hello,

I used dbx to find the core dump issue using "check -all" command, It crashed in RTC enabling stage itself, Can anyone help me? Can you please suggest me whether i am using correct dbx.

================================================================================================
Reading ld.so.1
Reading librtc.so
Reading libnsl.so.1
Reading libsocket.so.1
Reading libdl.so.1
Reading libswt03064.so
Reading libm.so.1
Reading libc.so.1
Reading libmp.so.2
Reading libc_psr.so.1
access checking - ON
Running: simdata_12
(process id 13212)
RTC: Enabling Error Checking...
dbx: internal warning: rtc: ld/st instruction uses %r6 at 0x10002d42c in `simdata`Ttop_1_1_0
dbx: system error: cannot recover; Access checking disabled
dbx: internal warning: rtc_new_process failed.
dbx: Error checking initialization failed. All error checking disabled.
==================================================================================================== ==========

Thank you in advance, Please let me know your inputs.

Thanks & Regards
Deenadayalan
 
Old 01-16-2008, 05:15 AM   #8
dayalan_cse
Member
 
Registered: Oct 2006
Posts: 132

Original Poster
Rep: Reputation: 15
sun5.9 coredumps

Quote:
Originally Posted by dayalan_cse View Post
Hello,

I used dbx to find the core dump issue using "check -all" command, It crashed in RTC enabling stage itself, Can anyone help me? Can you please suggest me whether i am using correct dbx.

================================================================================================
Reading ld.so.1
Reading librtc.so
Reading libnsl.so.1
Reading libsocket.so.1
Reading libdl.so.1
Reading libswt03064.so
Reading libm.so.1
Reading libc.so.1
Reading libmp.so.2
Reading libc_psr.so.1
access checking - ON
Running: simdata_12
(process id 13212)
RTC: Enabling Error Checking...
dbx: internal warning: rtc: ld/st instruction uses %r6 at 0x10002d42c in `simdata`Ttop_1_1_0
dbx: system error: cannot recover; Access checking disabled
dbx: internal warning: rtc_new_process failed.
dbx: Error checking initialization failed. All error checking disabled.
==================================================================================================== ==========

Thank you in advance, Please let me know your inputs.

Thanks & Regards
Deenadayalan

Hello,

I attached process id with dbx using (dbx - <process_id>) command, to find out the memory bugs, I enabled "check -all" in dbx but it generates error message follows.

=========================================================
(dbx) check -all
dbx: check will not work with attached process,if librtc is not preloaded.
See `help rtc attach'
=========================================================

I wanted to enable "rtc" but it gives above error, Please let me know your inputs.

Thanks & Regards
Deenadayalan
 
  


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



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

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